Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Pod |
| 3 | metadata: |
| 4 | name: config-init |
| 5 | spec: |
| 6 | containers: |
| 7 | - name: config-init |
| 8 | env: |
| 9 | - name: NAMESPACE |
| 10 | valueFrom: |
| 11 | fieldRef: |
| 12 | fieldPath: metadata.namespace |
Mike Elliott | d17accd | 2017-08-14 16:21:40 -0400 | [diff] [blame] | 13 | image: oomk8s/config-init:1.0.1 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 14 | imagePullPolicy: Always |
| 15 | volumeMounts: |
| 16 | - name: config-init-root |
| 17 | mountPath: /config-init/ |
| 18 | volumes: |
| 19 | - name: config-init-root |
| 20 | hostPath: |
Munir Ahmad | 76610be | 2017-08-17 11:56:15 -0400 | [diff] [blame] | 21 | path: /dockerdata-nfs/ |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 22 | restartPolicy: Never |