tasks/configure-pod-container/configure-pod-configmap/

This commit is contained in:
yoshiki0705
2020-05-05 21:08:46 +09:00
parent 27d1a97299
commit 03dbe94df3
9 changed files with 809 additions and 0 deletions
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
spec:
containers:
- name: test-container
image: k8s.gcr.io/busybox
command: [ "/bin/sh", "-c", "ls /etc/config/" ]
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
# コンテナに追加するファイルを含むConfigMapの名前を提供する
name: special-config
restartPolicy: Never