@@ -82,20 +82,20 @@ kustomization.yaml deployment.yaml
82
82
| configMapGenerator: | | selector: | | selector: |
83
83
| - name: myapp-map | | matchLabels: | | app: myapp |
84
84
| 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 |
87
87
| labels: | +-----------------------------------+
88
88
| app: myapp |
89
89
| spec: |
90
90
| containers: |
91
91
| - name: myapp |
92
- | image: <Image> |
92
+ | image: myapp |
93
93
| resources: |
94
94
| limits: |
95
95
| memory: "128Mi" |
96
96
| cpu: "500m" |
97
97
| ports: |
98
- | - containerPort: <Port> |
98
+ | - containerPort: 6060 |
99
99
+-------------------------------------------------------+
100
100
101
101
```
@@ -145,20 +145,13 @@ kustomization.yaml replica_count.yaml
145
145
| resources: | | metadata: | | metadata: |
146
146
| - ../../base | | name: myapp | | name: myapp |
147
147
| 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" |
162
155
+---------------------------------------+ +-------------------------------+ +------------------------------------------+
163
156
```
164
157
@@ -228,8 +221,6 @@ is governed by the [Kubernetes Code of Conduct].
228
221
[applied]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#apply
229
222
[base]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#base
230
223
[declarative configuration]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#declarative-application-management
231
- [imageBase]: images/base.jpg
232
- [imageOverlay]: images/overlay.jpg
233
224
[kubectl announcement]: https://kubernetes.io/blog/2019/03/25/kubernetes-1-14-release-announcement
234
225
[kubernetes documentation]: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/
235
226
[kubernetes style]: https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#kubernetes-style-object
0 commit comments