From 84f64831b5065f304c60175d2b287bce76227c67 Mon Sep 17 00:00:00 2001 From: dgogos Date: Wed, 18 Feb 2026 12:11:02 +0200 Subject: [PATCH] feat: update readme with CA mounting on kind guide --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 426bfce..cf49705 100644 --- a/README.md +++ b/README.md @@ -114,3 +114,40 @@ kubectl logs -n oop # Check Helm release status helm status oop-platform -n oop ``` + +## Mounting CA Certificates on kind + +If you need to mount custom CA certificates into the kind cluster, follow the steps below: + +Modify your kind cluster configuration file (cluster.yaml) to include the CA certificate mount: + +``` +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: + - role: control-plane + extraMounts: + - hostPath: /path/to/your/ca-certificate.crt + containerPath: /path/to/your/ca-certificate.crt +``` + +Once the cluster is up, you need to update the CA certificates inside the kind nodes. Run the following script: + +``` +CERT=/path/to/your/ca-certificate.crt +CLUSTER=oop-cluster + +kind get nodes --name "$CLUSTER" | while read -r n; do + echo "==> Configuring CA on $n" + + docker exec "$n" sh -lc " + set -e + test -f $CERT || { echo 'CA cert not found'; exit 1; } + update-ca-certificates + systemctl restart containerd + systemctl restart kubelet + echo 'CA trust updated' + " +done + +``` -- GitLab