-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
33 changed files
with
2,834 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
507
charts/v0.8.0/azurefile-csi-driver/templates/crd-csi-snapshot.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
183 changes: 183 additions & 0 deletions
183
charts/v0.8.0/azurefile-csi-driver/templates/csi-azurefile-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
8 changes: 8 additions & 0 deletions
8
charts/v0.8.0/azurefile-csi-driver/templates/csi-azurefile-driver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
151 changes: 151 additions & 0 deletions
151
charts/v0.8.0/azurefile-csi-driver/templates/csi-azurefile-node-windows.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -}} |
Oops, something went wrong.