<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Y-stack blog</title>
    <description></description>
    <link>https://y-stack.github.io/</link>
    <atom:link href="https://y-stack.github.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Wed, 04 Dec 2019 15:26:16 +0000</pubDate>
    <lastBuildDate>Wed, 04 Dec 2019 15:26:16 +0000</lastBuildDate>
    <generator>Jekyll v3.8.5</generator>
    
      <item>
        <title>Developing on Kubernetes locally with k3s</title>
        <description>&lt;p&gt;Once you get used to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl&lt;/code&gt; tab completions of pod names, as instant almost as local paths,
you’ll want to run kubernetes on your laptop rather than develop on a managed remote cluster.&lt;/p&gt;

&lt;p&gt;This talk will demo a basic “inner development loop” using Docker builds and a local image registry running on k3s. With a local cluster you’ll want a local docker registry, to speed up the repeated push and pull that a development loop requires.&lt;/p&gt;

&lt;h2 id=&quot;what-ive-been-looking-for&quot;&gt;What I’ve been looking for&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;Develop multiple services together in a production-like cluster, with fast feedback.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl logs myapp-&lt;/code&gt; &lt;em&gt;press tab&lt;/em&gt;&lt;/li&gt;
  &lt;li&gt;Minimal fan noise&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Critera 3 is not only the reason to look for a lightweight Kubernetes setup,
it’s also the reason I’m running Mac. I’d prefer to run Ubuntu but I don’t have time to find the right hardware.&lt;/p&gt;

&lt;h2 id=&quot;our-evaluation-criterias&quot;&gt;Our evaluation criterias&lt;/h2&gt;

&lt;p&gt;At Yolean we started looking for:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Compatibility with our production workloads&lt;/li&gt;
  &lt;li&gt;Compatibility with our kubectl workflows (top, logs)&lt;/li&gt;
  &lt;li&gt;Lighness (non-scientifically)
    &lt;ul&gt;
      &lt;li&gt;Time to provision&lt;/li&gt;
      &lt;li&gt;How well we felt that our hardware resources converted to pod resources
        &lt;ul&gt;
          &lt;li&gt;(containerd vs. dockerd)&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Support for a local image registry
    &lt;ul&gt;
      &lt;li&gt;Which to us means an in-cluster, ephemeral docker registry&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;why-we-chose-k3s&quot;&gt;Why we chose k3s&lt;/h2&gt;

&lt;p&gt;We evaluated &lt;a href=&quot;https://minikube.sigs.k8s.io/&quot;&gt;Minikube&lt;/a&gt;,
&lt;a href=&quot;https://microk8s.io/&quot;&gt;microk8s&lt;/a&gt; and &lt;a href=&quot;https://k3s.io/&quot;&gt;k3s&lt;/a&gt;, in that order.
We also briefly tried &lt;a href=&quot;https://github.com/kubernetes-sigs/kind&quot;&gt;kind&lt;/a&gt;, but found it too geared towards CI.&lt;/p&gt;

&lt;h3 id=&quot;minikube&quot;&gt;minikube&lt;/h3&gt;

&lt;p&gt;Despite the recent emoji explosion, we had a feeling we need to look further.
If you switch Minikube to running &lt;a href=&quot;&quot;&gt;containerd&lt;/a&gt; from running Docker,
it seems to reduce resource usage,
but it also becomes clear that the Minikube community struggles with quite a bit of legacy.
(Right now I can’t remember what feature it was that didn’t work with Containerd at the time we tested)&lt;/p&gt;

&lt;h3 id=&quot;containerd-vs-dockerd&quot;&gt;containerd vs. dockerd&lt;/h3&gt;

&lt;p&gt;We’ve seen GKE adopting Containerd, and while they aren’t actually phasing out Docker it makes sense to go for the option that is only a container runtime.&lt;/p&gt;

&lt;h3 id=&quot;microk3s&quot;&gt;microk3s&lt;/h3&gt;

&lt;p&gt;With microk8s we found odd issues with stacks that have long been robust on GKE,
for example our very basic &lt;a href=&quot;https://github.com/Yolean/kubernetes-mysql-cluster&quot;&gt;MariaDB&lt;/a&gt; cluster.
In the face of a few such incompatibilities we didn’t really troubleshoot, we just looked around again.&lt;/p&gt;

&lt;h3 id=&quot;k3s&quot;&gt;k3s&lt;/h3&gt;

&lt;p&gt;Our first impression of k3s was that &lt;a href=&quot;https://github.com/rancher/k3s/blob/master/install.sh&quot;&gt;install.sh&lt;/a&gt; wasn’t scary and that
all workloads we have in production today just worked as-is.
Minikube never disappointed in that regard, but my experience with Minikube is that you’ve always needed to tweak things
(for example &lt;a href=&quot;https://knative.dev/docs/install/knative-with-minikube/#creating-a-kubernetes-cluster&quot;&gt;Knative’s&lt;/a&gt; setup is like a “flavor” of Minkube).&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# more about multipass later&lt;/span&gt;
multipass launch &lt;span class=&quot;nt&quot;&gt;-n&lt;/span&gt; k3s &lt;span class=&quot;nt&quot;&gt;-c&lt;/span&gt; 2
&lt;span class=&quot;c&quot;&gt;# then&lt;/span&gt;
multipass shell k3s
&lt;span class=&quot;c&quot;&gt;# ... continue inside the VM&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# and run the installer from https://k3s.io/&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# with workaround for https://github.com/y-stack/ystack/pull/17&lt;/span&gt;
curl &lt;span class=&quot;nt&quot;&gt;-sfL&lt;/span&gt; https://get.k3s.io | &lt;span class=&quot;nv&quot;&gt;K3S_CLUSTER_SECRET&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;notrandom sh &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; -
&lt;span class=&quot;c&quot;&gt;# check the result&lt;/span&gt;
journalctl &lt;span class=&quot;nt&quot;&gt;-ef&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-u&lt;/span&gt; k3s
k3s kubectl get pods &lt;span class=&quot;nt&quot;&gt;--all-namespaces&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# back on the host again ...&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# We need a DNS name because the machine IP will change per launch&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;VM_IP&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;multipass info k3s | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'IPv4'&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;awk&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-F&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;' '&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'{print $2}'&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$VM_IP&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;  k3s.local&quot;&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;sudo tee&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; /etc/hosts

&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;KUBECONFIG&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/k3s-demo-kubeconfig.yaml

multipass &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;k3s &lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo cat&lt;/span&gt; /etc/rancher/k3s/k3s.yaml &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  | &lt;span class=&quot;nb&quot;&gt;sed&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;s|127.0.0.1|k3s.local|&quot;&lt;/span&gt; &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$KUBECONFIG&lt;/span&gt;
kubectl get pods &lt;span class=&quot;nt&quot;&gt;--all-namespaces&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href=&quot;https://k3s.io/&quot;&gt;k3s docs&lt;/a&gt; has a nice graphic on what k3s consists of. Note that it’s actually only a binary.&lt;/p&gt;

&lt;h2 id=&quot;what-does-k3s-run-on&quot;&gt;What does K3s run on?&lt;/h2&gt;

&lt;p&gt;K3s doesn’t come with provisioning for your OS.&lt;/p&gt;

&lt;p&gt;It’s designed to be persistent.
Server and nodes survive machine restarts and can be upgraded. It makes sense that such a tool doesn’t focus on automatic provisioning for development.&lt;/p&gt;

&lt;h2 id=&quot;how-to-select-a-vm-on-mac&quot;&gt;How to select a VM on Mac&lt;/h2&gt;

&lt;p&gt;Here I hope that the audience has more ideas than we’ve come up with.&lt;/p&gt;

&lt;p&gt;From our experiences with Minikube we’ve actually ruled out VirtualBox.
Switching to &lt;a href=&quot;https://minikube.sigs.k8s.io/docs/reference/drivers/hyperkit/&quot;&gt;Minikube’s hyperkit driver&lt;/a&gt; reduces CPU load significantly.
Thus for k3s we found ourselves looking for linux running on Hyperkit,
and the option we found was &lt;a href=&quot;https://github.com/CanonicalLtd/multipass/&quot;&gt;Multipass&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;our-experiences-with-multipass&quot;&gt;Our experiences with Multipass&lt;/h3&gt;

&lt;p&gt;The only issue we’ve had is a few occasions where the VM had clock skew after the host had been in sleep.
We haven’t seen this happening since all developers upgraded to Docker for Mac 19.03+.
Also the CLI has an annoying gotcha where many commands when invoked without a machine name immediately starts to provision a “default” machine.&lt;/p&gt;

&lt;h2 id=&quot;what-about-k3os-k3d-or-vanilla-docker-images&quot;&gt;What about k3os, k3d or vanilla docker images&lt;/h2&gt;

&lt;p&gt;We have &lt;a href=&quot;https://github.com/y-stack/ystack/pull/17&quot;&gt;an issue&lt;/a&gt; right now that triggered some temptation to look into dedicated k3s hosting,
namely &lt;a href=&quot;https://github.com/rancher/k3os/&quot;&gt;k3os&lt;/a&gt; and &lt;a href=&quot;https://github.com/rancher/k3d/&quot;&gt;k3d&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As for k3os we’re yet to find a simple way to run it on Mac.&lt;/p&gt;

&lt;p&gt;As for k3d, do we really want to add a layer of containerization around k3s? Also …&lt;/p&gt;

&lt;h3 id=&quot;k3s-already-runs-in-docker&quot;&gt;k3s already runs in docker&lt;/h3&gt;

&lt;p&gt;There’s an example &lt;a href=&quot;https://github.com/rancher/k3s/blob/master/docker-compose.yml&quot;&gt;docker-compose.yml&lt;/a&gt; in the k3s repo.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;mkdir &lt;/span&gt;k3s-compose &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;k3s-compose
curl &lt;span class=&quot;nt&quot;&gt;-fLO&lt;/span&gt; https://github.com/rancher/k3s/raw/master/docker-compose.yml
docker-compose up &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; docker-compose logs &lt;span class=&quot;nt&quot;&gt;-f&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;KUBECONFIG&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/kubeconfig.yaml kubectl cluster-info
&lt;span class=&quot;nv&quot;&gt;KUBECONFIG&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/kubeconfig.yaml kubectl get pods &lt;span class=&quot;nt&quot;&gt;--all-namespaces&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;KUBECONFIG&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/kubeconfig.yaml kubectl &lt;span class=&quot;nt&quot;&gt;-n&lt;/span&gt; kube-system logs &lt;span class=&quot;nt&quot;&gt;-l&lt;/span&gt; k8s-app&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;metrics-server
&lt;span class=&quot;c&quot;&gt;# You'll probably see an error &quot;failed to find Session for client&quot; instead of logs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We never got around to troubleshooting the in-docker issue with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl logs&lt;/code&gt;.
We did however set up a selfcheck for our dev stack using docker-compose.
The interesting parts is that we can &lt;a href=&quot;https://github.com/y-stack/ystack/blob/1b34d9a398d91ac433fe2d10a9bf4e4fcca97b78/docker-compose.test.yml#L55&quot;&gt;apply local resources and run checks&lt;/a&gt; in a &lt;a href=&quot;test run&quot;&gt;https://github.com/y-stack/ystack/blob/master/test.sh&lt;/a&gt;
that spins up and tears down within 30 seconds locally.&lt;/p&gt;

&lt;p&gt;There are two reasons we’re sticking with Multipass in our dev environment for the time being:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;When you delete a VM it’s really deleted. Containers, networks, volumes etc. in Docker are not that simple to wipe out.&lt;/li&gt;
  &lt;li&gt;We found CPU load to be higher than with multipass for the same provisioning steps (which might however have been because it was faster).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;lets-return-to-the-development-loop&quot;&gt;Let’s return to the development loop&lt;/h2&gt;

&lt;p&gt;First we need a demo app. I’ve selected one that requires a build step (file sync is a different topic) but with a small runtime image.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;f &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;helloworld.go go.mod Dockerfile&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do &lt;/span&gt;curl &lt;span class=&quot;nt&quot;&gt;-fL&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-o&lt;/span&gt; sample-app/&lt;span class=&quot;nv&quot;&gt;$f&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--create-dirs&lt;/span&gt; https://github.com/knative/docs/raw/master/docs/serving/samples/hello-world/helloworld-go/&lt;span class=&quot;nv&quot;&gt;$f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;done

&lt;/span&gt;docker build &lt;span class=&quot;nt&quot;&gt;-t&lt;/span&gt; helloworld sample-app
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Ok so now we can do &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker run --rm -p 8080:8080 helloworld&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;curl localhost:8080&lt;/code&gt;, but what’s the name of this meetup again?&lt;/p&gt;

&lt;h2 id=&quot;adding-a-docker-registry&quot;&gt;Adding a docker registry&lt;/h2&gt;

&lt;p&gt;Skaffold and other Google-guided dev tooling out there is heavily biased towards a central image repository.
That’s probably because they are biased towards development in a managed cluster.
With a local cluster it appears quite insane to first push your images to a remote registry and then pull them back to your local VM.&lt;/p&gt;

&lt;p&gt;There seems to be a small but persistent fraction of communities like Minikube, Knative and k3s that stubbornly files issues arguing for “private” registry support.&lt;/p&gt;

&lt;p&gt;K3s recently introduced &lt;a href=&quot;https://rancher.com/docs/k3s/latest/en/installation/airgap/#create-registry-yaml&quot;&gt;custom Containerd registry config&lt;/a&gt; which is really neat if you want to set up “mirrors”, i.e. re-map hostnames and select http or https.&lt;/p&gt;

&lt;p&gt;Let’s borrow Yolean’s registry setup but use ephemeral storage:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;kubectl apply &lt;span class=&quot;nt&quot;&gt;-k&lt;/span&gt; github.com/y-stack/ystack/registry/generic?ref&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;e3d0a7e
kubectl patch deployment registry &lt;span class=&quot;nt&quot;&gt;--patch&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'{&quot;spec&quot;:{&quot;replicas&quot;:1,&quot;template&quot;:{&quot;spec&quot;:{&quot;containers&quot;:[{&quot;name&quot;: &quot;docker-v2&quot;,&quot;env&quot;:[{&quot;name&quot;:&quot;REGISTRY_STORAGE&quot;,&quot;value&quot;:&quot;filesystem&quot;}]}]}}}}'&lt;/span&gt;
kubectl get pods
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;what-about-using-the-clusters-docker-daemon&quot;&gt;What about using the cluster’s docker daemon&lt;/h3&gt;

&lt;p&gt;Minikube’s support for DOCKER_HOST works really well,
but the problem is that Kubernetes behaves differently with pre-pulled images.
You actually have to fiddle with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;imagePullPolicy&lt;/code&gt; in most of your yaml, wich goes agains “production-like”.&lt;/p&gt;

&lt;h3 id=&quot;how-do-we-push-builds-to-the-registry&quot;&gt;How do we push builds to the registry?&lt;/h3&gt;

&lt;p&gt;Note that Docker enforces https for all non-localhost addresses,
so you need to add an &lt;a href=&quot;https://docs.docker.com/registry/insecure/&quot;&gt;insecure registry&lt;/a&gt;. In Docker for Mac you can edit &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker.json&lt;/code&gt; from Preferences &amp;gt; Docker Engine.&lt;/p&gt;

&lt;p&gt;Let’s open a port on the VM for registry access:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;kubectl patch service builds-registry &lt;span class=&quot;nt&quot;&gt;--patch&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'{&quot;spec&quot;:{&quot;type&quot;:&quot;NodePort&quot;,&quot;ports&quot;:[{&quot;port&quot;:80,&quot;nodePort&quot;:30500}]}}'&lt;/span&gt;
curl &lt;span class=&quot;nt&quot;&gt;-I&lt;/span&gt; http://k3s.local:30500/v2/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If that curl worked we can probably build &amp;amp; push: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker build -t k3s.local:30500/sample ./sample-app &amp;amp;&amp;amp; docker push k3s.local:30500/sample&lt;/code&gt;&lt;/p&gt;

&lt;h3 id=&quot;how-does-k8s-pull-them&quot;&gt;How does k8s pull them?&lt;/h3&gt;

&lt;p&gt;Nodes can, in all clusters I’ve tested, connect to Kubernetes Services’ IPs.
They won’t however resolve .cluster.local DNS names.
For this demo I’m instead exposing a NodePort, as seen above.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;EOF&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt; | kubectl apply -f -
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample
  labels: &amp;amp;labels
    app: sample
spec:
  replicas: 3
  selector:
    matchLabels: *labels
  template:
    metadata:
      labels: *labels
    spec:
      containers:
      - name: hello
        image: 127.0.0.1:30500/sample:latest
        ports:
        - containerPort: 8080
&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;EOF
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;k3s-ingress&quot;&gt;K3s ingress&lt;/h2&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;EOF&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt; | kubectl apply -f -
apiVersion: v1
kind: Service
metadata:
  name: sample
spec:
  selector:
    app: sample
  ports:
    - protocol: TCP
      port: 8080
&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;EOF
&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;EOF&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt; | kubectl apply -f -
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: sample
spec:
  rules:
  - http:
      paths:
      - path: /
        backend:
          serviceName: sample
          servicePort: 8080
&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;EOF
&lt;/span&gt;curl http://k3s.local/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;how-fast-is-the-development-loop-now&quot;&gt;How fast is the development loop now?&lt;/h2&gt;

&lt;p&gt;I hadn’t heard the term “development loop” until &lt;a href=&quot;https://kubernetespodcast.com/episode/064-cloud-code/&quot;&gt;this podcast episode&lt;/a&gt;
that distinguishes between “inner” and “outer” loop.&lt;/p&gt;

&lt;p&gt;Let’s try an inner loop with docker + kubectl …&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# After editing sample-app/helloworld.go&lt;/span&gt;
docker build &lt;span class=&quot;nt&quot;&gt;-t&lt;/span&gt; k3s.local:30500/sample ./sample-app &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; docker push k3s.local:30500/sample
kubectl rollout restart deploy sample
curl http://k3s.local/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I’m really uninpressed by the response time for the eventual &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;curl&lt;/code&gt;, and if we have time during the talk we could try to investigate.&lt;/p&gt;

&lt;h2 id=&quot;k3s-recap&quot;&gt;K3s recap&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Automatic volume provisioning (with a default storage class)
    &lt;ul&gt;
      &lt;li&gt;Try for example &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl apply -k github.com/y-stack/ystack/minio/standalone,defaultsecret/?ref=401c330&lt;/code&gt; and watch for “create-pvc” pods&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Ingress
    &lt;ul&gt;
      &lt;li&gt;With the Multipass VM, got to be machine-dependent&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl top&lt;/code&gt; (you can’t take that for granted with any cluster)&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl logs&lt;/code&gt; (not with the docker-compose setup)&lt;/li&gt;
  &lt;li&gt;You can restart the server&lt;/li&gt;
  &lt;li&gt;You can restart the VM&lt;/li&gt;
  &lt;li&gt;Quite light on resoruces: I still don’t hear any fan noise :)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;things-id-like-to-explore&quot;&gt;Things I’d like to explore&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;How can we run a k3os &lt;a href=&quot;https://github.com/rancher/k3os/releases&quot;&gt;iso&lt;/a&gt; on Mac with minimal overhead?&lt;/li&gt;
  &lt;li&gt;How to get &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl logs&lt;/code&gt; to work with the docker-compose based provisioning?&lt;/li&gt;
  &lt;li&gt;Are there faster local registry setups? Image push takes quite a bit of time now.&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 04 Dec 2019 00:00:00 +0000</pubDate>
        <link>https://y-stack.github.io/2019/12/04/developing-on-kubernetes-locally-with-k3s.html</link>
        <guid isPermaLink="true">https://y-stack.github.io/2019/12/04/developing-on-kubernetes-locally-with-k3s.html</guid>
        
        
      </item>
    
      <item>
        <title>Resolves the Catch 22</title>
        <description>&lt;p&gt;&lt;em&gt;This article is actually my preparation for a lecture given to engineering masters’ students at &lt;a href=&quot;http://www.cse.chalmers.se/edu/course/DAT300/&quot;&gt;Chalmers&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h1 id=&quot;resolves-the-catch-22&quot;&gt;Resolves the Catch 22&lt;/h1&gt;

&lt;p&gt;Y-stack isn’t a Kubernetes quick-start. It’s meant for spending hundreds of hours learning Kubernetes &lt;em&gt;while developing code&lt;/em&gt;, ideally in a team, and see your CI/CD and software architecture evolve entangled with Kubernetes &lt;em&gt;primitives&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;To get involved please join the &lt;a href=&quot;https://y-stack.slack.com/&quot;&gt;Y-slack&lt;/a&gt; :) or dive right into the repo and report issues.&lt;/p&gt;

&lt;h2 id=&quot;to-deliver-software-using-kubernetes&quot;&gt;To deliver software using Kubernetes&lt;/h2&gt;

&lt;p&gt;Ignoring everything that’s cool and fun, Kubernetes just means a bunch of machines - physical or virtual - running a bunch of processes. Machines are called &lt;em&gt;nodes&lt;/em&gt; and if they’re Linux you can open a remote shell on them an run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ps -aux&lt;/code&gt; to list these processes.&lt;/p&gt;

&lt;p&gt;Processes can be called programs but the Kubernetes &lt;em&gt;community&lt;/em&gt; – more about the community later – prefers the term &lt;em&gt;workload&lt;/em&gt; because tasks you carry out may be spread across nodes as multiple processes. That’s a &lt;em&gt;distributed system&lt;/em&gt; and Kubernetes is one way to &lt;em&gt;orchestrate&lt;/em&gt; processes: manage how they are started and stopped across nodes.&lt;/p&gt;

&lt;p&gt;Distributed systems is not only fun. Its principles let you &lt;em&gt;scale&lt;/em&gt; your service without the exponential cost increase of paying for ever more powerful machines. You’ll also, rougly speaking, be able to increase robustness – &lt;em&gt;availability&lt;/em&gt; – without the exponential cost increase of rasing the quality of your code.&lt;/p&gt;

&lt;p&gt;Y-stack – &lt;em&gt;ystack&lt;/em&gt; when in code – lets you explore such advantages: for example use monitoring and alerts instead of error handling, or retries instead of code that validates preconditions. Y-stack is &lt;em&gt;opinionated&lt;/em&gt; in ways that make it self-sufficient as a &lt;em&gt;source-to-URL&lt;/em&gt; Platform-As-A-Service. In other words you can write your code and run the result it in your browser usnig only your development environment and your Y-stack.&lt;/p&gt;

&lt;p&gt;Regarding “your code”: to describe why Kubernetes is a paradigm shift compared to batch-executing commands across machines we need to raise the requirements a bit.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Your code runs as multiple executables. Were it a single executable you could simply bundle all &lt;em&gt;dependencies&lt;/em&gt; with it and distribute the package to every node.&lt;/li&gt;
  &lt;li&gt;Your processes only provide value if accessible from clients, be it browsers or data pipelines.&lt;/li&gt;
  &lt;li&gt;Your software get upgraded, fails and behaves in unanticipated ways just like any other piece of non-trivial software.&lt;/li&gt;
  &lt;li&gt;Clusters (and machines) are &lt;em&gt;disposable&lt;/em&gt;. Sooner or later you’ll want to &lt;em&gt;migrate&lt;/em&gt; your &lt;em&gt;stateless&lt;/em&gt; and &lt;em&gt;stateful&lt;/em&gt; workload to a next generation Kubernetes setup.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A deep dive into these aspects will take us to the design decisions behind Y-stack, the result of a journey that the startup Yolean made from a virtual machine per customer to a distributed system that made development, and more importantly &lt;em&gt;maintenance&lt;/em&gt;, fun and quite efficient.&lt;/p&gt;

&lt;h2 id=&quot;1-your-codes-dependencies&quot;&gt;1. Your code’s dependencies&lt;/h2&gt;

&lt;p&gt;You typically have &lt;em&gt;build time&lt;/em&gt; and &lt;em&gt;run time&lt;/em&gt; dependencies. With Java you might pull libraries from a public Maven repository and depend on a particular major version of the JVM. With Python you have PyPA but may also depend at runtime on pre-installed libraries. With Node.js you expect every runtime environment to run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;npm install&lt;/code&gt; for you.&lt;/p&gt;

&lt;p&gt;Dealing with dependencies used to suck. Nevermind the &lt;em&gt;toil&lt;/em&gt; - boring repetitive labor - which also sucked, any upgrade of one service risked the stability of other services, and you probably wouldn’t notice until that other service had a restart months later.&lt;/p&gt;

&lt;p&gt;Long story short, the technology company Docker made &lt;em&gt;containers&lt;/em&gt; available to us develpers-without-a-high-tech-infra-team. &lt;em&gt;Containerization&lt;/em&gt; meant that regardless of which language we used the &lt;em&gt;build time&lt;/em&gt; output could run wherever a single &lt;em&gt;run time&lt;/em&gt; dependency was present: the &lt;em&gt;container runtime&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Actually we need to chose one container runtime from a handful of viable options, but that’s no big deal because these days they agree on the &lt;em&gt;image&lt;/em&gt; format. We’ll get to the concept of &lt;em&gt;primitives&lt;/em&gt; further down, but let’s warm up with a closer look at two of the fundamental ones:&lt;/p&gt;

&lt;h3 id=&quot;container-images&quot;&gt;Container &lt;em&gt;images&lt;/em&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.google.com/presentation/d/1tnMORT5a3ucAxf9I_ZClLYvbCJsRmfK_HT1Q6HPETow/edit#slide=id.g60279120f7_0_68&quot;&gt;TODO&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;image-registry&quot;&gt;Image &lt;em&gt;registry&lt;/em&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.google.com/presentation/d/1tnMORT5a3ucAxf9I_ZClLYvbCJsRmfK_HT1Q6HPETow/edit#slide=id.g60279120f7_0_73&quot;&gt;TODO&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;2-client-access&quot;&gt;2. Client access&lt;/h2&gt;

&lt;p&gt;Let’s use the term “customer” to denote those who find your service(s) valuable, and thus want access to the running software. Now that it’s distributed there’s no longer a single address to hand over to your customer, and even if there was one it’d probably change as nodes come and go.&lt;/p&gt;

&lt;p&gt;Kubernetes supports a basic mechanism that makes use of &lt;em&gt;service discovery&lt;/em&gt;: You can expose a “node port” on every machine and let it point to all currently running &lt;em&gt;instances&lt;/em&gt; of your service. You can use DNS to point a domain to all your machines. Your customer gets the DNS domain name and the port number and is good to go.&lt;/p&gt;

&lt;p&gt;In practice, for reasons currently out of scope with this document, you’ll want a layer of indirection. Look for the terms &lt;em&gt;ingress&lt;/em&gt; or &lt;em&gt;load balancer&lt;/em&gt;.&lt;/p&gt;

&lt;h2 id=&quot;3-upgrades&quot;&gt;3. Upgrades&lt;/h2&gt;

&lt;p&gt;Yolean’s engineers had the pleasure of visiting a talk by Eng from a Spotify backend team. He made a convincing case that “you’re always in a migration” which stuck a chord: After maintaining an ever-pivoting service for seven years we’ve learned that our up-front platform decisions (often made under time pressure that leaves room only for what’s value adding) always need to be revised. Such revision is painful, but not as paralyzing as trying to make the right decision from the outset.&lt;/p&gt;

&lt;p&gt;The point is that upgrades involve more than just new releases of your code: Dependencies may change, persisted data may need migration, the old version(s) should stay around. A second and equally important point is that such &lt;em&gt;maintenance&lt;/em&gt; involves more than one person. Single-maintaner development is great for quickly producing an MVP, but for anything that has gained customers it’s a major business risk.&lt;/p&gt;

&lt;p&gt;Maintenance is expressed as &lt;em&gt;primitives&lt;/em&gt;. When combined with a source version control system like Git and containerization terminology from Docker, Kubernetes provides all the primitives you need and therefore a language: For an example upgrade you may want to change the Labels of a Deployment called “maintenance-message-display” so that it matches your customer-facing Service’s Selector while you’ve Scaled down your frontend Deployment to zero Replicas, after which you trigger a Snapshot of your database StatefulSet Persistent Volumes, then Create a Job that migrates a the database schema, then Apply a new image Tag built from source commit 0b8d45fd16 to trigger a Rolling Upgrade of your Pods that to the SQL. Right?&lt;/p&gt;

&lt;h2 id=&quot;4-disposable-infrastructure&quot;&gt;4. Disposable infrastructure&lt;/h2&gt;

&lt;p&gt;Once upon a time servers had names. That culture survived the shift to virtual machines. With Kubernetes, the sooner you get emotinally detached from your machines the better. Let’s continue our example journey in primitives:&lt;/p&gt;

&lt;p&gt;When you’re in the middle of an upgrade, suddenly a Node gets low on memory Resources (probably because you lack some Limits) and Eviction is initiated on a workload you assigned low Priority. Termination however is too slow and the Node stops reporting the essential Status per Pod that you depend on (through the Kubernets API) for your upgrade. You hit the public URL and with some relief see the Customers’ maintenance message. Watching events through the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl&lt;/code&gt; client you notice OOMKilled on Pods you thought were unaffected by this upgrade. Better safe than sorry, you use your &lt;em&gt;hosting provider&lt;/em&gt;’s tooling to add a Node to your cluster, and as soon as possble Cordon the unreliable node…&lt;/p&gt;

&lt;p&gt;(A great resource for learning more about Kubernetes, both lingo and practice, is https://k8s.af/.)&lt;/p&gt;

&lt;p&gt;There’s a few observations to make here:&lt;/p&gt;

&lt;p&gt;Observation A: Kubernetes is an abstraction that hides a fair bit of complexity. When things fail you’ll wish you understood what’s happening under the user interface. That’s where it pays off to have developed your software with something like Y-stack where along the way you did &lt;em&gt;dare to experiment&lt;/em&gt; in a &lt;em&gt;production-like environment&lt;/em&gt; with producton-like &lt;em&gt;monitoring&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Observation B: Kubernetes automates things. In the half-panicked spectator situation you’ll wish  you had a pause button (spoiler alert: you don’t). You’ll also start thinking along the lines of &lt;em&gt;failover&lt;/em&gt;. Given that persistent data remains consistent, will you be able to restore the service? Customers don’t care about servers, so maybe you can simply set up a new cluster and reconfigure your &lt;em&gt;load balancer&lt;/em&gt; (mentioned above but still not explained)?&lt;/p&gt;

&lt;p&gt;Kubernetes makes it possible, though still far from trivial, to define your setup &lt;em&gt;declaratively&lt;/em&gt;. The value of that is clear from lessons learned with virtual machines: People running &lt;em&gt;operations&lt;/em&gt; executed assorted commands on servers, i.e. &lt;em&gt;imperative&lt;/em&gt; maintenance. It turned out to be unmainainable over time, and thus tools like Chef, Ansible, Puppet and Cloud Formation popped up. Kubernetes prioritized declarative management from its inception. In principle, and in reality if you test for it, your entire stack can be “spun up” on a new cluster from a different hosting provider with zero modification to your Resource Definitions.&lt;/p&gt;

&lt;p&gt;That concludes our four core requirements and leads to a buzzword we’ve avoided until now: DevOps.&lt;/p&gt;

&lt;h2 id=&quot;devops&quot;&gt;DevOps&lt;/h2&gt;

&lt;p&gt;The meaning of DevOps is hard to grasp online because it’s used to sell you anything that can promise increased productivity related to software development. In our context DevOps means that developers need to deal with the part of maintenance that is &lt;em&gt;operations&lt;/em&gt;, which means to deliver their work to customers and interact with it under real load. It’s not about cost-cutting (SRE people can support us in new and more valuable ways) but about LEAN product development: small increments, validated learnings, etc.&lt;/p&gt;

&lt;p&gt;Once again Y-stack takes the view that if you can experiment with all layers of software delivery you’re better prepared to maintain and improve your product.&lt;/p&gt;

&lt;p&gt;There are aspects of maintenance that should be kept outside DevOps, and the Kubernetes user interface matches that boundary quite well. We recommend that, when time comes to take your product online, you don’t rent machines but instead pay for Kubernetes-as-a-service. Machines is one of the building blocks that your hosting provider selects, together with for example networking. You avoid things like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubeadm&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubelet&lt;/code&gt;s, “api server flags”, certificates and expect &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;kubectl get nodes&lt;/code&gt; to produce a list of Ready instances a few minutes after you’ve paid the first bill.&lt;/p&gt;

&lt;p&gt;In Yolean’s experience DevOps could never work at the machine level. We do want the developer role to be broad and challenging+interesting, but when we include the health of machines in that the specta is to wide to be enjoyable. We can either avoid building a distributed system (can we?) or we have to somehow hide many of the complexities.&lt;/p&gt;

&lt;h2 id=&quot;the-deal-with-complexity&quot;&gt;The deal with complexity&lt;/h2&gt;

&lt;p&gt;Y-stack adds complexity to your already complex while empty Kubernetes cluster: for example tooling to build images from source and to let nodes pull these images in order to start containers. In addition there are a few utilities to try to automate &lt;em&gt;provisioning&lt;/em&gt; (creating a compatible cluster locally, or at a cloud provider). We’ve automated using bash scripts because we actually want the abstraction (on top of virtualization or cloud provider tooling) to be &lt;em&gt;leaky&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;We argue that this complexity is &lt;em&gt;a&lt;/em&gt; solution to your need to settle at a level of DevOps. It merely resolves the Catch 22 where in order to learn Kubernetes you need to know enough Kubernetes to run your code there. Without the extra layer you can’t really get started without someone to provide you with the source-to-URL pipeline. Make no mistake: many are keen to provide that pipeline (look for CloudRun, PaaS etc) but we advise you to consider these aspects: Stay vendor-neutral as it’s a main selling point for Kubernetes, rely on tooling that proliferates organically in the Kubernetes community that is an ever stronger selling point, and recognize that you’re looking not for an all-in-one but for a starting point.&lt;/p&gt;

&lt;p&gt;Both &lt;em&gt;provision&lt;/em&gt; and the subsequent &lt;em&gt;converge&lt;/em&gt; adds truckloads of complexity compared to a local development stack, but believe it or not it’s a minimal starting point for developers to actually l e a r n Kubernetes.&lt;/p&gt;

&lt;h2 id=&quot;the-community&quot;&gt;The community&lt;/h2&gt;

&lt;p&gt;It’s 2019 now and there’s no longer a need to defend trust on Open Source for business-critical software. You should however pay attention to the different kinds of open source. The Kubernetes community is unhealthily self-aware as an Awesome Community, but that’s ok when any impartial review would also call it great, as in valuable to us who depend on the tool.&lt;/p&gt;

&lt;p&gt;Most notably the Kubernetes community can be relied on because there’s no single controlling actor that has a business model built on it, while still being commercially important enough to receive robust maintenance. For example it spends &lt;a href=&quot;https://www.cncf.io/announcement/2018/08/29/cncf-receives-9-million-cloud-credit-grant-from-google/&quot;&gt;upward of $3 million per year&lt;/a&gt; on “running the continuous integration and continuous delivery (CI/CD) pipelines and providing the container image download repository.”.&lt;/p&gt;

&lt;h2 id=&quot;security&quot;&gt;Security&lt;/h2&gt;

&lt;p&gt;Containerization and trust&lt;/p&gt;

&lt;p&gt;Isolation&lt;/p&gt;

&lt;p&gt;Multitenancy&lt;/p&gt;

&lt;h2 id=&quot;cost&quot;&gt;Cost&lt;/h2&gt;

&lt;p&gt;Resource utilization&lt;/p&gt;

&lt;h2 id=&quot;more-thorough-presentations&quot;&gt;More thorough presentations&lt;/h2&gt;

&lt;p&gt;Purely technical:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;https://github.com/cncf/presentations/tree/master/kubernetes&lt;/li&gt;
  &lt;li&gt;https://github.com/jbeda/slides-kubernetes-101&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A light introduction of Kubernete followed by deep dive: https://drive.google.com/file/d/1Lfi8r0GZdFIMgprUrwaf-Lru5RsctML7/view&lt;/p&gt;

&lt;p&gt;Quite related to the scope of Y-stack: https://speakerdeck.com/luxas/what-does-production-ready-really-mean-for-a-kubernetes-cluster-umea-may-2019?slide=5&lt;/p&gt;

&lt;p&gt;Good development perspective: https://speakerdeck.com/mhausenblas/developing-on-kubernetes?slide=16&lt;/p&gt;

&lt;p&gt;The model we’ve chosen, only we transfer &lt;em&gt;build contexts&lt;/em&gt; not images: https://speakerdeck.com/mhausenblas/developing-on-kubernetes?slide=25&lt;/p&gt;
</description>
        <pubDate>Mon, 23 Sep 2019 00:00:00 +0000</pubDate>
        <link>https://y-stack.github.io/2019/09/23/introduction-at-chalmers.html</link>
        <guid isPermaLink="true">https://y-stack.github.io/2019/09/23/introduction-at-chalmers.html</guid>
        
        
      </item>
    
  </channel>
</rss>
