handsome-agency-65185
09/20/2024, 6:58 PMsudo docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \ -v /opt/rancher/data:/var/lib/rancher \ -
v /opt/rancher/certs/aks_api_cert.pem:/usr/local/share/ca-certificates/aks_api_cert.crt \
—privileged \
-e SSL_CERT_DIR=/usr/local/share/ca-certificates \
--name rancher \ rancher/rancher:latest \ --acme-domain rancher.XXXXxyz
when I import the aks cluster the cattle-system agent cattle-cluster-agent-588488d97f-zv5vm
pod keeps crashing and restarting when I checked the pod log I got
time="2024-09-20T18:51:21Z" level=error msg="unable to read CA file from /etc/kubernetes/ssl/certs/serverca: open /etc/kubernetes/ssl/certs/serverca: no such file or directory"
time="2024-09-20T18:51:21Z" level=error msg="Strict CA verification is enabled but encountered error finding root CA"
I exec into the docker container navigated to the said directory the certificate is there what could be the problem?