Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying nginx ingress #67

Open
Oicho opened this issue Jan 27, 2022 · 2 comments
Open

Deploying nginx ingress #67

Oicho opened this issue Jan 27, 2022 · 2 comments

Comments

@Oicho
Copy link

Oicho commented Jan 27, 2022

The standard images are not present. Following this official doc https://github.com/Azure/container-service-for-azure-china/blob/master/aks/README.md I installed the ingress following

I tried installing the nginx ingress in china.

I did the following:

helm repo add stable https://mirror.azure.cn/kubernetes/charts/

helm search repo stable/nginx-ingress

NAME CHART VERSION APP VERSION DESCRIPTION

stable/nginx-ingress 1.41.3 v0.34.1 DEPRECATED! An nginx Ingress controller that us...

So the package noted on the doc are deprecated and indeed when you look at the mirror that last import was done on the 23th of December.

When you install

helm install --replace ingress stable/nginx-ingress --namespace kube-system -f internal-ingress-ip.yaml --set controller.replicaCount=2 --set controller.nodeSelector."kubernetes.io/os"=linux --set defaultBackend.nodeSelector."kubernetes.io/os"=linux --set controller.admissionWebhooks.patch.nodeSelector."kubernetes.io/os"=linux --set controller.image.registry=quay.azk8s.cn --set defaultBackend.image.repository=k8sgcr.azk8s.cn/defaultbackend-amd64

This log come up and the ingress do not work correctly

E0127 13:42:39.791165 7 main.go:122] Unexpected error searching IngressClass: ingressclasses.networking.k8s.io "nginx" is forbidden: User "system:serviceaccount:kube-system:ingress-nginx-ingress" cannot get resource "ingressclasses" in API group "networking.k8s.io" at the cluster scope

I guess I can probably give manually access to the service account but it kinda defeat the entire purpose of using helm.

So I tried to use the default helm charts

nginx-ingress/ingress-nginx 4.0.16 1.1.1 Ingress controller for Kubernetes using NGINX a...

PS C:\Code> helm repo list

NAME URL

nginx-ingress https://kubernetes.github.io/ingress-nginx

Sadly it looks like the image are not present (I removed the @sha part since I know it can cause issues)

When I try this Failed to pull image "usgcr.azk8s.cn/ingress-nginx/controller:v0.49.1": rpc error: code = NotFound desc = failed to pull and unpack image "usgcr.azk8s.cn/ingress-nginx/controller:v0.49.1": failed to resolve reference "usgcr.azk8s.cn/ingress-nginx/controller:v0.49.1": usgcr.azk8s.cn/ingress-nginx/controller:v0.49.1: not found

So a few questions: What is the supported way to install an up to date nginx ingress on azure Kubernetes service in china? Is there a way to know what are the images publicly available on the mirrors ?

Best regards

@andyzhangx
Copy link
Contributor

ingress-nginx has been moved to https://github.com/kubernetes/ingress-nginx, not sure whether original chart parameter works any more.

$ helm repo add ingress https://kubernetes.github.io/ingress-nginx
$ helm search repo nginx
NAME                            CHART VERSION   APP VERSION     DESCRIPTION
ingress/ingress-nginx           4.0.16          1.1.1           Ingress controller for Kubernetes using NGINX a...

@karataliu
Copy link
Collaborator

Can you refer to https://docs.azure.cn/en-us/aks/ingress-basic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants