Skip to content

Commit

Permalink
azuredisk: bump version to 0.5.0 (#394)
Browse files Browse the repository at this point in the history
* azuredisk: bump version to 0.5.0

* fix: remove double quotes

* chore: use quay.io instead of azure registry

* azure: add tolerations for the ds

Co-authored-by: Sebastian Brandt <[email protected]>
  • Loading branch information
Hector Fernandez and sebbrandt87 authored Feb 5, 2020
1 parent b2b4b1b commit e20a044
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 22 deletions.
4 changes: 2 additions & 2 deletions stable/azuredisk-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
appVersion: 0.4.0
appVersion: 0.5.0
description: Azure disk Container Storage Interface (CSI) Storage Plugin
name: azuredisk-csi-driver
maintainers:
- name: sebbrandt87
version: 0.4.0
version: 0.5.0
kubeVersion: ">=1.15.0"
home: https://github.com/kubernetes-sigs/azuredisk-csi-driver
sources:
Expand Down
37 changes: 27 additions & 10 deletions stable/azuredisk-csi-driver/templates/csi-azuredisk-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ spec:
priorityClassName: system-cluster-critical
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.4.0
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
args:
- --provisioner=disk.csi.azure.com
- --csi-address=$(ADDRESS)
- --timeout=30s
- --timeout=120s
- --retry-interval-start=1s
- --retry-interval-max=5m
- --worker-threads=100
Expand All @@ -32,6 +33,7 @@ spec:
{{- end}}
- --enable-leader-election
- --leader-election-type=leases
- --v=5
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -40,14 +42,16 @@ spec:
- mountPath: /csi
name: socket-dir
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v2.0.0
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
args:
- --v=5
- --csi-address=$(ADDRESS)
- --timeout=120s
- --retry-interval-start=1s
- --retry-interval-max=5m
- --worker-threads=20
- -leader-election
- -leader-election-type=leases
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -56,7 +60,7 @@ spec:
- mountPath: /csi
name: socket-dir
- name: cluster-driver-registrar
image: quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.1
image: "{{ .Values.image.clusterDriverRegistrar.repository }}:{{ .Values.image.clusterDriverRegistrar.tag }}"
args:
- --csi-address=$(ADDRESS)
- --driver-requires-attachment=true
Expand All @@ -68,17 +72,30 @@ spec:
- name: socket-dir
mountPath: /csi
- name: csi-snapshotter
image: quay.io/k8scsi/csi-snapshotter:v1.2.2
image: "{{ .Values.image.csiSnapshotter.repository }}:{{ .Values.image.csiSnapshotter.tag }}"
args:
- --csi-address=$(ADDRESS)
- -leader-election
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-resizer
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
args:
- -csi-address=$(ADDRESS)
- -v=5
- -leader-election
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: liveness-probe
image: quay.io/k8scsi/livenessprobe:v1.1.0
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
Expand All @@ -87,11 +104,11 @@ spec:
- name: socket-dir
mountPath: /csi
- name: azuredisk
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.azuredisk.repository }}:{{ .Values.image.azuredisk.tag }}"
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
- --v=5
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(KUBE_NODE_NAME)
ports:
- containerPort: 9602
name: healthz
Expand Down
16 changes: 10 additions & 6 deletions stable/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@ spec:
hostNetwork: true
nodeSelector:
beta.kubernetes.io/os: linux
{{- if .Values.azuredisk.node.tolerations }}
tolerations:
{{ toYaml .Values.azuredisk.node.tolerations | indent 8 }}
{{- end }}
priorityClassName: system-node-critical
containers:
- name: liveness-probe
imagePullPolicy: Always
volumeMounts:
- mountPath: /csi
name: socket-dir
image: quay.io/k8scsi/livenessprobe:v1.1.0
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
- --health-port=9602
- name: node-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0
image: "{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}"
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
Expand All @@ -49,11 +53,11 @@ spec:
- name: registration-dir
mountPath: /registration
- name: azuredisk
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.azuredisk.repository }}:{{ .Values.image.azuredisk.tag }}"
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
- --v=5
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(KUBE_NODE_NAME)
ports:
- containerPort: 9602
name: healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
verbs: ["get", "watch", "list", "delete", "update", "create", "patch"]

---

Expand Down Expand Up @@ -166,4 +166,40 @@ roleRef:
kind: ClusterRole
name: azuredisk-external-snapshotter-role
apiGroup: rbac.authorization.k8s.io

---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: azuredisk-external-resizer-role
namespace: {{ .Release.Namespace }}
{{ include "azuredisk.labels" . | indent 2 }}
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims/status"]
verbs: ["update", "patch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["list", "watch", "create", "update", "patch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: azuredisk-csi-resizer-role
namespace: {{ .Release.Namespace }}
{{ include "azuredisk.labels" . | indent 2 }}
subjects:
- kind: ServiceAccount
name: csi-azuredisk-controller-sa
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: azuredisk-external-resizer-role
apiGroup: rbac.authorization.k8s.io
{{ end }}
48 changes: 45 additions & 3 deletions stable/azuredisk-csi-driver/values.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,57 @@
image:
repository: mcr.microsoft.com/k8s/csi/azuredisk-csi
tag: v0.4.0
pullPolicy: Always
azuredisk:
repository: mcr.microsoft.com/k8s/csi/azuredisk-csi
tag: v0.5.0
pullPolicy: Always
csiProvisioner:
repository: quay.io/k8scsi/csi-provisioner
tag: v1.4.0
pullPolicy: Always
csiAttacher:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: Always
clusterDriverRegistrar:
repository: quay.io/k8scsi/csi-cluster-driver-registrar
tag: v1.0.1
pullPolicy: Always
csiSnapshotter:
repository: quay.io/k8scsi/csi-snapshotter
tag: v1.1.0
pullPolicy: Always
csiResizer:
repository: quay.io/k8scsi/csi-resizer
tag: v0.3.0
pullPolicy: Always
livenessProbe:
repository: quay.io/k8scsi/livenessprobe
tag: v1.1.0
pullPolicy: Always
nodeDriverRegistrar:
repository: quay.io/k8scsi/csi-node-driver-registrar
tag: v1.1.0
pullPolicy: Always

serviceAccount:
create: true

rbac:
create: true

controller:
replicas: 3

# True if enable volume scheduling for dynamic volume provisioning
enableVolumeScheduling: false

cloudConfig: /etc/kubernetes/cloud-config/cloud.conf

azuredisk:
node:
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
- key: CriticalAddonsOnly
operator: Exists

0 comments on commit e20a044

Please sign in to comment.