Raspberry Pi Kubernetes Cluster Storage

 ~/code/src/github.com
 ✔ git clone https://github.com/kubernetes/examples.git
Klone nach 'examples' ...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 11736 (delta 4), reused 2 (delta 0), pack-reused 11717
Empfange Objekte: 100% (11736/11736), 16.81 MiB | 2.83 MiB/s, Fertig.
Löse Unterschiede auf: 100% (6429/6429), Fertig.

~/code/src/github.com
 ✔ kubectl get pv
NAME   CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM         STORAGECLASS   REASON   AGE
nfs    1Mi        RWX            Retain           Bound    default/nfs                           112s

 ~/code/src/github.com
 ✔ kubectl get pvc
NAME   STATUS   VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
nfs    Bound    nfs      1Mi        RWX                           51s

~/code/src/github.com
 ✔ kubectl create -f examples/staging/volumes/nfs/nfs-busybox-rc.yaml
replicationcontroller/nfs-busybox created

 ~/code/src/github.com
 ✔ kubectl get pod -l name=nfs-busybox
NAME                READY   STATUS    RESTARTS   AGE
nfs-busybox-p7jsw   1/1     Running   0          101s
nfs-busybox-nrtqh   1/1     Running   0          101s

 ~/code/src/github.com
 ✔ kubectl exec nfs-busybox-p7jsw -- cat /mnt/index.html
Sun Jan  5 18:38:07 UTC 2020
nfs-busybox-p7jsw

~/code/src/github.com
 ✔ kubectl exec nfs-busybox-nrtqh -- cat /mnt/index.html
Sun Jan  5 18:39:13 UTC 2020
nfs-busybox-p7jsw

~/code/src/github.com
 ✔ kubectl create -f examples/staging/volumes/nfs/nfs-web-rc.yaml
replicationcontroller/nfs-web created

~/code/src/github.com
 ✔ kubectl get pods -o wide
NAME                READY   STATUS    RESTARTS   AGE   IP           NODE      NOMINATED NODE   READINESS GATES
nfs-busybox-p7jsw   1/1     Running   0          21m   10.42.0.25   ribbon    <none>           <none>
nfs-busybox-nrtqh   1/1     Running   0          21m   10.42.1.3    rider     <none>           <none>
nfs-web-mhnl4       1/1     Running   0          12m   10.42.0.26   ribbon    <none>           <none>
nfs-web-xv7m8       1/1     Running   0          12m   10.42.2.3    riviera   <none>           <none>

~/code/src/github.com
 ✔ kubectl create -f examples/staging/volumes/nfs/nfs-web-service.yaml
service/nfs-web created

 ~/code/src/github.com
 ✔ kubectl get pod -l name=nfs-busybox
NAME                READY   STATUS    RESTARTS   AGE
nfs-busybox-p7jsw   1/1     Running   0          25m
nfs-busybox-nrtqh   1/1     Running   0          25m

 ~/code/src/github.com
 ✔ kubectl get services nfs-web
NAME      TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
nfs-web   ClusterIP   10.43.123.247   <none>        80/TCP    49s

 ~/code/src/github.com
 ✔ kubectl exec nfs-busybox-p7jsw -- wget -qO- http://10.43.123.247
Sun Jan  5 19:01:44 UTC 2020
nfs-busybox-nrtqh