helm3
helm3 copied to clipboard
v1beta1 Ingress is deprecated in v1.14 and unavailable in 1.22+
lab1_kubectl_version1\yaml> kubectl apply -f ingress.yaml Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
Thanks for report .. this has to be changed for all labs. This is planned for the next labs release.
I also see: kubectl apply -f ingress.yaml error: unable to recognize "ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1"
Thanks, I'll check the all lab with new K8s version
I could keep following the demo with this version of the ingress.yaml
file:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: guestbook-ingress
spec:
rules:
- host: frontend.minikube.local
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: "frontend"
port:
number: 80
- host: backend.minikube.local
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: "backend"
port:
number: 80
@[phcollignon] I did helm install demo-guestbook guestbook
And it was deployed. but i am not able to get any response from frontend.minikube.local
.. i have already added
ping frontend.minikube.local PING frontend.minikube.local (<Minikube ip>): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 Request timeout for icmp_seq 2 ^C --- frontend.minikube.local ping statistics --- 4 packets transmitted, 0 packets received, 100.0% packet loss
NAME CLASS HOSTS ADDRESS PORTS AGE
guestbook-ingress nginx frontend.minikube.local,backend.minikube.local 192.168.58.2 80 2m16s
Hello, I plan to do an update of the Labs for latest k8s version in the next weeks. In the meanwhile it is only supposed to work with the version used in the course unfortunately.
Recommend to use Kind with Ingress in Mac system. https://kind.sigs.k8s.io/docs/user/ingress/ It will fix the problem that can't access host through local web browser. And don't forget to add DNS in /etc/hosts.