Improvements for markdown formatting (#12193)
* Fixed markdown formatting * Resolved usage of 'shell' instead of 'yaml' * Removed unknown 'log' keyword
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
10a75e3d72
commit
1bc0d7c385
+6
-6
@@ -60,13 +60,13 @@ kubectl create -f https://k8s.io/examples/pods/inject/dapi-envars-pod.yaml
|
||||
|
||||
Verify that the Container in the Pod is running:
|
||||
|
||||
```
|
||||
```shell
|
||||
kubectl get pods
|
||||
```
|
||||
|
||||
View the Container's logs:
|
||||
|
||||
```
|
||||
```shell
|
||||
kubectl logs dapi-envars-fieldref
|
||||
```
|
||||
|
||||
@@ -86,13 +86,13 @@ five environment variables to stdout. It repeats this every ten seconds.
|
||||
|
||||
Next, get a shell into the Container that is running in your Pod:
|
||||
|
||||
```
|
||||
```shell
|
||||
kubectl exec -it dapi-envars-fieldref -- sh
|
||||
```
|
||||
|
||||
In your shell, view the environment variables:
|
||||
|
||||
```
|
||||
```shell
|
||||
/# printenv
|
||||
```
|
||||
|
||||
@@ -135,13 +135,13 @@ kubectl create -f https://k8s.io/examples/pods/inject/dapi-envars-container.yaml
|
||||
|
||||
Verify that the Container in the Pod is running:
|
||||
|
||||
```
|
||||
```shell
|
||||
kubectl get pods
|
||||
```
|
||||
|
||||
View the Container's logs:
|
||||
|
||||
```
|
||||
```shell
|
||||
kubectl logs dapi-envars-resourcefieldref
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user