Consolidate YAML files [part-10] (#9362)
* Consolidate YAML files [part-10] This PR relocates the YAML files used by the pod configuration topic. * Update examples_test.go * Update examples_test.go * Update examples_test.go * Update examples_test.go * Update examples_test.go
This commit is contained in:
@@ -26,7 +26,7 @@ container starts.
|
||||
|
||||
Here is the configuration file for the Pod:
|
||||
|
||||
{{< code file="init-containers.yaml" >}}
|
||||
{{< codenew file="pods/init-containers.yaml" >}}
|
||||
|
||||
In the configuration file, you can see that the Pod has a Volume that the init
|
||||
container and the application container share.
|
||||
@@ -43,7 +43,7 @@ of the nginx server.
|
||||
|
||||
Create the Pod:
|
||||
|
||||
kubectl create -f https://k8s.io/docs/tasks/configure-pod-container/init-containers.yaml
|
||||
kubectl create -f https://k8s.io/examples/pods/init-containers.yaml
|
||||
|
||||
Verify that the nginx container is running:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user