helm3 icon indicating copy to clipboard operation
helm3 copied to clipboard

v1beta1 Ingress is deprecated in v1.14 and unavailable in 1.22+

Open steveruddell opened this issue 3 years ago • 7 comments

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

steveruddell avatar Dec 01 '21 21:12 steveruddell

Thanks for report .. this has to be changed for all labs. This is planned for the next labs release.

phcollignon avatar Dec 15 '21 14:12 phcollignon

I also see: kubectl apply -f ingress.yaml error: unable to recognize "ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1"

AnshuRaina77 avatar Jan 05 '22 23:01 AnshuRaina77

Thanks, I'll check the all lab with new K8s version

phcollignon avatar Jan 06 '22 10:01 phcollignon

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

sergiorossini avatar Jan 12 '22 19:01 sergiorossini

@[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 frontend.minikube.local in /etc/hosts file

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

AbhiAgrawal avatar Apr 06 '22 20:04 AbhiAgrawal

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.

phcollignon avatar Apr 08 '22 03:04 phcollignon

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.

StevenPenn avatar Mar 28 '24 14:03 StevenPenn