{"id":252,"date":"2024-08-11T01:07:10","date_gmt":"2024-08-11T01:07:10","guid":{"rendered":"https:\/\/www.moseschung.com\/?p=252"},"modified":"2024-08-11T01:07:10","modified_gmt":"2024-08-11T01:07:10","slug":"kubernetes-cluster-on-virtualbox","status":"publish","type":"post","link":"https:\/\/www.moseschung.com\/?p=252","title":{"rendered":"Kubernetes Cluster on Virtualbox"},"content":{"rendered":"\n<p>I was pretty stoked to setup a Kubernetes cluster on Virtualbox this weekend. I followed this <a href=\"https:\/\/www.youtube.com\/watch?v=EHDDm_iR1Fs&amp;t=902s\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=EHDDm_iR1Fs&amp;t=902s\">video<\/a> to setup the cluster. I don&#8217;t understand 100% of what I did but I got it up and running&#8230;so that&#8217;s a start.<\/p>\n\n\n\n<p>I&#8217;ve noted some differences with what was being described in the video and what I had to do in order to get the cluster running. <\/p>\n\n\n\n<p>7:00 &#8211; In Virtualbox, the location is now File | Tools | Network Manager<\/p>\n\n\n\n<p>18:31 &#8211; I was getting an error for the repository \u201c\u2026Kubernetes-xenial Release\u201d does not have a release file.<\/p>\n\n\n\n<p>I found this URL with replies by chrispokorni: <a href=\"https:\/\/forum.linuxfoundation.org\/discussion\/864693\/the-repository-http-apt-kubernetes-io-kubernetes-xenial-release-does-not-have-a-release-file\">https:\/\/forum.linuxfoundation.org\/discussion\/864693\/the-repository-http-apt-kubernetes-io-kubernetes-xenial-release-does-not-have-a-release-file<\/a><\/p>\n\n\n\n<p>He says to do the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/pkgs.k8s.io\/core:\/stable:\/v1.28\/deb\/Release.key | sudo gpg --dearmor -o \/etc\/apt\/keyrings\/kubernetes-apt-keyring.gpg<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'deb &#91;signed-by=\/etc\/apt\/keyrings\/kubernetes-apt-keyring.gpg] https:\/\/pkgs.k8s.io\/core:\/stable:\/v1.28\/deb\/ \/' | sudo tee \/etc\/apt\/sources.list.d\/kubernetes.list<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y kubeadm=1.28.1-1.1 kubelet=1.28.1-1.1 kubectl=1.28.1-1.1<\/code><\/pre>\n\n\n\n<p>(I wanted 1.29, which seems to be the latest, so I just replaced all references to 1.28 with 1.29)<\/p>\n\n\n\n<p>23:39 &#8211; The URL for Project Calico YAML is actually <a href=\"https:\/\/calico-v3-25.netlify.app\/archive\/v3.25\/manifests\/calico.yaml\">https:\/\/calico-v3-25.netlify.app\/archive\/v3.25\/manifests\/calico.yaml<\/a><\/p>\n\n\n\n<p>31:43 &#8211; I found the following URL with replies by TheDHM after having some trouble with the taint command: <a href=\"https:\/\/stackoverflow.com\/questions\/43147941\/allow-scheduling-of-pods-on-kubernetes-master\">https:\/\/stackoverflow.com\/questions\/43147941\/allow-scheduling-of-pods-on-kubernetes-master<\/a><\/p>\n\n\n\n<p>The command to taint the master node is:\u00a0 <code>kubectl taint node \u2014all node-role.kubernetes.io\/control-plane:NoSchedule-<\/code><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was pretty stoked to setup a Kubernetes cluster on Virtualbox this weekend. I followed this video to setup the cluster. I don&#8217;t understand 100% of what I did but I got it up and running&#8230;so that&#8217;s a start. I&#8217;ve noted some differences with what was being described in the video and what I had [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.moseschung.com\/index.php?rest_route=\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moseschung.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moseschung.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moseschung.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moseschung.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":1,"href":"https:\/\/www.moseschung.com\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/www.moseschung.com\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions\/253"}],"wp:attachment":[{"href":"https:\/\/www.moseschung.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moseschung.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moseschung.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}