zh-trans: add examples/podpreset/ examples/pods/{config,inject,probe,qos,resource,security,storage} yaml files

This commit is contained in:
Rui Chen
2018-12-03 09:36:16 -05:00
parent 13953625e4
commit b6d431ea4d
54 changed files with 1115 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: {}