main
  1<!DOCTYPE html>
  2<html lang="en">
  3<head>
  4<!-- Sep 03, 2024 -->
  5<meta charset="utf-8" />
  6<meta name="viewport" content="width=device-width, initial-scale=1" />
  7<title>Kubernetes</title>
  8<meta name="author" content="Vincent Demeester" />
  9<meta name="keywords" content="post" />
 10<meta name="generator" content="Org Mode" />
 11<link rel="stylesheet" type="text/css" href="./css/2022.css" />
 12<link rel="stylesheet" type="text/css" href="./css/syntax.css" />
 13<link rel='icon' type='image/x-icon' href='./images/favicon.ico'/>
 14<meta name='viewport' content='width=device-width, initial-scale=1'>
 15</head>
 16<body>
 17<main id="content" class="content">
 18<header>
 19<h1 class="title">Kubernetes</h1>
 20</header><ul class="org-ul">
 21<li><a href="knative.html">Knative</a> notes</li>
 22</ul>
 23<section id="outline-container-Provisioning" class="outline-2">
 24<h2 id="Provisioning">Provisioning</h2>
 25<div class="outline-text-2" id="text-Provisioning">
 26<p>
 27There is a bunch of ways to provision Kubernetes, but you need to take few elements into
 28account:
 29</p>
 30<ul class="org-ul">
 31<li>is it a &ldquo;throwable&rdquo; cluster, for development or tests purposes</li>
 32<li>is it a local cluster (not exposed to the public)</li>
 33<li>is it a production grade cluster (exposed to the public)</li>
 34</ul>
 35
 36<p>
 37For the <i>throwable</i> case, there is a bunch of possibilities, from running VMs to running
 38kubernetes in containers.
 39</p>
 40
 41<ul class="org-ul">
 42<li><a href="https://github.com/saschagrunert/kubernix">kubernix</a> for <a href="nixos.html">NixOS</a> specific.</li>
 43<li><a href="kubernetes/minikube.html">minikube</a></li>
 44<li><a href="kubernetes/kind.html">kind</a></li>
 45<li>microk8s</li>
 46</ul>
 47
 48<p>
 49For the local cluster part, you can rely on <a href="https://github.com/kelseyhightower/kubernetes-the-hard-way/"><i>the hard way</i></a> or on tools from the community,
 50depending on your system.
 51</p>
 52
 53<ul class="org-ul">
 54<li>I am trying to use <a href="nixos.html">NixOS</a> for this : <a href="kubernetes/kubernetes_on_nixos.html">Kubernetes on NixOS</a>.</li>
 55<li>In parallel, I&rsquo;m gonna setup k8s using <a href="microk8s.html">microk8s</a> on VMs too, so that I can test with a
 56Ubuntu host.</li>
 57</ul>
 58
 59<p>
 60For the production grade cluster, <i>well</i>, I am not there yet, but best advice, use GKE or
 61<a href="openshift.html">OpenShift</a>.
 62</p>
 63</div>
 64</section>
 65<section id="outline-container-Configuration" class="outline-2">
 66<h2 id="Configuration">Configuration</h2>
 67<div class="outline-text-2" id="text-Configuration">
 68</div>
 69<div id="outline-container-Extract%20configuration%20context%20to%20its%20own%20file" class="outline-3">
 70<h3 id="Extract%20configuration%20context%20to%20its%20own%20file">Extract configuration context to its own file</h3>
 71<div class="outline-text-3" id="text-Extract%20configuration%20context%20to%20its%20own%20file">
 72<div class="org-src-container">
 73<pre class="src src-shell">kubectl config view --minify --flatten <span class="org-sh-escaped-newline">\</span>
 74        --context=put-the-context-here &gt; ~/.kube/config.context
 75</pre>
 76</div>
 77</div>
 78</div>
 79</section>
 80<section id="outline-container-Links" class="outline-2">
 81<h2 id="Links">Links</h2>
 82<div class="outline-text-2" id="text-Links">
 83</div>
 84<div id="outline-container-%5B%5Bhttp%3A%2F%2Fboringis.cool%2F%5D%5Bboring%20is%20cool%20%7C%20advocacy%20site%20for%20boring%20technology%5D%5D" class="outline-3">
 85<h3 id="%5B%5Bhttp%3A%2F%2Fboringis.cool%2F%5D%5Bboring%20is%20cool%20%7C%20advocacy%20site%20for%20boring%20technology%5D%5D"><a href="http://boringis.cool/">boring is cool | advocacy site for boring technology</a></h3>
 86</div>
 87<div id="outline-container-%5B%5Bhttps%3A%2F%2Fahmet.im%2Fblog%2Fmastering-kubeconfig%2F%5D%5BMastering%20the%20KUBECONFIG%20file%5D%5D" class="outline-3">
 88<h3 id="%5B%5Bhttps%3A%2F%2Fahmet.im%2Fblog%2Fmastering-kubeconfig%2F%5D%5BMastering%20the%20KUBECONFIG%20file%5D%5D"><a href="https://ahmet.im/blog/mastering-kubeconfig/">Mastering the KUBECONFIG file</a></h3>
 89</div>
 90<div id="outline-container-%5B%5Bhttps%3A%2F%2Fchristine.website%2Fblog%2Fdrone-kubernetes-cd-2020-07-10%5D%5BContinuous%20Deployment%20to%20Kubernetes%20with%20Gitea%20and%20Drone%20-%20Christine%20Dodrill%5D%5D" class="outline-3">
 91<h3 id="%5B%5Bhttps%3A%2F%2Fchristine.website%2Fblog%2Fdrone-kubernetes-cd-2020-07-10%5D%5BContinuous%20Deployment%20to%20Kubernetes%20with%20Gitea%20and%20Drone%20-%20Christine%20Dodrill%5D%5D"><a href="https://christine.website/blog/drone-kubernetes-cd-2020-07-10">Continuous Deployment to Kubernetes with Gitea and Drone - Christine Dodrill</a></h3>
 92<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fchristine.website%2Fblog%2Fdrone-kubernetes-cd-2020-07-10%5D%5BContinuous%20Deployment%20to%20Kubernetes%20with%20Gitea%20and%20Drone%20-%20Christine%20Dodrill%5D%5D">
 93<p>
 94<span class="timestamp-wrapper"><span class="timestamp">[2020-07-11 Sat 14:30]</span></span>
 95</p>
 96</div>
 97</div>
 98<div id="outline-container-%5B%5Bhttps%3A%2F%2Fmedium.com%2Fflant-com%2Fkubectl-commands-and-tips-7b33de0c5476%5D%5BReady-to-use%20commands%20and%20tips%20for%20kubectl%20%7C%20by%20Flant%20staff%20%7C%20Flant%20%7C%20Aug%2C%202020%20%7C%20Medium%5D%5D" class="outline-3">
 99<h3 id="%5B%5Bhttps%3A%2F%2Fmedium.com%2Fflant-com%2Fkubectl-commands-and-tips-7b33de0c5476%5D%5BReady-to-use%20commands%20and%20tips%20for%20kubectl%20%7C%20by%20Flant%20staff%20%7C%20Flant%20%7C%20Aug%2C%202020%20%7C%20Medium%5D%5D"><a href="https://medium.com/flant-com/kubectl-commands-and-tips-7b33de0c5476">Ready-to-use commands and tips for kubectl | by Flant staff | Flant | Aug, 2020 | Medium</a></h3>
100<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fmedium.com%2Fflant-com%2Fkubectl-commands-and-tips-7b33de0c5476%5D%5BReady-to-use%20commands%20and%20tips%20for%20kubectl%20%7C%20by%20Flant%20staff%20%7C%20Flant%20%7C%20Aug%2C%202020%20%7C%20Medium%5D%5D">
101<p>
102<span class="timestamp-wrapper"><span class="timestamp">[2020-09-10 Thu 13:24]</span></span>
103</p>
104</div>
105</div>
106<div id="outline-container-%5B%5Bhttps%3A%2F%2Fblog.dave.tf%2Fpost%2Fnew-kubernetes%2F%5D%5BA%20better%20Kubernetes%2C%20from%20the%20ground%20up%20%C2%B7%20blog.dave.tf%5D%5D" class="outline-3">
107<h3 id="%5B%5Bhttps%3A%2F%2Fblog.dave.tf%2Fpost%2Fnew-kubernetes%2F%5D%5BA%20better%20Kubernetes%2C%20from%20the%20ground%20up%20%C2%B7%20blog.dave.tf%5D%5D"><a href="https://blog.dave.tf/post/new-kubernetes/">A better Kubernetes, from the ground up · blog.dave.tf</a></h3>
108<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fblog.dave.tf%2Fpost%2Fnew-kubernetes%2F%5D%5BA%20better%20Kubernetes%2C%20from%20the%20ground%20up%20%C2%B7%20blog.dave.tf%5D%5D">
109<p>
110<span class="timestamp-wrapper"><span class="timestamp">[2020-11-30 Mon 19:05]</span></span>
111</p>
112</div>
113</div>
114<div id="outline-container-%5B%5Bhttps%3A%2F%2Faporcupine.com%2F2020%2F03%2Fpi4-kubernetes-cluster%2F%5D%5B%F0%9F%A4%96%20Setting%20Up%20a%20Raspberry%20Pi%204%20Kubernetes%20Cluster%20%7C%20A_Porcupine%20-%20A%20Blog%20about%20technology%20and%20other%20such%20geekery%21%5D%5D" class="outline-3">
115<h3 id="%5B%5Bhttps%3A%2F%2Faporcupine.com%2F2020%2F03%2Fpi4-kubernetes-cluster%2F%5D%5B%F0%9F%A4%96%20Setting%20Up%20a%20Raspberry%20Pi%204%20Kubernetes%20Cluster%20%7C%20A_Porcupine%20-%20A%20Blog%20about%20technology%20and%20other%20such%20geekery%21%5D%5D"><a href="https://aporcupine.com/2020/03/pi4-kubernetes-cluster/">🤖 Setting Up a Raspberry Pi 4 Kubernetes Cluster | A<sub>Porcupine</sub> - A Blog about technology and other such geekery!</a></h3>
116<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Faporcupine.com%2F2020%2F03%2Fpi4-kubernetes-cluster%2F%5D%5B%F0%9F%A4%96%20Setting%20Up%20a%20Raspberry%20Pi%204%20Kubernetes%20Cluster%20%7C%20A_Porcupine%20-%20A%20Blog%20about%20technology%20and%20other%20such%20geekery%21%5D%5D">
117<p>
118<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:34]</span></span>
119</p>
120</div>
121</div>
122<div id="outline-container-%5B%5Bhttps%3A%2F%2Fdbafromthecold.com%2F2020%2F11%2F30%2Fbuilding-a-raspberry-pi-cluster-to-run-azure-sql-edge-on-kubernetes%2F%5D%5BBuilding%20a%20Raspberry%20Pi%20cluster%20to%20run%20Azure%20SQL%20Edge%20on%20Kubernetes%20%7C%20DBA%20From%20The%20Cold%5D%5D" class="outline-3">
123<h3 id="%5B%5Bhttps%3A%2F%2Fdbafromthecold.com%2F2020%2F11%2F30%2Fbuilding-a-raspberry-pi-cluster-to-run-azure-sql-edge-on-kubernetes%2F%5D%5BBuilding%20a%20Raspberry%20Pi%20cluster%20to%20run%20Azure%20SQL%20Edge%20on%20Kubernetes%20%7C%20DBA%20From%20The%20Cold%5D%5D"><a href="https://dbafromthecold.com/2020/11/30/building-a-raspberry-pi-cluster-to-run-azure-sql-edge-on-kubernetes/">Building a Raspberry Pi cluster to run Azure SQL Edge on Kubernetes | DBA From The Cold</a></h3>
124<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fdbafromthecold.com%2F2020%2F11%2F30%2Fbuilding-a-raspberry-pi-cluster-to-run-azure-sql-edge-on-kubernetes%2F%5D%5BBuilding%20a%20Raspberry%20Pi%20cluster%20to%20run%20Azure%20SQL%20Edge%20on%20Kubernetes%20%7C%20DBA%20From%20The%20Cold%5D%5D">
125<p>
126<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:45]</span></span>
127</p>
128</div>
129</div>
130<div id="outline-container-%5B%5Bhttps%3A%2F%2Fdbafromthecold.com%2F2020%2F12%2F03%2Fupdating-my-kubernetes-raspberry-pi-cluster-to-containerd%2F%5D%5BUpdating%20my%20Kubernetes%20Raspberry%20Pi%20Cluster%20to%20containerd%20%7C%20DBA%20From%20The%20Cold%5D%5D" class="outline-3">
131<h3 id="%5B%5Bhttps%3A%2F%2Fdbafromthecold.com%2F2020%2F12%2F03%2Fupdating-my-kubernetes-raspberry-pi-cluster-to-containerd%2F%5D%5BUpdating%20my%20Kubernetes%20Raspberry%20Pi%20Cluster%20to%20containerd%20%7C%20DBA%20From%20The%20Cold%5D%5D"><a href="https://dbafromthecold.com/2020/12/03/updating-my-kubernetes-raspberry-pi-cluster-to-containerd/">Updating my Kubernetes Raspberry Pi Cluster to containerd | DBA From The Cold</a></h3>
132<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fdbafromthecold.com%2F2020%2F12%2F03%2Fupdating-my-kubernetes-raspberry-pi-cluster-to-containerd%2F%5D%5BUpdating%20my%20Kubernetes%20Raspberry%20Pi%20Cluster%20to%20containerd%20%7C%20DBA%20From%20The%20Cold%5D%5D">
133<p>
134<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:47]</span></span>
135</p>
136</div>
137</div>
138<div id="outline-container-%5B%5Bhttps%3A%2F%2Fgeektechstuff.com%2F2020%2F11%2F18%2Fkubernetes-cluster-on-raspberry-pi%2F%5D%5BKubernetes%20Cluster%20On%20Raspberry%20Pi%20%E2%80%93%20Geek%20Tech%20Stuff%5D%5D" class="outline-3">
139<h3 id="%5B%5Bhttps%3A%2F%2Fgeektechstuff.com%2F2020%2F11%2F18%2Fkubernetes-cluster-on-raspberry-pi%2F%5D%5BKubernetes%20Cluster%20On%20Raspberry%20Pi%20%E2%80%93%20Geek%20Tech%20Stuff%5D%5D"><a href="https://geektechstuff.com/2020/11/18/kubernetes-cluster-on-raspberry-pi/">Kubernetes Cluster On Raspberry Pi – Geek Tech Stuff</a></h3>
140<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fgeektechstuff.com%2F2020%2F11%2F18%2Fkubernetes-cluster-on-raspberry-pi%2F%5D%5BKubernetes%20Cluster%20On%20Raspberry%20Pi%20%E2%80%93%20Geek%20Tech%20Stuff%5D%5D">
141<p>
142<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:47]</span></span>
143</p>
144</div>
145</div>
146<div id="outline-container-%5B%5Bhttps%3A%2F%2Fmarcusnoble.co.uk%2F2022-07-04-managing-kubernetes-without-losing-your-cool%2F%5D%5B%27Managing%20Kubernetes%20without%20losing%20your%20cool%27%20by%20Marcus%20Noble%5D%5D" class="outline-3">
147<h3 id="%5B%5Bhttps%3A%2F%2Fmarcusnoble.co.uk%2F2022-07-04-managing-kubernetes-without-losing-your-cool%2F%5D%5B%27Managing%20Kubernetes%20without%20losing%20your%20cool%27%20by%20Marcus%20Noble%5D%5D"><a href="https://marcusnoble.co.uk/2022-07-04-managing-kubernetes-without-losing-your-cool/">&rsquo;Managing Kubernetes without losing your cool&rsquo; by Marcus Noble</a></h3>
148<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fmarcusnoble.co.uk%2F2022-07-04-managing-kubernetes-without-losing-your-cool%2F%5D%5B%27Managing%20Kubernetes%20without%20losing%20your%20cool%27%20by%20Marcus%20Noble%5D%5D">
149<p>
150<span class="timestamp-wrapper"><span class="timestamp">[2022-07-05 Tue 15:19]</span></span>
151</p>
152</div>
153</div>
154<div id="outline-container-%5B%5Bhttps%3A%2F%2Fune-tasse-de.cafe%2Fblog%2Ftalos%2F%5D%5BTalos%20-%20Un%20OS%20immuable%20pour%20Kubernetes%5D%5D" class="outline-3">
155<h3 id="%5B%5Bhttps%3A%2F%2Fune-tasse-de.cafe%2Fblog%2Ftalos%2F%5D%5BTalos%20-%20Un%20OS%20immuable%20pour%20Kubernetes%5D%5D"><a href="https://une-tasse-de.cafe/blog/talos/">Talos - Un OS immuable pour Kubernetes</a></h3>
156<div class="outline-text-3" id="text-%5B%5Bhttps%3A%2F%2Fune-tasse-de.cafe%2Fblog%2Ftalos%2F%5D%5BTalos%20-%20Un%20OS%20immuable%20pour%20Kubernetes%5D%5D">
157<p>
158<span class="timestamp-wrapper"><span class="timestamp">[2024-05-25 Sat 09:52]</span></span>
159</p>
160
161<p>
162A kubernetes &ldquo;optimized&rdquo; operating system.
163</p>
164</div>
165</div>
166</section>
167</main>
168<footer id="postamble" class="status">
169<footer>
170     <small><a href="/" rel="history">Index</a><a href="/sitemap.html">Sitemap</a><a href="https://dl.sbr.pm/">Files</a></small><br/>
171     <small class='questions'>Questions, comments ? Please use my <a href="https://lists.sr.ht/~vdemeester/public-inbox">public inbox</a> by sending a plain-text email to <a href="mailto:~vdemeester/public-inbox@lists.sr.ht">~vdemeester/public-inbox@lists.sr.ht</a>.</small><br/>
172     <small class='copyright'>
173      Content and design by Vincent Demeester
174      (<a rel='licence' href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Some rights reserved</a>)
175    </small><br />
176</footer>
177</footer>
178</body>
179</html>