c87a30450a
1. Confirm the document content is similar as en version.
2. Merge the zh release-1.14 version into 1.15 version
3. add the 1.14 all sample into 1.15 for template work. The build looks fine.
- docs
- concepts
- architecture
31 lines
554 B
YAML
31 lines
554 B
YAML
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: {}
|
|
|