How to get Kubernetes Ingress Port 80 working on baremetal single node cluster

前端 未结 2 887
南方客
南方客 2020-12-24 15:37

I have a bare-metal kubernetes (v1.11.0) cluster created with kubeadm and working fine without any issues. Network with calico and made it a single node cluster

2条回答
  •  失恋的感觉
    2020-12-24 16:21

    In addition to the andswer of Nicola Ben , You have to define an externalIPs in your traefik service, just follow the steps of Nicola Ben and add a externalIPs section to the service "my-svc-1" .

    apiVersion: v1
    kind: Service
    metadata:
      namespace: traefik
      name: my-svc-1
    spec:
      selector:
        k8s-app: traefik-ingress-lb
      ports:
      - port: 80 
        targetPort: 8080
      externalIPs:
      - 
    

    And you can define more than on externalIP.

提交回复
热议问题