Loading README.md +37 −0 Original line number Diff line number Diff line Loading @@ -114,3 +114,40 @@ kubectl logs <pod-name> -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 ``` Loading
README.md +37 −0 Original line number Diff line number Diff line Loading @@ -114,3 +114,40 @@ kubectl logs <pod-name> -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 ```