我正在尝试为管道中的代理作业添加新的kubectl任务。当我粘贴kubectl配置时,我收到此错误:
The URL resolves to address "https://api.dev.mysite.com/api/v1/nodes",
which is in a special purpose range that is not allowed in a Service Endpoint.
对我来说,标准的Kubernetes路径将被阻塞似乎很奇怪。有没有解决方法?配置文件如下所示:
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: [random stuff here]
server: https://api.dev.mysite.com
name: dev.mysite.com
contexts:
- context:
cluster: dev.mysite.com
namespace: default
user: dev.mysite.com
name: dev.mysite.com
current-context: dev.mysite.com
kind: Config
preferences: {}
users:
- name: dev.mysite.com
user:
client-certificate-data: [random stuff here]
client-key-data: [random stuff here]
password: [password here]
username: [username here]
- name: dev.mysite.com-basic-auth
user:
password: [password here]
username: [username here]
最佳答案
看起来这个用户:
- name: dev.mysite.com
user:
client-certificate-data: [random stuff here]
client-key-data: [random stuff here]
password: [password here]
username: [username here]
没有列表/创建节点所需的kube-apiserver / Kubernetes访问权限。关于kubernetes - 无法验证Azure Kubernetes服务连接,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/62885496/