kubernetes-mastery icon indicating copy to clipboard operation
kubernetes-mastery copied to clipboard

Ingress changes with GA in 1.19

Open BretFisher opened this issue 4 years ago • 2 comments

Reported by Daniel:

Ingress resource version has changed from networking.k8s.io/v1beta1 to networking.k8s.io/v1and the YAML spec has changed a bit. Update files and video:

Slides at https://slides.kubernetesmastery.com/#ingress

  • [x] slides/k8s/ingress.md
  • [ ] slides/k8smastery/taints.md
  • [x] slides/k8smastery/ingress.md

Manifests:

  • [ ] k8s/canary.yaml
  • [x] k8s/ingress.yaml
  • [x] k8s/redirect.yaml

Videos:

  • [x] Create Lecture Note with comment
  • [x] Update k8smastery.com/ic-nginx-lb.yaml k8smastery.com/ic-nginx-hn.yaml
  • [x] 99: Creating Ingress Resources (we just need a new written lecture to indicate the change, no video re-recording)
  • [x] 101: redirect.yaml uses old apiVersion but file is already updated @ 5:20
  • [x] 102: kubectl describe output shows old apiVersion but this is a non-issue @ 2:43
  • [x] 106: slides show ingress to be in beta @ 3:00 Add annotation and update slides

Old spec example

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: cheddar
spec:
  rules:
  - host: cheddar.A.B.C.D.nip.io
    http:
      paths:
      - path: /
        backend:
          serviceName: cheddar
          servicePort: 80

New spec example

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: cheddar
spec:
  rules:
  - host: cheddar.A.B.C.D.nip.io
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: cheddar
            port:
              number: 80

BretFisher avatar Jan 12 '21 18:01 BretFisher

Several manifests updated via #17

BretFisher avatar Apr 08 '21 07:04 BretFisher

1.19, 1.22 Changes to Ingress

Starting in version 1.19 (released Aug 2020), ingress has changed. Please update your apiVersion to networking.k8s.io/v1 for all ingress resources. The apiVersion networking.k8s.io/v1beta1 is removed in 1.22.

Updated slides

ivorscott avatar Jan 07 '22 20:01 ivorscott