Ingress API Resources

Ingress objects are now part of the networking.k8s.io API, but still a beta object. A typical Ingress object that you can POST to the API server is:

apiVersion: networking.k8s.io/v1beta1 
kind: Ingress 
metadata:
name: ghost
spec:
rules:
  - host: ghost.192.168.99.100.nip.io
    http:
      paths:
      - backend:
          service
            name: ghost
            port:
              number: 2368 
        path: /
        pathType: ImplementationSpecific

You can manage ingress resources like you do pods, deployments, services etc:

$ kubectl get ingress

$ kubectl delete ingress <ingress_name>

$ kubectl edit ingress <ingress_name>

Last updated