Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
28 changed files
with
1,464 additions
and
24 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
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: v1.6.0 | ||
description: Azure Blob Storage CSI driver | ||
name: blob-csi-driver | ||
version: v1.6.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 Blob Storage CSI driver is getting deployed to your cluster. | ||
|
||
To check Azure Blob Storage 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,26 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* Expand the name of the chart.*/}} | ||
{{- define "blob.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* labels for helm resources */}} | ||
{{- define "blob.labels" -}} | ||
labels: | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/managed-by: "{{ .Release.Service }}" | ||
app.kubernetes.io/name: "{{ template "blob.name" . }}" | ||
app.kubernetes.io/version: "{{ .Chart.AppVersion }}" | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" | ||
{{- end -}} | ||
|
||
{{/* pull secrets for containers */}} | ||
{{- define "blob.pullSecrets" -}} | ||
{{- if .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- range .Values.imagePullSecrets }} | ||
- name: {{ . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} |
88 changes: 88 additions & 0 deletions
88
charts/v1.6.0/blob-csi-driver/templates/blobfuse-proxy.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,88 @@ | ||
{{- if .Values.node.enableBlobfuseProxy -}} | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: csi-blobfuse-proxy | ||
namespace: kube-system | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: csi-blobfuse-proxy | ||
template: | ||
metadata: | ||
labels: | ||
app: csi-blobfuse-proxy | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: type | ||
operator: NotIn | ||
values: | ||
- virtual-kubelet | ||
initContainers: | ||
- name: prepare-binaries | ||
image: "{{ .Values.image.blob.repository }}:{{ .Values.image.blob.tag }}" | ||
command: ['sh', '-c', "cp /blobfuse-proxy/*.deb /tmp/"] | ||
volumeMounts: | ||
- mountPath: /tmp | ||
name: tmp-dir | ||
containers: | ||
- command: | ||
- nsenter | ||
- '--target' | ||
- '1' | ||
- '--mount' | ||
- '--uts' | ||
- '--ipc' | ||
- '--net' | ||
- '--pid' | ||
- '--' | ||
- sh | ||
- '-c' | ||
- | | ||
set -xe | ||
dpkg -i /tmp/packages-microsoft-prod.deb && apt-get install -y blobfuse=1.4.1 | ||
dpkg -i /tmp/blobfuse-proxy.deb | ||
rm -f /tmp/packages-microsoft-prod.deb /tmp/blobfuse-proxy.deb | ||
mkdir -p /var/lib/kubelet/plugins/blob.csi.azure.com | ||
echo "Enabling blobfuse proxy systemctl service" | ||
systemctl enable blobfuse-proxy | ||
systemctl start blobfuse-proxy | ||
echo "set max open file num" | ||
sysctl -w fs.file-max=9000000 | ||
echo "waiting for blobfuse-proxy service to start" | ||
sleep 3s | ||
# tail blobfuse proxy logs | ||
journalctl -u blobfuse-proxy -f | ||
image: "{{ .Values.image.blob.repository }}:{{ .Values.image.blob.tag }}" | ||
imagePullPolicy: IfNotPresent | ||
name: sysctl-install-blobfuse-proxy | ||
env: | ||
- name: "DEBIAN_FRONTEND" | ||
value: "noninteractive" | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 200Mi | ||
requests: | ||
cpu: 10m | ||
memory: 1Mi | ||
securityContext: | ||
privileged: true | ||
hostNetwork: true | ||
hostPID: true | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
priorityClassName: system-node-critical | ||
restartPolicy: Always | ||
tolerations: | ||
- operator: Exists | ||
volumes: | ||
- hostPath: | ||
path: /tmp | ||
type: DirectoryOrCreate | ||
name: tmp-dir | ||
{{ end }} |
Oops, something went wrong.