我将这两个服务部署到我的集群下命名空间prisma
:
kubectl get services -n prisma
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
database ClusterIP 10.23.252.18 <none> 3306/TCP 3d
prisma NodePort 10.23.248.0 <none> 4466:31001/TCP 1d
但是当我做集群信息时,它只显示主服务器,而我的服务都没有出现:
kubectl cluster-info -n prisma
Kubernetes master is running at https://my-cluster-ip
这个对吗?
我希望看到类似的东西:
Kubernetes master is running at https://my-cluster-ip
Prisma is running at https://my-cluster-ip/api/v1/namespaces/prisma/services/prisma/proxy
...