Skip to content

Commit a580d52

Browse files
authored
Merge pull request #34003 from Sea-n/code-output
Fix some sample outputs incorrectly marked as code
2 parents 11a1436 + 50b9fb2 commit a580d52

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

content/en/docs/concepts/workloads/controllers/job.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ kubectl logs $pods
119119

120120
The output is similar to this:
121121

122-
```shell
122+
```
123123
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632788659361533818279682303019520353018529689957736225994138912497217752834791315155748572424541506959508295331168617278558890750983817546374649393192550604009277016711390098488240128583616035637076601047101819429555961989467678374494482553797747268471040475346462080466842590694912933136770289891521047521620569660240580381501935112533824300355876402474964732639141992726042699227967823547816360093417216412199245863150302861829745557067498385054945885869269956909272107975093029553211653449872027559602364806654991198818347977535663698074265425278625518184175746728909777727938000816470600161452491921732172147723501414419735685481613611573525521334757418494684385233239073941433345477624168625189835694855620992192221842725502542568876717904946016534668049886272327917860857843838279679766814541009538837863609506800642251252051173929848960841284886269456042419652850222106611863067442786220391949450471237137869609563643719172874677646575739624138908658326459958133904780275901
124124
```
125125

content/en/docs/concepts/workloads/controllers/replicaset.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ kubectl describe rs/frontend
7878

7979
And you will see output similar to:
8080

81-
```shell
81+
```
8282
Name: frontend
8383
Namespace: default
8484
Selector: tier=frontend
@@ -130,7 +130,7 @@ kubectl get pods frontend-b2zdv -o yaml
130130

131131
The output will look similar to this, with the frontend ReplicaSet's info set in the metadata's ownerReferences field:
132132

133-
```shell
133+
```yaml
134134
apiVersion: v1
135135
kind: Pod
136136
metadata:
@@ -181,7 +181,7 @@ kubectl get pods
181181

182182
The output shows that the new Pods are either already terminated, or in the process of being terminated:
183183

184-
```shell
184+
```
185185
NAME READY STATUS RESTARTS AGE
186186
frontend-b2zdv 1/1 Running 0 10m
187187
frontend-vcmts 1/1 Running 0 10m
@@ -210,7 +210,7 @@ kubectl get pods
210210
```
211211

212212
Will reveal in its output:
213-
```shell
213+
```
214214
NAME READY STATUS RESTARTS AGE
215215
frontend-hmmj2 1/1 Running 0 9s
216216
pod1 1/1 Running 0 36s

content/en/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ kubectl config --kubeconfig=config-demo view
115115

116116
The output shows the two clusters, two users, and three contexts:
117117

118-
```shell
118+
```yaml
119119
apiVersion: v1
120120
clusters:
121121
- cluster:

content/en/docs/tasks/administer-cluster/quota-api-object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ kubectl get persistentvolumeclaims --namespace=quota-object-example
8989

9090
The output shows that the PersistentVolumeClaim exists and has status Pending:
9191

92-
```shell
92+
```
9393
NAME STATUS
9494
pvc-quota-demo Pending
9595
```

content/en/docs/tasks/configure-pod-container/assign-memory-resource.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ kubectl get pod memory-demo-2 --output=yaml --namespace=mem-example
171171

172172
The output shows that the Container was killed because it is out of memory (OOM):
173173

174-
```shell
174+
```yaml
175175
lastState:
176176
terminated:
177177
containerID: 65183c1877aaec2e8427bc95609cc52677a454b56fcb24340dbd22917c23b10f
@@ -278,7 +278,7 @@ kubectl describe pod memory-demo-3 --namespace=mem-example
278278

279279
The output shows that the Container cannot be scheduled because of insufficient memory on the Nodes:
280280

281-
```shell
281+
```
282282
Events:
283283
... Reason Message
284284
------ -------
@@ -291,8 +291,8 @@ The memory resource is measured in bytes. You can express memory as a plain inte
291291
fixed-point integer with one of these suffixes: E, P, T, G, M, K, Ei, Pi, Ti, Gi, Mi, Ki.
292292
For example, the following represent approximately the same value:
293293

294-
```shell
295-
128974848, 129e6, 129M , 123Mi
294+
```
295+
128974848, 129e6, 129M, 123Mi
296296
```
297297

298298
Delete your Pod:

content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ kubectl create -f https://kubernetes.io/examples/pods/pod-configmap-env-var-valu
548548

549549
produces the following output in the `test-container` container:
550550

551-
```shell
551+
```
552552
very charm
553553
```
554554

@@ -582,7 +582,7 @@ kubectl create -f https://kubernetes.io/examples/pods/pod-configmap-volume.yaml
582582

583583
When the pod runs, the command `ls /etc/config/` produces the output below:
584584

585-
```shell
585+
```
586586
SPECIAL_LEVEL
587587
SPECIAL_TYPE
588588
```
@@ -610,7 +610,7 @@ kubectl create -f https://kubernetes.io/examples/pods/pod-configmap-volume-speci
610610

611611
When the pod runs, the command `cat /etc/config/keys` produces the output below:
612612

613-
```shell
613+
```
614614
very
615615
```
616616

content/en/docs/tasks/configure-pod-container/configure-runasusername.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ echo $env:USERNAME
5757

5858
The output should be:
5959

60-
```shell
60+
```
6161
ContainerUser
6262
```
6363

@@ -97,7 +97,7 @@ echo $env:USERNAME
9797

9898
The output should be:
9999

100-
```shell
100+
```
101101
ContainerAdministrator
102102
```
103103

content/en/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ kubectl logs kubernetes-downwardapi-volume-example
6969

7070
The output shows the contents of the `labels` file and the `annotations` file:
7171

72-
```shell
72+
```
7373
cluster="test-cluster1"
7474
rack="rack-22"
7575
zone="us-est-coast"

content/en/docs/tasks/manage-daemon/update-daemon-set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ kubectl apply -f https://k8s.io/examples/controllers/fluentd-daemonset.yaml --dr
7979

8080
The output from both commands should be:
8181

82-
```shell
82+
```
8383
RollingUpdate
8484
```
8585

content/en/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ kubectl get deployment patch-demo --output yaml
8282

8383
The output shows that the PodSpec in the Deployment has two Containers:
8484

85-
```shell
85+
```yaml
8686
containers:
8787
- image: redis
8888
imagePullPolicy: Always
@@ -309,7 +309,7 @@ kubectl patch deployment retainkeys-demo --type merge --patch-file patch-file-no
309309
310310
In the output, you can see that it is not possible to set `type` as `Recreate` when a value is defined for `spec.strategy.rollingUpdate`:
311311
312-
```shell
312+
```
313313
The Deployment "retainkeys-demo" is invalid: spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy `type` is 'Recreate'
314314
```
315315
@@ -341,7 +341,7 @@ kubectl get deployment retainkeys-demo --output yaml
341341
342342
The output shows that the strategy object in the Deployment does not contain the `rollingUpdate` key anymore:
343343
344-
```shell
344+
```yaml
345345
spec:
346346
strategy:
347347
type: Recreate

0 commit comments

Comments
 (0)