当试图运行helm install将应用程序部署到私有K8S集群时,我会得到以下错误:
helm install myapp ./myapp
Error: create: failed to create: secrets is forbidden: User "u-user1"
cannot create resource "secrets" in API group "" in the namespace "default"
exit status 1
我知道这是因为helm会在场景背后创建秘密,以保存管理部署所需的信息。请
在运行部署时,我会看到以下错误:
Error from server (NotFound): error when creating "n3deployment.yaml": namespaces "n2" not found
我的n3deployment.yaml没有提到n2?
一步
确保一切都是空的
c:\temp\k8s>kubectl get pods
No resources found.
c:\temp\k8s>kubectl get svc
No resources found.
c:\temp\k8s>kubec
当我在玩K8s部署和Gitlab时,我的部署被状态ContainerStarting卡住了。
为此,我使用K8s删除了kubectl delete namespaces my-namespace命名空间。
现在我的Gitlab跑步者告诉我
$ ensure_namespace
Checking namespace [MASKED]-docker-3
error: the server doesn't have a resource type "namespace"
error: You must be logged in to the server (Unauthori
我有一个问题,就是如何为不同的K8S命名空间划分相同的访问权限。比方说,我有三个不同的卷(vol-a、vol-b、vol-c),我想为每个不同的名称空间(namespace-a - to vol-a、namespace-b - to vol-b、namespace-c - to vol-c)访问它们。
是否有可能推行这计划呢?也许有一种方法可以用用户名和密码来验证一个口香糖的客户端?是否有方法在端点配置中定义这些凭据?
提前感谢!