相关疑难解决方法(0)

Kubernetes日志,用户"system:serviceaccount:default:default"无法在命名空间中获取服务

Forbidden!Configured service account doesn't have access. Service account may have been revoked. User "system:serviceaccount:default:default" cannot get services in the namespace "mycomp-services-process"

对于上述问题,我创建了"mycomp-service-process"命名空间并检查了问题.

但它再次显示这样的消息:

Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. User "system:serviceaccount:mycomp-services-process:default" cannot get services in the namespace "mycomp-services-process"

kubernetes

7
推荐指数
2
解决办法
1万
查看次数

如何找出负载均衡器服务的外部IP?

我正在Google Cloud Platform上使用Kubernetes Engine。我有一个在Docker临时容器中运行进程的Pod。我还有一个负载平衡器服务,可让我从外界访问Pod。

在Pod中运行的进程需要知道其外部IP地址是什么。我怎么能得到这个?

在使用Kubernetes Engine之前,我使用的是Compute Engine,可以通过以下方式找到外部IP地址:

curl -H "Metadata-Flavor: Google" http://metadata/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip
Run Code Online (Sandbox Code Playgroud)

有什么我可以使用的内部工具可以用于我的流程吗?还是我需要调用可镜像IP地址的外部站点的过程?

google-compute-engine google-cloud-platform kubernetes google-kubernetes-engine

5
推荐指数
1
解决办法
2741
查看次数