{"id":6988,"date":"2019-10-15T07:00:35","date_gmt":"2019-10-15T07:00:35","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6988"},"modified":"2021-11-16T06:36:02","modified_gmt":"2021-11-16T06:36:02","slug":"kubernetes-faq","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/kubernetes-faq\/","title":{"rendered":"Kubernetes FAQ"},"content":{"rendered":"\n<p><strong>Question 1 &#8211; Add containers to a Kubernetes pod on runtime or Allow containers to be added to a running pod<\/strong><\/p>\n\n\n\n<p>Answer:<br>\nAdding or removing containers to a pod is not possible, since the container list in the pod spec is immutable. However, you can create a POD with multiple Containers at Instantiation of pod.<\/p>\n\n\n\n<p><strong>Question 2 &#8211; What happens to POD if i change a Image of the container in POD spec?<\/strong><br> Answer: Pod would be replaced with containers and POD would be restarted.<\/p>\n\n\n\n<p><strong>Question 3 &#8211; How come POD is in running state inspite of only 1 containers is running out of 2.<\/strong><br> Answer: POD is in running state only when if all containers are running state or 1 container is running and other containers are succeeded.<\/p>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_78593\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_48866\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_78593\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Question 1 &#8211; Add containers to a Kubernetes pod on runtime or Allow containers to be added to a running pod Answer: Adding or removing containers to a pod is not possible, since the container list in the pod spec is immutable. However, you can create a POD with multiple Containers at Instantiation of pod&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":7066,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[4859],"tags":[1186,95,1869,766,4860,482],"class_list":["post-6988","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernetes","tag-containers","tag-devops","tag-faq","tag-interview","tag-kubernetes","tag-questions"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=6988"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6988\/revisions"}],"predecessor-version":[{"id":25384,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6988\/revisions\/25384"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/7066"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}