Thank you Sir for this video. You explained it well and it's very useful.
@mohiniupasani1909 Жыл бұрын
thank you , one small suggestion you can use set paste option in vi for better indentation
@pankaj71218 ай бұрын
But if they have specified not to delete existing pod , how can you do it.
@EyeSetsfineZetworks8 ай бұрын
I think you can do whatever makes sense, end goal is important
@2mailram Жыл бұрын
side car container and multi container are both are same ?
@EyeSetsfineZetworks Жыл бұрын
It's not the same; the sidecar has a dedicated purpose with the main.
@2mailram Жыл бұрын
@@EyeSetsfineZetworks I understand the concept, but looks like templates are similar am i correct? #Edit multipod.yaml like below: ######## apiVersion: v1 kind: Pod metadata: labels: run: pod-multi name: pod-multi spec: containers: - image: nginx name: container1 - image: busybox name: container2 command: ["sleep","4800"] ============================== example for sidecar template. ============================== apiVersion: v1 kind: Pod metadata: name: sidecar-container-demo spec: containers: - image: busybox command: ["/bin/sh"] args: ["-c", "while true; do echo echo $(date -u) 'Hi I am from Sidecar container' >> /var/log/index.html; sleep 5;done"] name: sidecar-container resources: {} volumeMounts: - name: var-logs mountPath: /var/log - image: nginx name: main-container resources: {} ports: - containerPort: 80 volumeMounts: - name: var-logs mountPath: /usr/share/nginx/html dnsPolicy: Default volumes: - name: var-logs emptyDir: {}
@sahanmax111 ай бұрын
@@2mailram Sidecar containers are the containers that should run along with the main container in the pod. like log collector Multi-container Pod is to support co-located, co-managed helper processes for a primary application. both are using same network namespace and shared volumes. Additionally, Yaml templates will be somewhat similar.