summaryrefslogtreecommitdiffstats
path: root/kubernetes/config/pod-config-init.yaml
blob: 6520c83aa55bd1a94f3df18796184bc99ed327bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: v1
kind: Pod
metadata:
  name: config-init
spec:
  containers:
    - name: config-init
      env:
      - name: NAMESPACE
        valueFrom:
          fieldRef:
            fieldPath: metadata.namespace
      image: oomk8s/config-init:1.0.1
      imagePullPolicy: Always
      volumeMounts:
      - name: config-init-root
        mountPath: /config-init/
  volumes:
    - name: config-init-root
      hostPath:
        path: /dockerdata/
  restartPolicy: Never