Spring-cloud-kubernetes使用

The following profiles are active: kubernetes : 

错误1:Could not create the Kubernetes ApiClient in a cluster environment, because : java.nio.file.NoSuchFileException: \var\run\secrets\kubernetes.io\serviceaccount\ca.crt

错误2:Unless $KUBECONFIG or $HOME/.kube/config is defined,

错误3:this client will try to connect to localhost:8080

posted @ 2023-12-09 00:25  Peter.Jones  阅读(14)  评论(0编辑  收藏  举报