作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在多节点上部署大三角帆。我有 2 个虚拟机:第一个带有 halyard 和 kubectl,第二个包含 kubernetes master api。
我的 kubectl 配置良好,能够与远程 kubernetes api 通信,
“kubectl get namespaces” 有效
kubectl get namespaces
NAME STATUS AGE
default Active 16d
kube-public Active 16d
kube-system Active 16d
hal config provider -d kubernetes account add spin-kubernetes --docker-registries myregistry
I get this error
Add the spin-kubernetes account
Failure
Problems in default.provider.kubernetes.spin-kubernetes:
- WARNING You have not specified a Kubernetes context in your
halconfig, Spinnaker will use "default-system" instead.
? We recommend explicitly setting a context in your halconfig, to
ensure changes to your kubeconfig won't break your deployment.
? Options include:
- default-system
! ERROR Unable to communicate with your Kubernetes cluster:
Operation: [list] for kind: [Namespace] with name: [null] in namespace:
[null] failed..
? Unable to authenticate with your Kubernetes cluster. Try using
kubectl to verify your credentials.
- Failed to add account spin-kubernetes for provider
kubernetes.
最佳答案
从错误消息中似乎有两种方法可以解决此问题,将您的 halconfig 设置为与默认系统上下文对话,以便它可以与您的集群通信,或者反过来,即配置您的上下文。
尝试这个:
kubectl config view
kubectl config --help
关于kubernetes - 大三角帆/吊索 : Unable to communicate with the Kubernetes cluster,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44907972/
我有一个带 Sail 的 Laravel,我想用 Laravel Dusk 进行自动化测试。我按照 Dusk Documentation 中的所有说明进行操作和 Sail + Dusk Install
我正在使用sail 并尝试以root 身份使用shell,这是不可能的。 切换到 root 用户要求输入密码,我不知道。 我尝试更改 dockerfile: ARG WWWROOTGROUP RUN
我正在使用 Laravel 8.x 和使用 PHP 8.0 的 Sail,最近,我实际上搞砸了我的 compose.json 文件导致供应商出现问题,试图从头开始重新创建项目,我删除了供应商文件夹。
我是一名优秀的程序员,十分优秀!