Rancher入门到精通-2.0 Unable to connect to the server: x509: certificate is valid for ingress.local, not

kubectl apply -f https://rancher.test.cn/v3/import/xlxwdf6fz6jtgrfcmscs79msn8dkmjbs87p42npgcktjkx2q7shpx5.yaml
Unable to connect to the server: x509: certificate is valid for ingress.local, not rancher.test.cn

未将证书导入cattle-system中

cd /home/rancher/ssl

kubectl -n cattle-system create secret tls tls-rancher-ingress \
  --cert=tls.crt \
  --key=tls.key

kubectl -n cattle-system create secret generic tls-ca \
  --from-file=cacerts.pem

 

 kubectl apply -f https://rancher.test.cn/v3/import/xlxwdf6fz6jtgrfcmscs79msn8dkmjbs87p42npgcktjkx2q7shpx5.yaml
Unable to connect to the server: x509: certificate signed by unknown authority

 

重启nginx-ingress

Updating local copy of SSL certificate "cattle-system/tls-rancher-ingress-ssl" with missing intermediate CA certs

 

你可能感兴趣的:(Rancher入门到精通)