Skip to content

Commit 167ca63

Browse files
committed
Refactor repo snippets
1 parent a699d1b commit 167ca63

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

pages/00-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ metadata:
148148
# resource specification
149149
```
150150

151-
<<< @/snippets/manifests/pod-echo-server.yaml yaml[resource.yaml]{hide|all}{lines:true}
151+
<<< @/snippets/manifests/pods/pod-echo-server.yaml yaml[resource.yaml]{hide|all}{lines:true}
152152

153153
---
154154

pages/10-pods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ They are the smallest deployable units of computing that you can create and mana
99

1010
::right::
1111

12-
<<< @/snippets/manifests/pod-echo-server.yaml yaml[pod-echo-server.yaml]{hide|all|1-2|3-4|6-11|7|8|9-11|12|all}{lines:true}
12+
<<< @/snippets/manifests/pods/pod-echo-server.yaml yaml[pod-echo-server.yaml]{hide|all|1-2|3-4|6-11|7|8|9-11|12|all}{lines:true}
1313

1414
<!--
1515
[click:2] `apiVersion` and `kind`

pages/11-services.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ They provide a stable endpoint and load balancing features for accessing pods wi
1111

1212
::right::
1313

14-
<<< @/snippets/manifests/service-echo-server.yaml yaml[service-echo-server.yaml]{hide|all|1-2|3-4|6|9-12|7-8|all}{lines:true}
14+
<<< @/snippets/manifests/services/service-echo-server.yaml yaml[service-echo-server.yaml]{hide|all|1-2|3-4|6|9-12|7-8|all}{lines:true}
1515

1616
<!--
1717
[click:2] `apiVersion` and `kind`
@@ -25,7 +25,7 @@ They provide a stable endpoint and load balancing features for accessing pods wi
2525
[click] Pay attention on `selector` field
2626
2727
```shell
28-
kubectl apply -f service-echo-server.yaml
28+
kubectl apply -f ./snippets/manifests/services/service-echo-server.yaml
2929
kubectl get services -o wide
3030
kubectl run -it --image=alpine/curl --rm --restart=Never ottenitore -- http://echo-server:8080 #error: Could not connect to server
3131
```
@@ -84,16 +84,16 @@ So, the pod we want to expose needs labels that match the service selector
8484
::right::
8585

8686
````md magic-move[pod-echo-server.yaml]{lines:true}
87-
<<< @/snippets/manifests/pod-echo-server.yaml yaml{all}
87+
<<< @/snippets/manifests/pods/pod-echo-server.yaml yaml{all}
8888

89-
<<< @/snippets/manifests/pod-echo-server-labels.yaml yaml{5-6|all}
89+
<<< @/snippets/manifests/services/pod-echo-server.yaml yaml{5-6}
9090
````
9191

9292
<!--
9393
[click] `labels`
9494
9595
```shell
96-
kubectl apply -f pod-echo-server-labels.yaml
96+
kubectl apply -f ./snippets/manifests/services/pod-echo-server.yaml
9797
kubectl run -it --image=alpine/curl --rm --restart=Never --quiet ottenitore -- http://echo-server:8080 | jq
9898
```
9999
-->
@@ -116,10 +116,10 @@ To expose it externally, use a `NodePort` service.
116116

117117
<v-click>
118118

119-
````md magic-move[service-node-port-echo-server.yaml]{lines:true}
120-
<<< @/snippets/manifests/service-echo-server.yaml yaml{all}
119+
````md magic-move[service-echo-server-node-port.yaml]{lines:true}
120+
<<< @/snippets/manifests/services/service-echo-server.yaml yaml{all}
121121

122-
<<< @/snippets/manifests/service-node-port-echo-server.yaml yaml{all|6|6|13|13|all}
122+
<<< @/snippets/manifests/services/service-echo-server-node-port.yaml yaml{all|6|6|13|13|all}
123123
````
124124

125125
</v-click>
@@ -134,7 +134,7 @@ To expose it externally, use a `NodePort` service.
134134
[click:2] `nodePort`
135135
136136
```shell
137-
kubectl apply -f service-node-port-echo-server.yaml
137+
kubectl apply -f ./snippets/manifests/services/service-echo-server-node-port.yaml
138138
kubectl get nodes -o wide
139139
curl http://<node-ip>:30808 | jq
140140
```

pages/12-deployments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ title: Deployments
66

77
# [Deployments](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/)
88

9-
These manages a set of Pods to run an application workload, usually one that doesn't maintain state.
9+
These manage a set of Pods to run an application workload, usually one that doesn't maintain state.
1010

1111
<small v-click="5">Deployments and pods are bound by the Labels/Selectors system</small>
1212

1313
<small v-click="8">Note: deployments do not directly create pods; they use an intermediate resource called [ReplicaSet](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/)</small>
1414

1515
::right::
1616

17-
<<< @/snippets/manifests/deployment-echo-server.yaml yaml[deployment-echo-server.yaml]{hide|all|1-2|3-4|10-22|7-9,13-14|6|all}{lines: true}
17+
<<< @/snippets/manifests/deployments/deployment-echo-server.yaml yaml[deployment-echo-server.yaml]{hide|all|1-2|3-4|10-22|7-9,13-14|6|all}{lines: true}
1818

1919
<!--
2020
[click:2] `apiVersion` and `kind`
File renamed without changes.
File renamed without changes.
File renamed without changes.

snippets/manifests/service-node-port-echo-server.yaml renamed to snippets/manifests/services/service-echo-server-node-port.yaml

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)