@@ -6,9 +6,9 @@ When you create a Pod, you can define a command and arguments for the containers
66
77The command and arguments that you define in the configuration file override the default command and arguments provided by the container image
88
9- Dockerfile vs Kubernetes
10- Dockerfile Entrypoint -> k8s command
11- Dockerfile CMD -> k8s args
9+ - Dockerfile vs Kubernetes
10+ - Dockerfile Entrypoint -> k8s command
11+ - Dockerfile CMD -> k8s args
1212
1313### Ports
1414
@@ -24,11 +24,11 @@ A Pod can use environment variables to expose information about itself to Contai
2424
2525=== "OpenShift & Kubernetes"
2626
27- [Container Commands :fontawesome-solid-globe :](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/){ .md-button target="_blank"}
27+ [Container Commands :fontawesome-solid-gear :](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/){ .md-button target="_blank"}
2828
29- [Environment Variables :fontawesome-solid-globe :](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/){ .md-button target="_blank"}
29+ [Environment Variables :fontawesome-solid-gear :](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/){ .md-button target="_blank"}
3030
31- [Pod Exposing :fontawesome-solid-globe :](https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#exposing-pods-to-the-cluster){ .md-button target="_blank"}
31+ [Pod Exposing :fontawesome-solid-gear :](https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#exposing-pods-to-the-cluster){ .md-button target="_blank"}
3232
3333### References
3434
@@ -39,9 +39,9 @@ metadata:
3939 name : my-cmd-pod
4040spec :
4141 containers :
42- - name : myapp-container
43- image : busybox
44- command : [' echo' ]
42+ - name : myapp-container
43+ image : busybox
44+ command : [" echo" ]
4545 restartPolicy : Never
4646` ` `
4747
@@ -52,10 +52,10 @@ metadata:
5252 name : my-arg-pod
5353spec :
5454 containers :
55- - name : myapp-container
56- image : busybox
57- command : [' echo' ]
58- args : [' Hello World' ]
55+ - name : myapp-container
56+ image : busybox
57+ command : [" echo" ]
58+ args : [" Hello World" ]
5959 restartPolicy : Never
6060` ` `
6161
@@ -66,10 +66,10 @@ metadata:
6666 name : my-port-pod
6767spec :
6868 containers :
69- - name : myapp-container
70- image : bitnami/nginx
71- ports :
72- - containerPort : 8080
69+ - name : myapp-container
70+ image : bitnami/nginx
71+ ports :
72+ - containerPort : 8080
7373` ` `
7474
7575` ` ` yaml
@@ -80,13 +80,13 @@ metadata:
8080spec :
8181 restartPolicy : Never
8282 containers :
83- - name : c
84- image : busybox
85- env :
86- - name : DEMO_GREETING
87- value : " Hello from the environment"
88- command : ["echo"]
89- args : ["$(DEMO_GREETING)"]
83+ - name : c
84+ image : busybox
85+ env :
86+ - name : DEMO_GREETING
87+ value : " Hello from the environment"
88+ command : ["echo"]
89+ args : ["$(DEMO_GREETING)"]
9090` ` `
9191
9292` ` ` yaml
@@ -131,9 +131,9 @@ CPU and memory are each a resource type. A resource type has a base unit. CPU is
131131
132132=== "OpenShift & Kubernetes"
133133
134- [Compute Resources :fontawesome-solid-globe :](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container){ .md-button target="_blank"}
134+ [Compute Resources :fontawesome-solid-screwdriver-wrench :](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container){ .md-button target="_blank"}
135135
136- [Memory Management :fontawesome-solid-globe :](https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/){ .md-button target="_blank"}
136+ [Memory Management :fontawesome-solid-screwdriver-wrench :](https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/){ .md-button target="_blank"}
137137
138138### References
139139
@@ -144,53 +144,54 @@ metadata:
144144 name : my-pod
145145spec :
146146 containers :
147- - name : my-app
148- image : bitnami/nginx
149- ports :
150- - containerPort : 8080
151- resources :
152- requests :
153- memory : " 64Mi"
154- cpu : " 250m"
155- limits :
156- memory : " 128Mi"
157- cpu : " 500m"
147+ - name : my-app
148+ image : bitnami/nginx
149+ ports :
150+ - containerPort : 8080
151+ resources :
152+ requests :
153+ memory : " 64Mi"
154+ cpu : " 250m"
155+ limits :
156+ memory : " 128Mi"
157+ cpu : " 500m"
158158` ` `
159159
160+ _Namespaced defaults mem_
160161
161- Namespaced defaults mem
162162` ` ` yaml
163163apiVersion : v1
164164kind : LimitRange
165165metadata :
166166 name : mem-limit-range
167167spec :
168168 limits :
169- - default :
170- memory : 512Mi
171- defaultRequest :
172- memory : 256Mi
173- type : Container
169+ - default :
170+ memory : 512Mi
171+ defaultRequest :
172+ memory : 256Mi
173+ type : Container
174174` ` `
175175
176- Namespaced defaults mem
176+ _Namespaced defaults mem_
177+
177178` ` ` yaml
178179apiVersion : v1
179180kind : LimitRange
180181metadata :
181182 name : cpu-limit-range
182183spec :
183184 limits :
184- - default :
185- cpu : 1
186- defaultRequest :
187- cpu : 0.5
188- type : Container
185+ - default :
186+ cpu : 1
187+ defaultRequest :
188+ cpu : 0.5
189+ type : Container
189190` ` `
190191
191192## Activities
192193
193- | Task | Description | Link |
194- | --------------------------------| ------------------ |: ----------- |
195- | *** Try It Yourself *** | | |
196- | Pod Configuration | Configure a pod to meet compute resource requirements. | [Pod Configuration](../../labs/kubernetes/lab2/index.md) |
194+ | Task | Description | Link |
195+ | --------------------- | ------------------------------------------------------ | :-------------------------------------------- ----------- |
196+ | **_Try It Yourself_** | | |
197+ | Pod Configuration | Configure a pod to meet compute resource requirements. | [Pod Configuration](../../labs/kubernetes/lab2/index.md) |
0 commit comments