main
1<!DOCTYPE html>
2<html lang="en">
3<head>
4<!-- Oct 07, 2022 -->
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="generator" content="Org Mode" />
10<link rel='icon' type='image/x-icon' href='/images/favicon.ico'/>
11<meta name='viewport' content='width=device-width, initial-scale=1'>
12<link rel='stylesheet' href='/css/new.css' type='text/css'/>
13<link rel='stylesheet' href='/css/syntax.css' type='text/css'/>
14<link href='/index.xml' rel='alternate' type='application/rss+xml' title='Vincent Demeester' />
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
24<section id="outline-container-Provisioning" class="outline-2">
25<h2 id="Provisioning">Provisioning</h2>
26<div class="outline-text-2" id="text-Provisioning">
27<p>
28There is a bunch of ways to provision Kubernetes, but you need to take few elements into
29account:
30</p>
31<ul class="org-ul">
32<li>is it a “throwable” cluster, for development or tests purposes</li>
33<li>is it a local cluster (not exposed to the public)</li>
34<li>is it a production grade cluster (exposed to the public)</li>
35</ul>
36
37<p>
38For the <i>throwable</i> case, there is a bunch of possibilities, from running VMs to running
39kubernetes in containers.
40</p>
41
42<ul class="org-ul">
43<li><a href="kubernix.html">kubernix</a> for <a href="nixos.html">NixOS</a> specific.</li>
44<li><a href="minikube.html">minikube</a></li>
45<li><a href="kind.html">kind</a></li>
46<li><a href="microk8s.html">microk8s</a></li>
47</ul>
48
49<p>
50For 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,
51depending on your system.
52</p>
53
54<ul class="org-ul">
55<li>I am trying to use <a href="nixos.html">NixOS</a> for this : <a href="kubernetes_on_nixos.html">Kubernetes on NixOS</a>.</li>
56<li>In parallel, I’m gonna setup k8s using <a href="microk8s.html">microk8s</a> on VMs too, so that I can test with a
57Ubuntu host.</li>
58</ul>
59
60<p>
61For the production grade cluster, <i>well</i>, I am not there yet, but best advice, use GKE or
62<a href="openshift.html">OpenShift</a>.
63</p>
64</div>
65</section>
66
67<section id="outline-container-Configuration" class="outline-2">
68<h2 id="Configuration">Configuration</h2>
69<div class="outline-text-2" id="text-Configuration">
70</div>
71<div id="outline-container-Extract%20configuration%20context%20to%20its%20own%20file" class="outline-3">
72<h3 id="Extract%20configuration%20context%20to%20its%20own%20file">Extract configuration context to its own file</h3>
73<div class="outline-text-3" id="text-Extract%20configuration%20context%20to%20its%20own%20file">
74<div class="org-src-container">
75<pre class="src src-shell">kubectl config view --minify --flatten <span class="org-sh-escaped-newline">\</span>
76 --context=put-the-context-here > ~/.kube/config.context
77</pre>
78</div>
79</div>
80</div>
81</section>
82
83<section id="outline-container-Links" class="outline-2">
84<h2 id="Links">Links</h2>
85<div class="outline-text-2" id="text-Links">
86</div>
87<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">
88<h3 id="%5B%5Bhttp%3A%2F%2Fboringis.cool%2F%5D%5Bboring%20is%20cool%20%7C%20advocacy%20site%20for%20boring%20technology%5D%5D"><span class="todo TODO">TODO</span> <a href="http://boringis.cool/">boring is cool | advocacy site for boring technology</a></h3>
89</div>
90<div id="outline-container-%5B%5Bhttps%3A%2F%2Fahmet.im%2Fblog%2Fmastering-kubeconfig%2F%5D%5BMastering%20the%20KUBECONFIG%20file%5D%5D" class="outline-3">
91<h3 id="%5B%5Bhttps%3A%2F%2Fahmet.im%2Fblog%2Fmastering-kubeconfig%2F%5D%5BMastering%20the%20KUBECONFIG%20file%5D%5D"><span class="todo TODO">TODO</span> <a href="https://ahmet.im/blog/mastering-kubeconfig/">Mastering the KUBECONFIG file</a></h3>
92</div>
93<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">
94<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"><span class="todo TODO">TODO</span> <a href="https://christine.website/blog/drone-kubernetes-cd-2020-07-10">Continuous Deployment to Kubernetes with Gitea and Drone - Christine Dodrill</a></h3>
95<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">
96<p>
97<span class="timestamp-wrapper"><span class="timestamp">[2020-07-11 Sat 14:30]</span></span>
98</p>
99</div>
100</div>
101
102<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">
103<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"><span class="todo TODO">TODO</span> <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>
104<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">
105<p>
106<span class="timestamp-wrapper"><span class="timestamp">[2020-09-10 Thu 13:24]</span></span>
107</p>
108</div>
109</div>
110<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">
111<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"><span class="todo TODO">TODO</span> <a href="https://blog.dave.tf/post/new-kubernetes/">A better Kubernetes, from the ground up · blog.dave.tf</a></h3>
112<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">
113<p>
114<span class="timestamp-wrapper"><span class="timestamp">[2020-11-30 Mon 19:05]</span></span>
115</p>
116</div>
117</div>
118<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">
119<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"><span class="todo TODO">TODO</span> <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>
120<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">
121<p>
122<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:34]</span></span>
123</p>
124</div>
125</div>
126
127<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">
128<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"><span class="todo TODO">TODO</span> <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>
129<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">
130<p>
131<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:45]</span></span>
132</p>
133</div>
134</div>
135
136<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">
137<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"><span class="todo TODO">TODO</span> <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>
138<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">
139<p>
140<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:47]</span></span>
141</p>
142</div>
143</div>
144
145<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">
146<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"><span class="todo TODO">TODO</span> <a href="https://geektechstuff.com/2020/11/18/kubernetes-cluster-on-raspberry-pi/">Kubernetes Cluster On Raspberry Pi – Geek Tech Stuff</a></h3>
147<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">
148<p>
149<span class="timestamp-wrapper"><span class="timestamp">[2020-12-09 Wed 16:47]</span></span>
150</p>
151</div>
152</div>
153</section>
154</main>
155<footer id="postamble" class="status">
156<footer>
157 <small><a href="/" rel="history">Index</a> • <a href="/sitemap.html">Sitemap</a> • <a href="https://dl.sbr.pm/">Files</a></small><br/>
158 <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/>
159 <small class='copyright'>
160 Content and design by Vincent Demeester
161 (<a rel='licence' href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Some rights reserved</a>)
162 </small><br />
163</footer>
164</footer>
165</body>
166</html>