Skip to content

Commit

Permalink
doc: cut v0.8.0 release
Browse files Browse the repository at this point in the history
add chart file

fix doc
  • Loading branch information
andyzhangx committed Jul 31, 2020
1 parent 0e1d5bc commit e833987
Show file tree
Hide file tree
Showing 33 changed files with 2,834 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This driver allows Kubernetes to use [Azure File](https://docs.microsoft.com/en-
|Azure File CSI Driver Version | Image | 1.14+ |
|-------------------------------|----------------------------------------------------|--------|
|master branch |mcr.microsoft.com/k8s/csi/azurefile-csi:latest | yes |
|v0.8.0 |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.8.0 | yes |
|v0.7.0 |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.7.0 | yes |
|v0.6.0 |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.6.0 | yes |

Expand Down
2 changes: 1 addition & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $ helm search repo -l azurefile-csi-driver/
### Install a specific version of Helm chart
Specify the version of the chart to be installed using the `--version` parameter.
```console
helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --version v0.6.0
helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --version v0.8.0
```

## Uninstall
Expand Down
Binary file added charts/v0.8.0/azurefile-csi-driver-v0.8.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions charts/v0.8.0/azurefile-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: v0.8.0
description: Azure File Container Storage Interface (CSI) Storage Plugin
name: azurefile-csi-driver
version: v0.8.0
5 changes: 5 additions & 0 deletions charts/v0.8.0/azurefile-csi-driver/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The Azure File CSI Driver is getting deployed to your cluster.

To check Azure File CSI Driver pods status, please run:

kubectl --namespace={{ .Release.Namespace }} get pods --selector="release={{ .Release.Name }}" --watch
11 changes: 11 additions & 0 deletions charts/v0.8.0/azurefile-csi-driver/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{/* vim: set filetype=mustache: */}}

{{/* labels for helm resources */}}
{{- define "azurefile.labels" -}}
labels:
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
revision: "{{ .Release.Revision }}"
chart: "{{ .Chart.Name }}"
chartVersion: "{{ .Chart.Version }}"
{{- end -}}
507 changes: 507 additions & 0 deletions charts/v0.8.0/azurefile-csi-driver/templates/crd-csi-snapshot.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: csi-azurefile-controller
namespace: {{ .Release.Namespace }}
{{ include "azurefile.labels" . | indent 2 }}
spec:
replicas: {{ .Values.controller.replicas }}
selector:
matchLabels:
app: csi-azurefile-controller
template:
metadata:
{{ include "azurefile.labels" . | indent 6 }}
app: csi-azurefile-controller
spec:
hostNetwork: true # only required for MSI enabled cluster
serviceAccountName: csi-azurefile-controller-sa
nodeSelector:
kubernetes.io/os: linux
priorityClassName: system-cluster-critical
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Equal"
value: "true"
effect: "NoSchedule"
containers:
- name: csi-provisioner
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
args:
- "-v=5"
- "--csi-address=$(ADDRESS)"
- "--enable-leader-election"
- "--leader-election-type=leases"
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }}
volumeMounts:
- mountPath: /csi
name: socket-dir
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 10m
memory: 20Mi
- name: csi-attacher
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
args:
- "-v=5"
- "-csi-address=$(ADDRESS)"
- "-timeout=120s"
- "-leader-election"
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: {{ .Values.image.csiAttacher.pullPolicy }}
volumeMounts:
- mountPath: /csi
name: socket-dir
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 10m
memory: 20Mi
{{- if .Values.snapshot.enabled}}
- name: csi-snapshotter
image: "{{ .Values.snapshot.image.csiSnapshotter.repository }}:{{ .Values.snapshot.image.csiSnapshotter.tag }}"
args:
- "-csi-address=$(ADDRESS)"
- "-leader-election"
- "-v=5"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 10m
memory: 20Mi
{{- end}}
- 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
imagePullPolicy: {{ .Values.image.csiResizer.pullPolicy }}
volumeMounts:
- name: socket-dir
mountPath: /csi
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 10m
memory: 20Mi
- name: liveness-probe
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
- --health-port=29612
- --v=5
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
volumeMounts:
- name: socket-dir
mountPath: /csi
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 10m
memory: 20Mi
- name: azurefile
image: "{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
ports:
- containerPort: 29612
name: healthz
protocol: TCP
- containerPort: 29614
name: metrics
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
env:
- name: AZURE_CREDENTIAL_FILE
valueFrom:
configMapKeyRef:
name: azure-cred-file
key: path
optional: true
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
imagePullPolicy: {{ .Values.image.azurefile.pullPolicy }}
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /etc/kubernetes/
name: azure-cred
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
readOnly: true
name: msi
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 10m
memory: 20Mi
volumes:
- name: socket-dir
emptyDir: {}
- name: azure-cred
hostPath:
path: /etc/kubernetes/
type: Directory
- name: msi
hostPath:
path: /var/lib/waagent/ManagedIdentity-Settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: storage.k8s.io/v1beta1
kind: CSIDriver
metadata:
name: file.csi.azure.com
spec:
attachRequired: true
podInfoOnMount: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{{- if .Values.windows.enabled}}
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: csi-azurefile-node
namespace: {{ .Release.Namespace }}
{{ include "azurefile.labels" . | indent 2 }}
spec:
selector:
matchLabels:
app: csi-azurefile-node
template:
metadata:
{{ include "azurefile.labels" . | indent 6 }}
app: csi-azurefile-node
spec:
serviceAccountName: csi-azurefile-node-sa
nodeSelector:
kubernetes.io/os: windows
priorityClassName: system-node-critical
tolerations:
- operator: "Exists"
containers:
- name: liveness-probe
volumeMounts:
- mountPath: C:\csi
name: plugin-dir
image: "{{ .Values.windows.image.livenessProbe.repository }}:{{ .Values.windows.image.livenessProbe.tag }}"
args:
- "--csi-address=$(CSI_ENDPOINT)"
- "--probe-timeout=3s"
- "--health-port=29613"
- "--v=5"
env:
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
imagePullPolicy: {{ .Values.windows.image.livenessProbe.pullPolicy }}
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 10m
memory: 20Mi
- name: node-driver-registrar
image: "{{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
args:
- "--csi-address=$(CSI_ENDPOINT)"
- "--kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\file.csi.azure.com\\csi.sock"
- "--v=5"
env:
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
imagePullPolicy: {{ .Values.windows.image.nodeDriverRegistrar.pullPolicy }}
volumeMounts:
- name: kubelet-dir
mountPath: "C:\\var\\lib\\kubelet"
- name: plugin-dir
mountPath: C:\csi
- name: registration-dir
mountPath: C:\registration
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 10m
memory: 20Mi
- name: azurefile
image: "{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
ports:
- containerPort: 29613
name: healthz
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
env:
- name: AZURE_CREDENTIAL_FILE
valueFrom:
configMapKeyRef:
name: azure-cred-file
key: path-windows
optional: true
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
privileged: true
volumeMounts:
- name: kubelet-dir
mountPath: "C:\\var\\lib\\kubelet"
- name: plugin-dir
mountPath: C:\csi
- name: azure-config
mountPath: C:\k
- name: csi-proxy-fs-pipe
mountPath: \\.\pipe\csi-proxy-filesystem-v1alpha1
- name: csi-proxy-smb-pipe
mountPath: \\.\pipe\csi-proxy-smb-v1alpha1
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 10m
memory: 20Mi
volumes:
- name: csi-proxy-fs-pipe
hostPath:
path: \\.\pipe\csi-proxy-filesystem-v1alpha1
type: ""
- name: csi-proxy-smb-pipe
hostPath:
path: \\.\pipe\csi-proxy-smb-v1alpha1
type: ""
- name: registration-dir
hostPath:
path: C:\var\lib\kubelet\plugins_registry\
type: Directory
- name: kubelet-dir
hostPath:
path: C:\var\lib\kubelet\
type: Directory
- name: plugin-dir
hostPath:
path: C:\var\lib\kubelet\plugins\file.csi.azure.com\
type: DirectoryOrCreate
- name: azure-config
hostPath:
path: C:\k
type: Directory
{{- end -}}
Loading

0 comments on commit e833987

Please sign in to comment.