From 44714d8057d838a04d2d19769988af4a1672be27 Mon Sep 17 00:00:00 2001 From: ThomasCardin Date: Fri, 18 Oct 2024 13:56:52 -0400 Subject: [PATCH] issue #399: test with docker side-car --- .../apps/webtop/base/webtop-deployment.yaml | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/kubernetes/aks/apps/webtop/base/webtop-deployment.yaml b/kubernetes/aks/apps/webtop/base/webtop-deployment.yaml index 28519f8d..a0e573dd 100644 --- a/kubernetes/aks/apps/webtop/base/webtop-deployment.yaml +++ b/kubernetes/aks/apps/webtop/base/webtop-deployment.yaml @@ -17,21 +17,32 @@ spec: image: linuxserver/webtop:ubuntu-kde ports: - containerPort: 3000 + env: + - name: DOCKER_HOST + value: "tcp://localhost:2375" envFrom: - secretRef: name: webtop-secrets volumeMounts: - name: config mountPath: /config - - name: docker-socket - mountPath: /var/run/docker.sock + - name: docker-dind + image: docker:dind + securityContext: + privileged: true + ports: + - containerPort: 2375 + args: + - "--host=tcp://0.0.0.0:2375" + volumeMounts: + - name: docker-graph-storage + mountPath: /var/lib/docker volumes: - name: config persistentVolumeClaim: claimName: webtop-config-pvc - - name: docker-socket - hostPath: - path: /var/run/docker.sock + - name: docker-graph-storage + emptyDir: {} --- apiVersion: v1