LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
57 stars 6 forks source link

[virtualization][kubernetes_adminsitration] Add CAs to Kind cluster #563

Open LukeShortCloud opened 3 years ago

LukeShortCloud commented 3 years ago

Manually:

$ sudo docker cp <PATH_TO>/ca.crt <CONTAINER_ID>:/usr/local/share/ca-certificates/
$ sudo docker exec -it <CONTAINER_ID> update-ca-certificates && systemctl restart containerd.service

Automatically:

https://cluster-api.sigs.k8s.io/tasks/certs/using-custom-certificates.html

LukeShortCloud commented 3 years ago

I am unsure if the automatic / Cluster API method is exposed / usable for Kind. Especially unsure if it would work for the Docker back-end.

LukeShortCloud commented 3 years ago

Example of adding trusted CAs to Kind cluster:

https://kind.sigs.k8s.io/docs/user/private-registries/#use-a-certificate