6c1edf3c1f
- Update to Outdated files in the dev-1.18-ko.5 branch. (#21450) - Translate tasks/run-application/run-single-instance-stateful-application in Korean (#21174) - Translate tasks/debug-application-cluster/determine-reason-pod-failure in Korean (#21515) - Translate tasks/manage-hugepages/scheduling-hugepages.md into Korean (#21337) - Translate tasks/extend-kubectl/kubectl-plugins.md into Korean (#21454) - Translate tasks/manage-daemon/rollback-daemon-set.md into Korean (#21376) - Translate contribute/generate-ref-docs/overview in Korean (#21466) - Translate reference/kubectl/overview.md into Korean (#21552) - Translate configure-pod-initialization in Korean (#21600) - Translate tasks/manage-daemon/update-daemon-set.md into Korean (#21378) Co-authored-by: Jerry Park <jaehwa@gmail.com> Co-authored-by: Yoon <learder@gmail.com> Co-authored-by: Yuk, Yongsu <ysyukr@gmail.com> Co-authored-by: Seokho Son <shsongist@gmail.com> Co-authored-by: guslcho <jamie14@naver.com> Co-authored-by: DongMoon Kim <dmoons.kim@gmail.com> Co-authored-by: bluefriday <bluefriday86@gmail.com>
30 lines
563 B
YAML
30 lines
563 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
|
|
# 이 컨테이너들은 파드 초기화 중에 실행된다.
|
|
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: {}
|