Skip to content

Commit bbff676

Browse files
authored
Update README.md
1 parent 0020a49 commit bbff676

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

README.md

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ kustomization.yaml deployment.yaml
8282
| configMapGenerator: | | selector: | | selector: |
8383
| - name: myapp-map | | matchLabels: | | app: myapp |
8484
| files: | | app: myapp | | ports: |
85-
| - env.startup.txt | | template: | | - port: <Port> |
86-
+-------------------------------+ | metadata: | | targetPort: <Target Port> |
85+
| - env.startup.txt | | template: | | - port: 6060 |
86+
+-------------------------------+ | metadata: | | targetPort: 6060 |
8787
| labels: | +-----------------------------------+
8888
| app: myapp |
8989
| spec: |
9090
| containers: |
9191
| - name: myapp |
92-
| image: <Image> |
92+
| image: myapp |
9393
| resources: |
9494
| limits: |
9595
| memory: "128Mi" |
9696
| cpu: "500m" |
9797
| ports: |
98-
| - containerPort: <Port> |
98+
| - containerPort: 6060 |
9999
+-------------------------------------------------------+
100100
101101
```
@@ -145,20 +145,13 @@ kustomization.yaml replica_count.yaml
145145
| resources: | | metadata: | | metadata: |
146146
| - ../../base | | name: myapp | | name: myapp |
147147
| patches: | | spec: | | spec: |
148-
| - path: replica_count.yaml | | selector: | | selector: |
149-
| - path: cpu_count.yaml | | matchLabels: | | matchLabels: |
150-
| | | app: myapp | | app: myapp |
151-
| | | template: | | template: |
152-
| | | metadata: | | metadata: |
153-
| | | labels: | | labels: |
154-
| | | app: myapp | | app: myapp |
155-
| | | spec: | | spec: |
156-
| | | replicas: 80 | | containers: |
157-
| | | | | - name: myapp |
158-
| | | | | resources: |
159-
| | | | | limits: |
160-
| | | | | memory: "128Mi" |
161-
| | | | | cpu: "7000m" |
148+
| - path: replica_count.yaml | | spec: | | spec: |
149+
| | | replicas: 80 | | containers: |
150+
| | | | | - name: myapp |
151+
| | | | | resources: |
152+
| | | | | limits: |
153+
| | | | | memory: "128Mi" |
154+
| | | | | cpu: "7000m" |
162155
+---------------------------------------+ +-------------------------------+ +------------------------------------------+
163156
```
164157
@@ -228,8 +221,6 @@ is governed by the [Kubernetes Code of Conduct].
228221
[applied]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#apply
229222
[base]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#base
230223
[declarative configuration]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#declarative-application-management
231-
[imageBase]: images/base.jpg
232-
[imageOverlay]: images/overlay.jpg
233224
[kubectl announcement]: https://kubernetes.io/blog/2019/03/25/kubernetes-1-14-release-announcement
234225
[kubernetes documentation]: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/
235226
[kubernetes style]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#kubernetes-style-object

0 commit comments

Comments
 (0)