InfuseAI / primehub-site

A static site of PrimeHub.
5 stars 2 forks source link

Kubernetes on AWS EKS - nginx-ingress #84

Open glsdown opened 3 years ago

glsdown commented 3 years ago

Hello,

I am following the instructions on installing K8s on AWS EKS, but am having issues installing nginx-ingress.

I have followed all stages up to this point, and they've worked fine. The only slight difference is I have an updated version of helm:

$ helm version
version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"clean", GoVersion:"go1.15.11"}

However, on running the commands:

$ helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
$ helm repo update
$ helm install nginx-ingress --create-namespace --namespace ingress-nginx --version=1.31.0 --set controller.hostNetwork=true --set rbac.create=true

I immediately am presented with the error message:

Error: must either provide a name or specify --generate-name

On including, generate-name I receive the error:

Error: failed to download "nginx-ingress" at version "1.31.0" (hint: running `helm repo update` may help)

Removing the version number parameter entirely gives me something similar:

Error: failed to download "nginx-ingress" (hint: running `helm repo update` may help)

Looking at the linked documentation for nginx-ingress, it looks like maybe there is a name change or something, as the suggested commands to install via helm are:

$ helm install ingress-nginx ingress-nginx/ingress-nginx

I used this in combination with what was in the documentation, but still received an error on the version:

$ helm install ingress-nginx ingress-nginx/ingress-nginx --create-namespace --namespace ingress-nginx --version=1.31.0 --set controller.hostNetwork=true --set rbac.create=true
Error: failed to download "ingress-nginx/ingress-nginx" at version "1.31.0" (hint: running `helm repo update` may help)

However, removing the version helped, and didn't throw any error messages:

$ helm install ingress-nginx ingress-nginx/ingress-nginx --create-namespace --namespace ingress-nginx  --set controller.hostNetwork=true --set rbac.create=true

However, the external address given does not then appear to work, and only displays the standard nginx 404 not found error (not the specified default backend - 404).

I wonder whether it's related to the specific installation notes for AWS and they way they deploy it as mentioned on their website here.

I'm very new to all of this, but very keen to be able to use your tool, so any help would be gratefully received. I'm probably doing something very basic, but unfortunately lack the experience to know what that might be.

Many thanks!

popcornylu commented 3 years ago

Hello @glsdown,

Thanks for leaving issue here and sorry for late reply. The command is wrong in the document, we missed the name argument in the helm install command. You can try this one.

$ helm install nginx-ingress ingress-nginx/ingress-nginx \
    --create-namespace \
     --namespace ingress-nginx \
    --set controller.hostNetwork=true \
    --set rbac.create=true

As the repository is the doc repo for PrimeHub, any issue is recommended to be filed in the PrimeHub repository. It would be easier to draw our attention.