K8s manual ingress controller config K8s manual ingress controller config kubernetes kubernetes

K8s manual ingress controller config


The problem with pending state on bare metal may be caused:

  • Your service can't receive IP address from external.
  • Your service can't claim the port on system because it is already in use.

In you case, it looks like your service can't claim the port. Could you try to use different ports on the system (for testing at the beginning):

apiVersion: v1kind: Servicemetadata:  name: ingress-nginx  namespace: ingress-nginx  labels:    app.kubernetes.io/name: ingress-nginx    app.kubernetes.io/part-of: ingress-nginxspec:  type: NodePort  ports:    - name: http      nodePort: 30080      port: 80      protocol: TCP    - name: https      port: 443      nodePort: 30443      protocol: TCP  selector:    app.kubernetes.io/name: ingress-nginx    app.kubernetes.io/part-of: ingress-nginx

and then your ingress will available to those nodePorts 30236 -> 80 and 30443 -> 443 from external.