translate pod initialization FR (#16359)

This commit is contained in:
icheikhrouhou
2020-01-15 13:11:32 +01:00
committed by Kubernetes Prow Robot
parent e518428621
commit eb524b82a9
2 changed files with 116 additions and 0 deletions
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Pod
metadata:
name: init-demo
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
volumeMounts:
- name: workdir
mountPath: /usr/share/nginx/html
# These containers are run during pod initialization
initContainers:
- name: install
image: busybox
command:
- wget
- "-O"
- "/work-dir/index.html"
- http://kubernetes.io
volumeMounts:
- name: workdir
mountPath: "/work-dir"
dnsPolicy: Default
volumes:
- name: workdir
emptyDir: {}