{"id":6874,"date":"2019-10-07T08:51:47","date_gmt":"2019-10-07T08:51:47","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6874"},"modified":"2021-11-16T07:09:54","modified_gmt":"2021-11-16T07:09:54","slug":"kubernetes-interview-questions-and-answer-part-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/kubernetes-interview-questions-and-answer-part-2\/","title":{"rendered":"Kubernetes Interview Questions and Answer Part \u2013 2"},"content":{"rendered":"\n<ol class=\"wp-block-list\"><li>How you will link when the docker containers is in different virtual machine is there any configuration in docker compose file are any command or any variable?<\/li><li> What you will do if one master got corrupted, can we create multiple masters?<\/li><li> What you will do in case any pod deleted?<\/li><li> What is namespaces in kubernetes can you tell me some?<\/li><li> Can you tell me some commands using in kubernetes ?<\/li><li> Tell me the command to create cluster?<\/li><li> Difference between rc and rs?<\/li><li> What is kubernetes?<\/li><li> What is the difference between kubctl &amp; kops?<\/li><li> Why you are using kubectl can you explin why we are using ?<\/li><li> Why we using kops?<\/li><li> What is the difference between docker cloud and docker swarm?<\/li><li> How to attach a volume in cluster at some time the container will be deleted then rs will re-create new  container then how to attach that container automatically and how to restore the volume automatically to re-created container?<\/li><li> How many projects you used  kubernetes?<\/li><li> N number of docker containers deployed to different vms how will you manage there is no kubernetes installed?<\/li><li> If installed kubernetes how you will deploy this containers into kubernetes cluster?<\/li><li> Can you tell me the command for creating kubernetes cluster in vm?<\/li><li> How many nodes we required to create kubernetes cluster?<\/li><li> We have nearly 15 nodes in my organization all are decentralized so which node I need to create as a master? Is their any possibility to make all the machines as masters?<\/li><li> Our applications are decentralized I don\u2019t want distributed environment if any thing happens to the master all will collapse , can we create multiple masters?<\/li><li> What is the difference between kubectl and minikube?<\/li><li> If any container down in my cluster how you will rectify?<\/li><\/ol>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_58265\"><iframe loading=\"lazy\"  id=\"_ytid_17983\"  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_58265\"  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 class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>How you will link when the docker containers is in different virtual machine is there any configuration in docker compose file are any command or any variable? What you will&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8343,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4859],"tags":[],"class_list":["post-6874","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernetes"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6874","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=6874"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6874\/revisions"}],"predecessor-version":[{"id":25402,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6874\/revisions\/25402"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8343"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}