Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
85b35266
Unverified
Commit
85b35266
authored
4 years ago
by
Aleksandr Loktionov
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix vSphere CPI configMap and vSphere CSI secret re-deploy (#6209) (#6210)
parent
7ff8fc25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes-apps/csi_driver/vsphere/tasks/main.yml
+12
-2
12 additions, 2 deletions
roles/kubernetes-apps/csi_driver/vsphere/tasks/main.yml
roles/kubernetes-apps/external_cloud_controller/vsphere/tasks/main.yml
+10
-2
10 additions, 2 deletions
...tes-apps/external_cloud_controller/vsphere/tasks/main.yml
with
22 additions
and
4 deletions
roles/kubernetes-apps/csi_driver/vsphere/tasks/main.yml
+
12
−
2
View file @
85b35266
...
...
@@ -24,9 +24,19 @@
when
:
inventory_hostname == groups['kube-master'][0]
tags
:
vsphere-csi-driver
-
name
:
vSphere CSI Driver | Create a CSI secret
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"
-
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
--dry-run
--save-config
-o
yaml"
register
:
vsphere_csi_secret_manifest
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
-
name
:
vSphere CSI Driver | Apply Manifests
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes-apps/external_cloud_controller/vsphere/tasks/main.yml
+
10
−
2
View file @
85b35266
...
...
@@ -25,8 +25,16 @@
when
:
inventory_hostname == groups['kube-master'][0]
tags
:
external-vsphere
-
name
:
External vSphere Cloud Provider Interface | Create a CPI configMap
command
:
"
{{
bin_dir
}}/kubectl
create
configmap
cloud-config
--from-file=vsphere.conf={{
kube_config_dir
}}/external-vsphere-cpi-cloud-config
-n
kube-system"
-
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
--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]
tags
:
external-vsphere
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment