https://rancher.com/ logo
Title
c

crooked-lighter-49997

08/03/2022, 6:08 PM
I cannot get get Rancher 2.6.6 to install on GKE
Here's my steps:
helm repo add rancher-stable <https://releases.rancher.com/server-charts/stable>
kubectl create namespace cattle-system

helm install rancher rancher-stable/rancher --version=$RANCHER_VERSION \
  --namespace cattle-system \
  --set hostname=${DOMAIN} \
  --set replicas=${REPLICAS} \
  --set bootstrapPassword="${BOOTSTRAP_PASSWORD}" \
  --set ingress.tls.source=letsEncrypt \
  --set letsEncrypt.email=${ADMIN_EMAIL}
I installed ingress-nginx 4.2.0
Let's Encrypt 1.5.1
Kubernetes GKE 1.22
s

square-orange-60123

08/03/2022, 6:15 PM
c

crooked-lighter-49997

08/03/2022, 6:18 PM
Yes, the only thing that seems to be different is the ingress-nginx version. That doc refers to 3.12.0, I'd like to use 4.2.0
I've also tried using 3.12.0 but get the same result
s

square-orange-60123

08/03/2022, 6:21 PM
what errors are you seeing
c

crooked-lighter-49997

08/03/2022, 6:21 PM
I've been troubleshooting this on two different clusters. Here's one of the errors:
[FATAL] failed to update <http://clusters.cluster.x-k8s.io|clusters.cluster.x-k8s.io> <http://apiextensions.k8s.io/v1|apiextensions.k8s.io/v1>, Kind=CustomResourceDefinition for  <http://clusters.cluster.x-k8s.io|clusters.cluster.x-k8s.io>: <http://CustomResourceDefinition.apiextensions.k8s.io|CustomResourceDefinition.apiextensions.k8s.io> "<http://clusters.cluster.x-k8s.io|clusters.cluster.x-k8s.io>" is invalid: status.storedVersions[0]: Invalid value: "v1beta1": must appear in spec.versions
s

square-orange-60123

08/03/2022, 6:26 PM
try this
helm upgrade --install \
  ingress-nginx ingress-nginx/ingress-nginx \
  --namespace ingress-nginx \
  --set controller.service.type=LoadBalancer \
  --version 4.2.0 \
  --create-namespace --set controller.watchIngressWithoutClass=true
You need the last flag in order for ingress to work properly.
c

crooked-lighter-49997

08/03/2022, 6:28 PM
Ok, thanks!
Gimme a sec
That did it! Thank you!
🎉 2
i

incalculable-garage-62568

08/09/2022, 8:17 AM
This helped me as well! God, I love searching through Slack Channels!
b

brash-monitor-41966

08/15/2022, 6:13 PM
these are the commands I ran on gke
helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx \ --namespace ingress-nginx \ --set controller.service.type=LoadBalancer \ --version 4.2.0 \ --create-namespace \ --set controller.watchIngressWithoutClass=true
looks like its deployed but the command prompt is stuck
kubectl --namespace ingress-nginx get services -o wide -w ingress-nginx-controller NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR ingress-nginx-controller LoadBalancer 10.36.5.56 34.168.186.146 80:32064/TCP,443:31687/TCP 12m app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx
s

square-orange-60123

08/15/2022, 6:20 PM
I would recommend hiding your IP from any public forum like this
b

brash-monitor-41966

08/15/2022, 6:45 PM
these are the exact steps I am following
just deployed rancher again with: helm install rancher rancher-stable/rancher \ --namespace cattle-system \ --set hostname=w-x-y.z.sslip.io \ --set replicas=3 \ --set ingress.tls.source=letsEncrypt
but still getting 404 error accessing ranher
rancher
s

square-orange-60123

08/15/2022, 7:38 PM
you’re using letsencrypt, did you set your email for it? what (if any) pods/deployments have issues in your cluster?
b

brash-monitor-41966

08/15/2022, 10:26 PM
all pods are up, deployment is fine. I jut cant bring up the rancher portal from the load balancer ip
s

square-orange-60123

08/15/2022, 10:54 PM
did you try from the hostname you specify? Or check rancher logs? There should be something somewhere telling you there’s a problem
b

brash-monitor-41966

08/16/2022, 1:48 PM
i was able to get version 2.6 working. Not sure what happened to 2.5.
to add existing gke cluster to rancher, do I need a service account?