{"id":4214,"date":"2019-07-04T03:21:58","date_gmt":"2019-07-04T03:21:58","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=4214"},"modified":"2019-07-04T03:33:15","modified_gmt":"2019-07-04T03:33:15","slug":"install-kubernetes-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/07\/04\/install-kubernetes-on-ubuntu-16-04\/","title":{"rendered":"Install Kubernetes On Ubuntu 16.04"},"content":{"rendered":"<p>ref: https:\/\/matthewpalmer.net\/kubernetes-app-developer\/articles\/install-kubernetes-ubuntu-tutorial.html<\/p>\n<p>NOTE: Make sure &#8216;virtualbox&#8217; already installed!!!<br \/>\nInstall kubectl<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ curl -s https:\/\/packages.cloud.google.com\/apt\/doc\/apt-key.gpg | sudo apt-key add -\r\n[sudo] password for teddy: \r\nOK\r\n\r\nteddy@teddy:~$ sudo touch \/etc\/apt\/sources.list.d\/kubernetes.list\r\n\r\nteddy@teddy:~$ echo \"deb http:\/\/apt.kubernetes.io\/ kubernetes-xenial main\" | sudo tee -a \/etc\/apt\/sources.list.d\/kubernetes.list\r\ndeb http:\/\/apt.kubernetes.io\/ kubernetes-xenial main\r\n\r\nteddy@teddy:~$ sudo apt-get update\r\n\r\nteddy@teddy:~$ sudo apt-get install -y kubectl<\/pre>\n<p>Install minikube (the newest 1.2.0) &#8211;&gt; replace below &#8216;v0.28.2&#8217; with &#8216;v1.2.0&#8217;!<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ curl -Lo minikube https:\/\/storage.googleapis.com\/minikube\/releases\/v0.28.2\/minikube-linux-amd64\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100 38.5M  100 38.5M    0     0  2308k      0  0:00:17  0:00:17 --:--:-- 2372k<\/pre>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ sudo chmod +x minikube &amp;&amp; sudo mv minikube \/usr\/local\/bin\/<\/pre>\n<p>We\u2019re Done!<br \/>\nNow start up Minikube and use kubectl to find what version of Kubernetes you\u2019re running on Ubuntu.<br \/>\nMinikube is a Kubernetes-specific package that runs a local development Kubernetes cluster on VirtualBox.<br \/>\nkubectl is the command line tool that lets you interact with your Minikube Kubernetes cluster.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ minikube start\r\nThere is a newer version of minikube available (v1.2.0).  Download it here:\r\nhttps:\/\/github.com\/kubernetes\/minikube\/releases\/tag\/v1.2.0\r\n\r\nTo disable this notification, run the following:\r\nminikube config set WantUpdateNotification false\r\nStarting local Kubernetes v1.10.0 cluster...\r\nStarting VM...\r\nDownloading Minikube ISO\r\n 160.27 MB \/ 160.27 MB [============================================] 100.00% 0s\r\nGetting VM IP address...\r\nMoving files into cluster...\r\nDownloading kubeadm v1.10.0\r\nDownloading kubelet v1.10.0\r\nFinished Downloading kubelet v1.10.0\r\nFinished Downloading kubeadm v1.10.0\r\nSetting up certs...\r\nConnecting to cluster...\r\nSetting up kubeconfig...\r\nStarting cluster components...\r\nKubectl is now configured to use the cluster.\r\nLoading cached images from config file.<\/pre>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ kubectl api-versions\r\nadmissionregistration.k8s.io\/v1beta1\r\napiextensions.k8s.io\/v1beta1\r\napiregistration.k8s.io\/v1\r\napiregistration.k8s.io\/v1beta1\r\napps\/v1\r\napps\/v1beta1\r\napps\/v1beta2\r\nauthentication.k8s.io\/v1\r\nauthentication.k8s.io\/v1beta1\r\nauthorization.k8s.io\/v1\r\nauthorization.k8s.io\/v1beta1\r\nautoscaling\/v1\r\nautoscaling\/v2beta1\r\nbatch\/v1\r\nbatch\/v1beta1\r\ncertificates.k8s.io\/v1beta1\r\nevents.k8s.io\/v1beta1\r\nextensions\/v1beta1\r\nnetworking.k8s.io\/v1\r\npolicy\/v1beta1\r\nrbac.authorization.k8s.io\/v1\r\nrbac.authorization.k8s.io\/v1beta1\r\nstorage.k8s.io\/v1\r\nstorage.k8s.io\/v1beta1\r\nv1<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ref: https:\/\/matthewpalmer.net\/kubernetes-app-developer\/articles\/install-kubernetes-ubuntu-tutorial.html NOTE: Make sure &#8216;virtualbox&#8217; already installed!!! Install kubectl teddy@teddy:~$ curl -s https:\/\/packages.cloud.google.com\/apt\/doc\/apt-key.gpg | sudo apt-key add &#8211; [sudo] password for teddy: OK teddy@teddy:~$ sudo touch \/etc\/apt\/sources.list.d\/kubernetes.list teddy@teddy:~$ echo &#8220;deb http:\/\/apt.kubernetes.io\/ kubernetes-xenial main&#8221; | sudo tee -a \/etc\/apt\/sources.list.d\/kubernetes.list deb http:\/\/apt.kubernetes.io\/ kubernetes-xenial main teddy@teddy:~$ sudo apt-get update teddy@teddy:~$ sudo apt-get install -y kubectl Install minikube &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/07\/04\/install-kubernetes-on-ubuntu-16-04\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Kubernetes On Ubuntu 16.04&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95,78],"tags":[],"class_list":["post-4214","post","type-post","status-publish","format-standard","hentry","category-kubernetes","category-ubuntu-16-04"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=4214"}],"version-history":[{"count":5,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4214\/revisions"}],"predecessor-version":[{"id":4216,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4214\/revisions\/4216"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=4214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=4214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=4214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}