|
@@ -0,0 +1,43 @@
|
|
|
+apiVersion: v1
|
|
|
+kind: Pod
|
|
|
+metadata:
|
|
|
+ labels:
|
|
|
+ aihub-backend: aihub-backend
|
|
|
+spec:
|
|
|
+ containers:
|
|
|
+ - name: docker
|
|
|
+ image: docker:latest
|
|
|
+ imagePullPolicy: IfNotPresent
|
|
|
+ command:
|
|
|
+ - cat
|
|
|
+ tty: true
|
|
|
+ volumeMounts:
|
|
|
+ - mountPath: "/etc/docker/daemon.json"
|
|
|
+ name: "volume-docker1"
|
|
|
+ - mountPath: "/root/.docker/config.json"
|
|
|
+ name: "docker-auth"
|
|
|
+ - mountPath: "/var/run/docker.sock"
|
|
|
+ name: "volume-docker0"
|
|
|
+ - name: kubectl
|
|
|
+ image: cnych/kubectl
|
|
|
+ imagePullPolicy: IfNotPresent
|
|
|
+ command:
|
|
|
+ - cat
|
|
|
+ tty: true
|
|
|
+ volumes:
|
|
|
+ - name: volume-docker0
|
|
|
+ hostPath:
|
|
|
+ path: "/var/run/docker.sock"
|
|
|
+ - name: docker-auth
|
|
|
+ hostPath:
|
|
|
+ path: "/root/.docker/config.json"
|
|
|
+ - name: volume-docker1
|
|
|
+ hostPath:
|
|
|
+ path: "/etc/docker/daemon.json"
|
|
|
+ nodeSelector:
|
|
|
+ kubernetes.io/hostname: 10.138.130.97
|
|
|
+ tolerations:
|
|
|
+ - key: "node-role.kubernetes.io/master"
|
|
|
+ operator: "Equal"
|
|
|
+ value: "true"
|
|
|
+ effect: "NoSchedule"
|