mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
This commit is contained in:
committed by
GitHub
parent
7ff8fc259b
commit
85b3526617
@@ -24,9 +24,19 @@
|
|||||||
when: inventory_hostname == groups['kube-master'][0]
|
when: inventory_hostname == groups['kube-master'][0]
|
||||||
tags: vsphere-csi-driver
|
tags: vsphere-csi-driver
|
||||||
|
|
||||||
- name: vSphere CSI Driver | Create a CSI secret
|
- name: vSphere CSI Driver | Generate a CSI secret manifest
|
||||||
command: "{{ bin_dir }}/kubectl create secret generic vsphere-config-secret --from-file=csi-vsphere.conf={{ kube_config_dir }}/vsphere-csi-cloud-config -n kube-system"
|
command: "{{ bin_dir }}/kubectl create secret generic vsphere-config-secret --from-file=csi-vsphere.conf={{ kube_config_dir }}/vsphere-csi-cloud-config -n kube-system --dry-run --save-config -o yaml"
|
||||||
|
register: vsphere_csi_secret_manifest
|
||||||
when: inventory_hostname == groups['kube-master'][0]
|
when: inventory_hostname == groups['kube-master'][0]
|
||||||
|
no_log: true
|
||||||
|
tags: vsphere-csi-driver
|
||||||
|
|
||||||
|
- name: vSphere CSI Driver | Apply a CSI secret manifest
|
||||||
|
command:
|
||||||
|
cmd: "{{ bin_dir }}/kubectl apply -f -"
|
||||||
|
stdin: "{{ vsphere_csi_secret_manifest.stdout }}"
|
||||||
|
when: inventory_hostname == groups['kube-master'][0]
|
||||||
|
no_log: true
|
||||||
tags: vsphere-csi-driver
|
tags: vsphere-csi-driver
|
||||||
|
|
||||||
- name: vSphere CSI Driver | Apply Manifests
|
- name: vSphere CSI Driver | Apply Manifests
|
||||||
|
|||||||
@@ -25,8 +25,16 @@
|
|||||||
when: inventory_hostname == groups['kube-master'][0]
|
when: inventory_hostname == groups['kube-master'][0]
|
||||||
tags: external-vsphere
|
tags: external-vsphere
|
||||||
|
|
||||||
- name: External vSphere Cloud Provider Interface | Create a CPI configMap
|
- name: External vSphere Cloud Provider Interface | Create a CPI configMap manifest
|
||||||
command: "{{ bin_dir }}/kubectl create configmap cloud-config --from-file=vsphere.conf={{ kube_config_dir }}/external-vsphere-cpi-cloud-config -n kube-system"
|
command: "{{ bin_dir }}/kubectl create configmap cloud-config --from-file=vsphere.conf={{ kube_config_dir }}/external-vsphere-cpi-cloud-config -n kube-system --dry-run --save-config -o yaml"
|
||||||
|
register: external_vsphere_configmap_manifest
|
||||||
|
when: inventory_hostname == groups['kube-master'][0]
|
||||||
|
tags: external-vsphere
|
||||||
|
|
||||||
|
- name: External vSphere Cloud Provider Interface | Apply a CPI configMap manifest
|
||||||
|
command:
|
||||||
|
cmd: "{{ bin_dir }}/kubectl apply -f -"
|
||||||
|
stdin: "{{ external_vsphere_configmap_manifest.stdout }}"
|
||||||
when: inventory_hostname == groups['kube-master'][0]
|
when: inventory_hostname == groups['kube-master'][0]
|
||||||
tags: external-vsphere
|
tags: external-vsphere
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user