From 287ff72f2955f3f3a3908bd548080582e49ecd70 Mon Sep 17 00:00:00 2001 From: Manohar Reddy Date: Tue, 16 Mar 2021 06:32:52 +0000 Subject: [PATCH] install blobfuse proxy as a dameonset --- .../sysctl-install-blobfuse-proxy.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 deploy/blobfuse-proxy/sysctl-install-blobfuse-proxy.yaml diff --git a/deploy/blobfuse-proxy/sysctl-install-blobfuse-proxy.yaml b/deploy/blobfuse-proxy/sysctl-install-blobfuse-proxy.yaml new file mode 100644 index 0000000000..f7ded6c6c2 --- /dev/null +++ b/deploy/blobfuse-proxy/sysctl-install-blobfuse-proxy.yaml @@ -0,0 +1,54 @@ +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + labels: + component: sysctl-install-blobfuse-proxy + name: sysctl-install-blobfuseproxy + namespace: kube-system +spec: + selector: + matchLabels: + component: sysctl-install-blobfuse-proxy + tier: node + template: + metadata: + labels: + component: sysctl-install-blobfuse-proxy + tier: node + spec: + containers: + - command: + - nsenter + - --target + - "1" + - --mount + - --uts + - --ipc + - --net + - --pid + - -- + - sh + - -c + - | + apt update + # download blobfuse-proxy .deb package + apt-get install blobfuse-proxy=1.3.6 -y + systemctl enable blobfuse-proxy + systemctl start blobfuse-proxy + image: alpine + imagePullPolicy: IfNotPresent + name: sysctl-install-blobfuse-proxy + resources: + requests: + cpu: 10m + securityContext: + privileged: true + dnsPolicy: ClusterFirst + hostPID: true + tolerations: + - effect: NoSchedule + operator: Exists + restartPolicy: Always + updateStrategy: + type: OnDelete