cloudcore charts do not use .Values.cloudCore.modules.cloudHub.advertiseAddress when generating certificates in templates _helpers.tpl #5598
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened: I deployed cloudcore by helm, but error occured when I tried to join edge node:
Error: failed to get edge certificate from the cloudcore, error: Get "https://${PUBLIC_IP}:10002/edge.crt": tls: failed to verify certificate: x509: certificate is valid for 192.168.x.x, not ${PUBLIC_IP}
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Deploy cloudcore by helm, and then join edge node.
Anything else we need to know?:
I modified the
kubeedge/manifests/charts/cloudcore/templates/_helpers.tpl
Line 32 in 58bf767
{{- $cert := genSignedCert ( include "cloudcore.name" . ) ( .Values.cloudCore.modules.cloudHub.advertiseAddress ) $altNames 365 $ca -}}
the trouble resolved.
Environment:
Kubernetes version (use
kubectl version
):KubeEdge version(e.g.
cloudcore --version
andedgecore --version
): v1.16.2Cloud nodes Environment:
lscpu
):cat /etc/os-release
):uname -a
):go version
):Edge nodes Environment:
edgecore --version
): v1.16.2lscpu
):cat /etc/os-release
):uname -a
):go version
):The text was updated successfully, but these errors were encountered: