Search code examples
kubernetesipkubectlminikubevcluster

External IP was pending while applied service.yaml file


I had installed kubectl, minikube, vcluster.

I had created a namespace(a-team) and applied a service.yaml file to create a service in the namespace. In service.yaml file I used type: LoadBalancer and type: NodePort. But the external IP is not generating terminal log

service.yaml file

apiVersion: v1
kind: Service
metadata:
  name: a-team-cluster
spec:
  selector:
    app: vcluster
    release: a-team
  ports:
    - name: https
      port: 443
      targetPort: 8443
      protocol: TCP
  type: LoadBalancer

values.yaml file

syncer:
  extraArgs:
  - --tls-san=

Solution

  • Ensure that you have a loadbalancer implementation running. For minikube this could be minikube tunnel in a separate terminal window.