Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docker_advanced_k8s_deploy_pod_deployment [2020/05/01 15:51] – andonovj | docker_advanced_k8s_deploy_pod_deployment [2020/05/01 16:54] (current) – andonovj | ||
---|---|---|---|
Line 20: | Line 20: | ||
===InterPod Communication=== | ===InterPod Communication=== | ||
+ | This is the communication between different pods: | ||
+ | |||
{{: | {{: | ||
===IntraPod Communication=== | ===IntraPod Communication=== | ||
+ | This is the communication between different containers within the same pod. Rarely you will see more than one container in a pod, BUT it is possible. | ||
+ | |||
{{: | {{: | ||
Line 141: | Line 145: | ||
Congrats, that was your first manual pod deployment. | Congrats, that was your first manual pod deployment. | ||
+ | |||
+ | ====Check the Container=== | ||
+ | So we know that a pod runs one, in some cases more, container(s). | ||
+ | We can check our servers, in my case, it was on the 2nd Worker: | ||
+ | |||
+ | < | ||
+ | root@node-2: | ||
+ | CONTAINER ID IMAGE | ||
+ | 0709a53a0b8b | ||
+ | root@node-2: | ||
+ | </ | ||
+ | |||
+ | So we have 1 requested image running and 1 is running on the 2nd worker. | ||
+ | What if we want to delete a pod. Well very simple: | ||
+ | |||
+ | ====Delete a pod==== | ||
+ | To delete a pod, again use the kubectl command as follows: | ||
+ | |||
+ | < | ||
+ | ubuntu@k8s-master: | ||
+ | NAME | ||
+ | date-pod | ||
+ | ubuntu@k8s-master: | ||
+ | pod " | ||
+ | ubuntu@k8s-master: | ||
+ | </ | ||
+ | |||
+ | But what if we want to have more security and load balancing. Let's say, what if we want 5 replica of that pod. Well, that is for the replication controller which we will discsuss in the next section. |