Stream: containers

Topic: Kubernetes workshop 2025


view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 14:23):

Here are Oliver's slides: https://go.fzj.de/dcm25-ct-slides

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 14:37):

Here's the git repo for the workshop: https://github.com/gdcc/dcm2025-ct-workshop

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 15:04):

Because #11477 was merged (just yesterday!) we can also see the tags that @Oliver Bertuch is describing on the preview version of the guides: http://preview.guides.gdcc.io/en/develop/container/app-image.html#supported-image-tags

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 15:05):

tags.png

view this post on Zulip Don Sizemore (Jun 10 2025 at 18:05):

DCM containerization join URL https://zoom.us/j/94730584115?pwd=LXk5HFsUH7nN9RmO7rbtLhvsLmpkwl.1

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 18:20):

Here's the agenda/notes doc I was showing: https://docs.google.com/document/d/1XZymsjj7EcFagjflYvv7Tn3RCGqGipe3XXOw6to4W2c/edit?usp=sharing

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 18:20):

Please feel free to add yourself as an attendee if you wish!

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 18:24):

Oliver's slides: https://go.fzj.de/dcm25-ct-slides

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 18:32):

If you see this error when running kubectl get nodes...

E0610 14:30:30.887453   81631 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
The connection to the server localhost:8080 was refused - did you specify the right host or port?

... be sure to enable Kubernetes!

Screenshot 2025-06-10 at 2.31.33โ€ฏPM.png

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 18:33):

Then it will ask you to install something and restart.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 18:35):

Ok, now I'm getting better results:

% kubectl get nodes
NAME             STATUS   ROLES           AGE   VERSION
docker-desktop   Ready    control-plane   86s   v1.32.2

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 18:35):

% kubectl get storageclass
NAME                 PROVISIONER          RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
hostpath (default)   docker.io/hostpath   Delete          Immediate           false                  99s

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:19):

pdurbin@beamish test % kubectl apply -k .
namespace/test created
pdurbin@beamish test % kubectl get namespaces
NAME              STATUS   AGE
default           Active   46m
kube-node-lease   Active   46m
kube-public       Active   46m
kube-system       Active   46m
test              Active   86s
pdurbin@beamish test % kubectl delete -k .
namespace "test" deleted
pdurbin@beamish test %

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:21):

Or just kubectl get ns

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:22):

(add it back in, obviously; I was just showing how to delete it)

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:43):

% kubectl get pods -n test
NAME         READY   STATUS    RESTARTS   AGE
postgres-0   1/1     Running   0          2m13s

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:45):

% kubectl config set-context --current --namespace=test
Context "docker-desktop" modified.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:48):

pdurbin@beamish test % kubectl get statefulsets.app
NAME       READY   AGE
postgres   1/1     21s
pdurbin@beamish test % kubectl describe pod postgres-0
Name:             postgres-0
Namespace:        test

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:50):

pod has unbound immediate PersistentVolumeClaims is due to the volume not being available

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:50):

pdurbin@beamish test % kubectl get pvc
NAME                       STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
postgres-data-postgres-0   Bound    pvc-2228f789-5374-4e6d-92e0-5c2fe5be4276   1Gi        RWO            hostpath       <unset>                 2m44s

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:52):

It just took a bit to resolve. All set now:

Events:
  Type     Reason            Age    From               Message
  ----     ------            ----   ----               -------
  Warning  FailedScheduling  3m46s  default-scheduler  0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
  Normal   Scheduled         3m45s  default-scheduler  Successfully assigned test/postgres-0 to docker-desktop
  Normal   Pulled            3m44s  kubelet            Container image "postgres:16" already present on machine
  Normal   Created           3m44s  kubelet            Created container: postgres
  Normal   Started           3m44s  kubelet            Started container postgres

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 10 2025 at 19:54):

pdurbin@beamish test % kubectl logs postgres-0
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
...

view this post on Zulip Notification Bot (Jul 02 2025 at 13:25):

22 messages were moved here from #containers > meetings by Philip Durbin ๐Ÿš€.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 02 2025 at 13:27):

@Philipp Conzett when you asked during the community call yesterday if there was anything to review from @Oliver Bertuch's Kubernetes workshop, I linked you to his slides but I forgot that I also took a few notes, which you can find above.


Last updated: Oct 30 2025 at 05:14 UTC