kubernetes-mastery
kubernetes-mastery copied to clipboard
Ingress changes with GA in 1.19
Reported by Daniel:
Ingress resource version has changed from networking.k8s.io/v1beta1
to networking.k8s.io/v1
and 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
Several manifests updated via #17
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.