Skip to content

Commit d38b73d

Browse files
authored
Merge pull request #248 from andyzhangx/cutoff-v0.5.0
doc: cut off v0.5.0 beta release
2 parents 14167a7 + 1441912 commit d38b73d

18 files changed

+1236
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ Status: Beta
1313
|Azure Disk CSI Driver Version | Image | v1.0.0 |
1414
|-------------------------------|----------------------------------------------------|--------|
1515
|master branch |mcr.microsoft.com/k8s/csi/azuredisk-csi:latest | yes |
16+
|v0.5.0 |mcr.microsoft.com/k8s/csi/azuredisk-csi:v0.5.0 | yes |
1617
|v0.4.0 |mcr.microsoft.com/k8s/csi/azuredisk-csi:v0.4.0 | yes |
1718
|v0.3.0 |mcr.microsoft.com/k8s/csi/azuredisk-csi:v0.3.0 | yes |
1819

1920
### Kubernetes Compatibility
2021
| Azure Disk CSI Driver\Kubernetes Version | 1.14+ |
2122
|------------------------------------------|-------|
2223
| master branch | yes |
24+
| v0.5.0 | yes |
2325
| v0.4.0 | yes |
2426
| v0.3.0 | yes |
2527

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
appVersion: 0.5.0
3+
description: Azure disk Container Storage Interface (CSI) Storage Plugin
4+
name: azuredisk-csi-driver
5+
version: 0.5.0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The Azure Disk CSI Driver is getting deployed to your cluster.
2+
3+
To check Azure Disk CSI Driver pods status, please run:
4+
5+
kubectl --namespace={{ .Release.Namespace }} get pods --selector="release={{ .Release.Name }}" --watch
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
3+
{{/* labels for helm resources */}}
4+
{{- define "azuredisk.labels" -}}
5+
labels:
6+
heritage: "{{ .Release.Service }}"
7+
release: "{{ .Release.Name }}"
8+
revision: "{{ .Release.Revision }}"
9+
chart: "{{ .Chart.Name }}"
10+
chartVersion: "{{ .Chart.Version }}"
11+
{{- end -}}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
creationTimestamp: null
5+
name: csidrivers.csi.storage.k8s.io
6+
{{ include "azuredisk.labels" . | indent 2 }}
7+
spec:
8+
group: csi.storage.k8s.io
9+
names:
10+
kind: CSIDriver
11+
plural: csidrivers
12+
scope: Cluster
13+
validation:
14+
openAPIV3Schema:
15+
properties:
16+
spec:
17+
description: Specification of the CSI Driver.
18+
properties:
19+
attachRequired:
20+
description:
21+
Indicates this CSI volume driver requires an attach operation,
22+
and that Kubernetes should call attach and wait for any attach operation
23+
to complete before proceeding to mount.
24+
type: boolean
25+
podInfoOnMountVersion:
26+
description:
27+
Indicates this CSI volume driver requires additional pod
28+
information (like podName, podUID, etc.) during mount operations.
29+
type: string
30+
version: v1alpha1
31+
status:
32+
acceptedNames:
33+
kind: ""
34+
plural: ""
35+
conditions: []
36+
storedVersions: []
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
creationTimestamp: null
5+
name: csinodeinfos.csi.storage.k8s.io
6+
{{ include "azuredisk.labels" . | indent 2 }}
7+
spec:
8+
group: csi.storage.k8s.io
9+
names:
10+
kind: CSINodeInfo
11+
plural: csinodeinfos
12+
scope: Cluster
13+
validation:
14+
openAPIV3Schema:
15+
properties:
16+
csiDrivers:
17+
description: List of CSI drivers running on the node and their properties.
18+
items:
19+
properties:
20+
driver:
21+
description: The CSI driver that this object refers to.
22+
type: string
23+
nodeID:
24+
description: The node from the driver point of view.
25+
type: string
26+
topologyKeys:
27+
description: List of keys supported by the driver.
28+
items:
29+
type: string
30+
type: array
31+
type: array
32+
version: v1alpha1
33+
status:
34+
acceptedNames:
35+
kind: ""
36+
plural: ""
37+
conditions: []
38+
storedVersions: []
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
kind: Deployment
2+
apiVersion: apps/v1
3+
metadata:
4+
name: csi-azuredisk-controller
5+
namespace: {{ .Release.Namespace }}
6+
{{ include "azuredisk.labels" . | indent 2 }}
7+
spec:
8+
replicas: {{ .Values.controller.replicas }}
9+
selector:
10+
matchLabels:
11+
app: csi-azuredisk-controller
12+
template:
13+
metadata:
14+
{{ include "azuredisk.labels" . | indent 6 }}
15+
app: csi-azuredisk-controller
16+
spec:
17+
serviceAccountName: csi-azuredisk-controller-sa
18+
nodeSelector:
19+
beta.kubernetes.io/os: linux
20+
priorityClassName: system-cluster-critical
21+
containers:
22+
- name: csi-provisioner
23+
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
24+
args:
25+
- "--provisioner=disk.csi.azure.com"
26+
- "--feature-gates=Topology=true"
27+
- "--csi-address=$(ADDRESS)"
28+
- "--connection-timeout=15s"
29+
- "--v=5"
30+
- "--timeout=120s"
31+
- "--enable-leader-election"
32+
- "--leader-election-type=leases"
33+
env:
34+
- name: ADDRESS
35+
value: /csi/csi.sock
36+
imagePullPolicy: Always
37+
volumeMounts:
38+
- mountPath: /csi
39+
name: socket-dir
40+
- name: csi-attacher
41+
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
42+
args:
43+
- "-v=5"
44+
- "-csi-address=$(ADDRESS)"
45+
- "-timeout=120s"
46+
- "-leader-election"
47+
- "-leader-election-type=leases"
48+
env:
49+
- name: ADDRESS
50+
value: /csi/csi.sock
51+
imagePullPolicy: Always
52+
volumeMounts:
53+
- mountPath: /csi
54+
name: socket-dir
55+
- name: cluster-driver-registrar
56+
image: "{{ .Values.image.clusterDriverRegistrar.repository }}:{{ .Values.image.clusterDriverRegistrar.tag }}"
57+
args:
58+
- --csi-address=$(ADDRESS)
59+
- --driver-requires-attachment=true
60+
- --v=5
61+
env:
62+
- name: ADDRESS
63+
value: /csi/csi.sock
64+
volumeMounts:
65+
- name: socket-dir
66+
mountPath: /csi
67+
- name: csi-snapshotter
68+
image: "{{ .Values.image.csiSnapshotter.repository }}:{{ .Values.image.csiSnapshotter.tag }}"
69+
args:
70+
- "-csi-address=$(ADDRESS)"
71+
- "-leader-election"
72+
env:
73+
- name: ADDRESS
74+
value: /csi/csi.sock
75+
volumeMounts:
76+
- name: socket-dir
77+
mountPath: /csi
78+
- name: csi-resizer
79+
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
80+
args:
81+
- "-csi-address=$(ADDRESS)"
82+
- "-v=5"
83+
- "-leader-election"
84+
env:
85+
- name: ADDRESS
86+
value: /csi/csi.sock
87+
volumeMounts:
88+
- name: socket-dir
89+
mountPath: /csi
90+
- name: liveness-probe
91+
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
92+
args:
93+
- --csi-address=/csi/csi.sock
94+
- --connection-timeout=3s
95+
- --health-port=9602
96+
volumeMounts:
97+
- name: socket-dir
98+
mountPath: /csi
99+
- name: azuredisk
100+
image: "{{ .Values.image.azuredisk.repository }}:{{ .Values.image.azuredisk.tag }}"
101+
args:
102+
- "--v=5"
103+
- "--endpoint=$(CSI_ENDPOINT)"
104+
- "--nodeid=$(KUBE_NODE_NAME)"
105+
ports:
106+
- containerPort: 9602
107+
name: healthz
108+
protocol: TCP
109+
- containerPort: 10252
110+
name: metrics
111+
protocol: TCP
112+
livenessProbe:
113+
failureThreshold: 5
114+
httpGet:
115+
path: /healthz
116+
port: healthz
117+
initialDelaySeconds: 30
118+
timeoutSeconds: 10
119+
periodSeconds: 30
120+
env:
121+
- name: AZURE_CREDENTIAL_FILE
122+
value: "/etc/kubernetes/azure.json"
123+
- name: CSI_ENDPOINT
124+
value: unix:///csi/csi.sock
125+
imagePullPolicy: {{ .Values.image.pullPolicy }}
126+
volumeMounts:
127+
- mountPath: /csi
128+
name: socket-dir
129+
- mountPath: /etc/kubernetes/
130+
name: azure-cred
131+
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
132+
readOnly: true
133+
name: msi
134+
volumes:
135+
- name: socket-dir
136+
emptyDir: {}
137+
- name: azure-cred
138+
hostPath:
139+
path: /etc/kubernetes/
140+
type: Directory
141+
- name: msi
142+
hostPath:
143+
path: /var/lib/waagent/ManagedIdentity-Settings
144+
---
145+
apiVersion: v1
146+
kind: Service
147+
metadata:
148+
name: csi-azuredisk-controller
149+
namespace: {{ .Release.Namespace }}
150+
{{ include "azuredisk.labels" . | indent 2 }}
151+
spec:
152+
selector:
153+
app: csi-azuredisk-controller
154+
ports:
155+
- port: 10252
156+
targetPort: 10252
157+
type: ClusterIP

0 commit comments

Comments
 (0)