jx3-gitops-repositories / jx3-kubernetes

Jenkins X 3.x GitOps repository for a vanilla Kubernetes cluster
Apache License 2.0
14 stars 46 forks source link

service "ingress-nginx-controller-admission" not found #13

Open patsevanton opened 2 years ago

patsevanton commented 2 years ago

Hello! I try install jenkins-x on k8s 1.21 install ingress

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx && helm repo update
helm install --atomic nginx-ingress ingress-nginx/ingress-nginx

kubectl get pod -A

NAMESPACE          NAME                                                      READY   STATUS        RESTARTS   AGE
default            nginx-ingress-ingress-nginx-controller-66556dd999-7bm26   1/1     Running       0          12m
jx-git-operator    jx-boot-20d3b790-6fbb-47b0-a34a-31067ac2f17f-6tprb        0/1     Error         0          10m
jx-git-operator    jx-boot-20d3b790-6fbb-47b0-a34a-31067ac2f17f-8nxdk        0/1     Completed     0          8m15s
jx-git-operator    jx-boot-9b21b396-4eff-4267-aa0d-1a9eb13a202c-4k9rv        0/1     Completed     0          5m16s

kubectl logs -n jx-git-operator jx-boot-20d3b790-6fbb-47b0-a34a-31067ac2f17f-6tprb:

Error from server (InternalError): error when creating "config-root/namespaces/jx/jx-pipelines-visualizer/jx-pipelines-visualizer-ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://ingress-nginx-controller-admission.nginx.svc:443/networking/v1/ingresses?timeout=10s": service "ingress-nginx-controller-admission" not found
Error from server (InternalError): error when creating "config-root/namespaces/jx/jxboot-helmfile-resources/bucketrepo-ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://ingress-nginx-controller-admission.nginx.svc:443/networking/v1/ingresses?timeout=10s": service "ingress-nginx-controller-admission" not found
Error from server (InternalError): error when creating "config-root/namespaces/jx/jxboot-helmfile-resources/hook-ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://ingress-nginx-controller-admission.nginx.svc:443/networking/v1/ingresses?timeout=10s": service "ingress-nginx-controller-admission" not found
make[1]: *** [versionStream/src/Makefile.mk:291: kubectl-apply] Error 1
make[1]: Leaving directory '/workspace/source'
error: failed to regenerate: failed to regenerate phase 1: failed to run 'make regen-phase-1' command in directory '.', output: ''
make: *** [versionStream/src/Makefile.mk:243: regen-check] Error 1

Is it ok? How debug ?

jx health status -A

Installing plugin jx-health version 0.0.76 for command jx health from https://github.com/jenkins-x-plugins/jx-health/releases/download/v0.0.76/jx-health-linux-amd64.tar.gz into /home/user/.jx3/plugins/bin
                          NAME                     NAMESPACE                        STATUSERROR MESSAGE
                     daemonset                  kuberhealthy                   OK
                    deployment                  kuberhealthy                   OK
           dns-status-internal                  kuberhealthy                   OK
                  jx-bot-token                            jx                         ERRORCheck execution error: pod deleted unexpectedly
                 jx-pod-status                  kuberhealthy                   OK
                    jx-secrets                  kuberhealthy                   OK
                    jx-webhook                            jx                         ERRORCheck execution error: pod deleted unexpectedly
             jx-webhook-events                            jx                         ERRORCheck execution error: pod deleted unexpectedly
      network-connection-check                  kuberhealthy                   OK