Hi All,
Just wondering if someone is able to help me with the first kubernetes kodekloud engineering challenge
app
nginx_app
nginx-container
I didnt think you couild name containers within Kubernetes? or am i missing something
Anyone else had any issues?
Hi @Xebus
Yes, you can assign names to containers within a Pod in Kubernetes. Naming containers is beneficial as it helps both humans and machines easily identify and manage multiple containers within the same Pod.
Example:
containers: - name: nginx-container image: nginx volumeMounts: - name: shared-data mountPath: /usr/share/nginx/html - name: debian-container image: debian volumeMounts: - name: shared-data mountPath: /pod-data
Hope this helps.