question

ShrikantBhagwat-6030 avatar image
0 Votes"
ShrikantBhagwat-6030 asked srbose-msft edited

Ingress Error


helm install Giving Error
W0807 13:51:02.912408 285 warnings.go:67] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0807 13:51:02.919731 285 warnings.go:67] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0807 13:51:03.096871 285 warnings.go:67] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0807 13:51:03.096906 285 warnings.go:67] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress

Ingress Configuration Script

ingress:
# enabled: true - To enable ingress configuration
enabled: true
annotations:
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-expires: "86400"
nginx.ingress.kubernetes.io/session-cookie-max-age: "86400"
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"

azure-kubernetes-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered

Hello @ShrikantBhagwat-6030 ,
Can we know how exactly ingress is being installed? I just tried following the below document to test it out - it went through fine for me.
https://docs.microsoft.com/en-us/azure/aks/ingress-basic
(Try to follow above document once)

If your ingress is working as expected and based upon the logs provided by you , those seems to be warning messages which you can safely ignore.
https://github.com/kubernetes/kubernetes/issues/94761#issuecomment-691982480

Kindly let us know if you have additional questions

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kasunraj avatar image
0 Votes"
kasunraj answered

This warning message will let you know from the v1.22 and above ingress API version is changing and need to use networking.k8s.io/v1 as the default API version to work with the future version of K8s. What I suggest change the API version to networking.k8s.io/v1 and create the ingress rather than old.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ShrikantBhagwat-6030 avatar image
0 Votes"
ShrikantBhagwat-6030 answered srbose-msft commented

What I suggest change the API version to networking.k8s.io/v1 and create the ingress rather than old.

How do I change API Version to networking.k8s.io/v1 & create Ingress

I did use following command to create ingress controller

helm repo add stable "https://charts.helm.sh/stable"
helm repo update
helm install nginx-ingress stable/nginx-ingress --set controller.publishService.enabled=true

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ShrikantBhagwat-6030 , The apiVersion changes apply to Ingress and IngressClass objects as described here. So the charts for such objects need to be updated.

Can you please check if using the https://helm.nginx.com/stable helps mitigate the warnings? For detailed instructions please refer to this link.

You can alternatively follow this document.


0 Votes 0 ·
ShrikantBhagwat-6030 avatar image
0 Votes"
ShrikantBhagwat-6030 answered srbose-msft edited

Is it necessary to have name space of NGINX Ingress & Application to be same ?
My ingress is somehow in default name space.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ShrikantBhagwat-6030 , A Resource backend is an ObjectRef to another Kubernetes resource within the same namespace as the Ingress object. [Reference]

You can refer to this document on how to set namespace for the helm installation as well as the ingress resource and backend deployments and services.


0 Votes 0 ·