Fix some minor issues with the Cinder CSI plugin (#5561)
Add Cinder images to download rolepull/5616/head
parent
f7c5f45833
commit
fa245ffdd5
|
@ -459,6 +459,19 @@ addon_resizer_version: "1.8.3"
|
||||||
addon_resizer_image_repo: "{{ kube_image_repo }}/addon-resizer"
|
addon_resizer_image_repo: "{{ kube_image_repo }}/addon-resizer"
|
||||||
addon_resizer_image_tag: "{{ addon_resizer_version }}"
|
addon_resizer_image_tag: "{{ addon_resizer_version }}"
|
||||||
|
|
||||||
|
cinder_csi_attacher_image_repo: "{{ quay_image_repo }}/k8scsi/csi-attacher"
|
||||||
|
cinder_csi_attacher_image_tag: "v1.2.1"
|
||||||
|
cinder_csi_provisioner_image_repo: "{{ quay_image_repo }}/k8scsi/csi-provisioner"
|
||||||
|
cinder_csi_provisioner_image_tag: "v1.3.0"
|
||||||
|
cinder_csi_snapshotter_image_repo: "{{ quay_image_repo }}/k8scsi/csi-snapshotter"
|
||||||
|
cinder_csi_snapshotter_image_tag: "v1.2.0"
|
||||||
|
cinder_csi_resizer_image_repo: "{{ quay_image_repo }}/k8scsi/csi-resizer"
|
||||||
|
cinder_csi_resizer_image_tag: "v0.2.0"
|
||||||
|
cinder_csi_plugin_image_repo: "{{ docker_image_repo }}/k8scloudprovider/cinder-csi-plugin"
|
||||||
|
cinder_csi_plugin_image_tag: "latest"
|
||||||
|
cinder_csi_node_driver_registrar_image_repo: "{{ quay_image_repo }}/k8scsi/csi-node-driver-registrar"
|
||||||
|
cinder_csi_node_driver_registrar_image_tag: "v1.1.0"
|
||||||
|
|
||||||
dashboard_image_repo: "{{ gcr_image_repo }}/google_containers/kubernetes-dashboard-{{ image_arch }}"
|
dashboard_image_repo: "{{ gcr_image_repo }}/google_containers/kubernetes-dashboard-{{ image_arch }}"
|
||||||
dashboard_image_tag: "v1.10.1"
|
dashboard_image_tag: "v1.10.1"
|
||||||
|
|
||||||
|
@ -948,6 +961,60 @@ downloads:
|
||||||
groups:
|
groups:
|
||||||
- kube-node
|
- kube-node
|
||||||
|
|
||||||
|
cinder_csi_attacher:
|
||||||
|
enabled: "{{ cinder_csi_enabled }}"
|
||||||
|
container: true
|
||||||
|
repo: "{{ cinder_csi_attacher_image_repo }}"
|
||||||
|
tag: "{{ cinder_csi_attacher_image_tag }}"
|
||||||
|
sha256: "{{ cinder_csi_attacher_digest_checksum|default(None) }}"
|
||||||
|
groups:
|
||||||
|
- kube-node
|
||||||
|
|
||||||
|
cinder_csi_provisioner:
|
||||||
|
enabled: "{{ cinder_csi_enabled }}"
|
||||||
|
container: true
|
||||||
|
repo: "{{ cinder_csi_provisioner_image_repo }}"
|
||||||
|
tag: "{{ cinder_csi_provisioner_image_tag }}"
|
||||||
|
sha256: "{{ cinder_csi_provisioner_digest_checksum|default(None) }}"
|
||||||
|
groups:
|
||||||
|
- kube-node
|
||||||
|
|
||||||
|
cinder_csi_snapshotter:
|
||||||
|
enabled: "{{ cinder_csi_enabled }}"
|
||||||
|
container: true
|
||||||
|
repo: "{{ cinder_csi_snapshotter_image_repo }}"
|
||||||
|
tag: "{{ cinder_csi_snapshotter_image_tag }}"
|
||||||
|
sha256: "{{ cinder_csi_snapshotter_digest_checksum|default(None) }}"
|
||||||
|
groups:
|
||||||
|
- kube-node
|
||||||
|
|
||||||
|
cinder_csi_resizer:
|
||||||
|
enabled: "{{ cinder_csi_enabled }}"
|
||||||
|
container: true
|
||||||
|
repo: "{{ cinder_csi_resizer_image_repo }}"
|
||||||
|
tag: "{{ cinder_csi_resizer_image_tag }}"
|
||||||
|
sha256: "{{ cinder_csi_resizer_digest_checksum|default(None) }}"
|
||||||
|
groups:
|
||||||
|
- kube-node
|
||||||
|
|
||||||
|
cinder_csi_plugin:
|
||||||
|
enabled: "{{ cinder_csi_enabled }}"
|
||||||
|
container: true
|
||||||
|
repo: "{{ cinder_csi_plugin_image_repo }}"
|
||||||
|
tag: "{{ cinder_csi_plugin_image_tag }}"
|
||||||
|
sha256: "{{ cinder_csi_plugin_digest_checksum|default(None) }}"
|
||||||
|
groups:
|
||||||
|
- kube-node
|
||||||
|
|
||||||
|
cinder_csi_node_driver_registrar:
|
||||||
|
enabled: "{{ cinder_csi_enabled }}"
|
||||||
|
container: true
|
||||||
|
repo: "{{ cinder_csi_node_driver_registrar_image_repo }}"
|
||||||
|
tag: "{{ cinder_csi_node_driver_registrar_image_tag }}"
|
||||||
|
sha256: "{{ cinder_csi_node_driver_registrar_digest_checksum|default(None) }}"
|
||||||
|
groups:
|
||||||
|
- kube-node
|
||||||
|
|
||||||
dashboard:
|
dashboard:
|
||||||
enabled: "{{ dashboard_enabled }}"
|
enabled: "{{ dashboard_enabled }}"
|
||||||
container: true
|
container: true
|
||||||
|
|
|
@ -20,7 +20,7 @@ spec:
|
||||||
serviceAccount: csi-cinder-controller-sa
|
serviceAccount: csi-cinder-controller-sa
|
||||||
containers:
|
containers:
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: quay.io/k8scsi/csi-attacher:v1.2.1
|
image: {{ cinder_csi_attacher_image_repo }}:{{ cinder_csi_attacher_image_tag }}
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
@ -32,7 +32,7 @@ spec:
|
||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: quay.io/k8scsi/csi-provisioner:v1.3.0
|
image: {{ cinder_csi_provisioner_image_repo }}:{{ cinder_csi_provisioner_image_tag }}
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
env:
|
env:
|
||||||
|
@ -43,7 +43,7 @@ spec:
|
||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: quay.io/k8scsi/csi-snapshotter:v1.2.0
|
image: {{ cinder_csi_snapshotter_image_repo }}:{{ cinder_csi_snapshotter_image_tag }}
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
env:
|
env:
|
||||||
|
@ -54,7 +54,7 @@ spec:
|
||||||
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||||
name: socket-dir
|
name: socket-dir
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: quay.io/k8scsi/csi-resizer:v0.2.0
|
image: {{ cinder_csi_resizer_image_repo }}:{{ cinder_csi_resizer_image_tag }}
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
env:
|
env:
|
||||||
|
@ -65,7 +65,7 @@ spec:
|
||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||||
- name: cinder-csi-plugin
|
- name: cinder-csi-plugin
|
||||||
image: docker.io/k8scloudprovider/cinder-csi-plugin:latest
|
image: {{ cinder_csi_plugin_image_repo }}:{{ cinder_csi_plugin_image_tag }}
|
||||||
args :
|
args :
|
||||||
- /bin/cinder-csi-plugin
|
- /bin/cinder-csi-plugin
|
||||||
- "--nodeid=$(NODE_ID)"
|
- "--nodeid=$(NODE_ID)"
|
||||||
|
@ -90,6 +90,9 @@ spec:
|
||||||
- name: secret-cinderplugin
|
- name: secret-cinderplugin
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: ca-certs
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
{% if cinder_cacert is defined and cinder_cacert != "" %}
|
{% if cinder_cacert is defined and cinder_cacert != "" %}
|
||||||
- name: cinder-cacert
|
- name: cinder-cacert
|
||||||
mountPath: {{ kube_config_dir }}/cinder-cacert.pem
|
mountPath: {{ kube_config_dir }}/cinder-cacert.pem
|
||||||
|
@ -101,6 +104,10 @@ spec:
|
||||||
- name: secret-cinderplugin
|
- name: secret-cinderplugin
|
||||||
secret:
|
secret:
|
||||||
secretName: cloud-config
|
secretName: cloud-config
|
||||||
|
- name: ca-certs
|
||||||
|
hostPath:
|
||||||
|
path: /etc/ssl/certs
|
||||||
|
type: DirectoryOrCreate
|
||||||
{% if cinder_cacert is defined and cinder_cacert != "" %}
|
{% if cinder_cacert is defined and cinder_cacert != "" %}
|
||||||
- name: cinder-cacert
|
- name: cinder-cacert
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|
|
@ -4,4 +4,4 @@ metadata:
|
||||||
name: cinder.csi.openstack.org
|
name: cinder.csi.openstack.org
|
||||||
spec:
|
spec:
|
||||||
attachRequired: true
|
attachRequired: true
|
||||||
podInfoOnMount: false
|
podInfoOnMount: true
|
||||||
|
|
|
@ -19,7 +19,7 @@ spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: node-driver-registrar
|
- name: node-driver-registrar
|
||||||
image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
|
image: {{ cinder_csi_node_driver_registrar_image_repo }}:{{ cinder_csi_node_driver_registrar_image_tag }}
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
|
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
|
||||||
|
@ -48,7 +48,7 @@ spec:
|
||||||
capabilities:
|
capabilities:
|
||||||
add: ["SYS_ADMIN"]
|
add: ["SYS_ADMIN"]
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
image: docker.io/k8scloudprovider/cinder-csi-plugin:latest
|
image: {{ cinder_csi_plugin_image_repo }}:{{ cinder_csi_plugin_image_tag }}
|
||||||
args :
|
args :
|
||||||
- /bin/cinder-csi-plugin
|
- /bin/cinder-csi-plugin
|
||||||
- "--nodeid=$(NODE_ID)"
|
- "--nodeid=$(NODE_ID)"
|
||||||
|
@ -79,7 +79,10 @@ spec:
|
||||||
- name: secret-cinderplugin
|
- name: secret-cinderplugin
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{% if cinder_cacert is defined %}
|
- name: ca-certs
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
{% if cinder_cacert is defined and cinder_cacert != "" %}
|
||||||
- name: cinder-cacert
|
- name: cinder-cacert
|
||||||
mountPath: {{ kube_config_dir }}/cinder-cacert.pem
|
mountPath: {{ kube_config_dir }}/cinder-cacert.pem
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -108,7 +111,11 @@ spec:
|
||||||
- name: secret-cinderplugin
|
- name: secret-cinderplugin
|
||||||
secret:
|
secret:
|
||||||
secretName: cloud-config
|
secretName: cloud-config
|
||||||
{% if cinder_cacert is defined %}
|
- name: ca-certs
|
||||||
|
hostPath:
|
||||||
|
path: /etc/ssl/certs
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
{% if cinder_cacert is defined and cinder_cacert != "" %}
|
||||||
- name: cinder-cacert
|
- name: cinder-cacert
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ kube_config_dir }}/cinder-cacert.pem
|
path: {{ kube_config_dir }}/cinder-cacert.pem
|
||||||
|
|
|
@ -4,3 +4,4 @@ storage_classes:
|
||||||
is_default: false
|
is_default: false
|
||||||
parameters:
|
parameters:
|
||||||
availability: nova
|
availability: nova
|
||||||
|
allowVolumeExpansion: false
|
||||||
|
|
Loading…
Reference in New Issue