summaryrefslogtreecommitdiffstats
path: root/kubernetes/config/pod-config-init.yaml
blob: 372694ebe6722905f786f776bc9b86fdf710f75d (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-nfs/
  restartPolicy: Never