SolomonDefi / solomon-monorepo

Monorepo containing core Solomon apps, services, libraries, and deploy config.
6 stars 3 forks source link

Unable to run skaffold due to nginx ingress issue #201

Closed solomondefi-dev closed 2 years ago

solomondefi-dev commented 2 years ago

npm run skaffold fails for me on the lastest main

Specs: MacBook Air (M1, 2020) OS: macOS Monterey 12.1

 - deployment/nginx-ingress-ingress-nginx-controller: running [kubectl --context docker-desktop rollout status deployment nginx-ingress-ingress-nginx-controller --namespace default --watch=false]
 - stdout: ""
 - stderr: "error: deployment \"nginx-ingress-ingress-nginx-controller\" exceeded its progress deadline\n"
 - cause: exit status 1
 - deployment/nginx-ingress-ingress-nginx-controller failed. Error: running [kubectl --context docker-desktop rollout status deployment nginx-ingress-ingress-nginx-controller --namespace default --watch=false]
 - stdout: ""
 - stderr: "error: deployment \"nginx-ingress-ingress-nginx-controller\" exceeded its progress deadline\n"
 - cause: exit status 1.
solomondefi-dev commented 2 years ago

More details - seeing this message in the skaffold output:

I1223 17:25:49.438177   33544 request.go:668] Waited for 1.026824167s due to client-side throttling, not priority and fairness, request: GET:https://kubernetes.docker.internal:6443/api/v1/namespaces/default/pods?labelSelector=component%!D(MISSING)db%!C(MISSING)skaffold.dev%!F(MISSING)run-id%!D(MISSING)95d339e5-21ba-4e2f-b172-805a410ac164%!C(MISSING)tier%!D(MISSING)backend

and this in the nginx pod:

-------------------------------------------------------------------------------

NGINX Ingress controller

  Release:       v0.47.0

  Build:         7201e37633485d1f14dbe9cd7b22dd380df00a07

  Repository:    https://github.com/kubernetes/ingress-nginx

  nginx version: nginx/1.20.1

-------------------------------------------------------------------------------

I1223 09:29:04.474335       8 flags.go:208] "Watching for Ingress" class="nginx"

W1223 09:29:04.474423       8 flags.go:213] Ingresses with an empty class will also be processed by this Ingress controller

W1223 09:29:04.475204       8 client_config.go:614] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.

I1223 09:29:04.475533       8 main.go:241] "Creating API client" host="https://10.96.0.1:443"

I1223 09:29:04.486341       8 main.go:285] "Running in Kubernetes cluster" major="1" minor="22" git="v1.22.4" state="clean" commit="b695d79d4f967c403a96986f1750a35eb75e75f1" platform="linux/arm64"

I1223 09:29:04.552693       8 main.go:105] "SSL fake certificate created" file="/etc/ingress-controller/ssl/default-fake-certificate.pem"

I1223 09:29:04.554040       8 main.go:115] "Enabling new Ingress features available since Kubernetes v1.18"

W1223 09:29:04.554666       8 main.go:127] No IngressClass resource with name nginx found. Only annotation will be used.

I1223 09:29:04.580737       8 nginx.go:254] "Starting NGINX Ingress controller"

I1223 09:29:04.587840       8 event.go:282] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"default", Name:"nginx-ingress-ingress-nginx-controller", UID:"9ac90f7c-e85f-4079-b596-35987e0f2c01", APIVersion:"v1", ResourceVersion:"111277", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap default/nginx-ingress-ingress-nginx-controller

E1223 09:29:05.686369       8 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

E1223 09:29:06.791343       8 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

E1223 09:29:09.204504       8 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

E1223 09:29:14.764391       8 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

E1223 09:29:25.392043       8 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

E1223 09:29:46.303098       8 reflector.go:138] k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.Ingress: failed to list *v1beta1.Ingress: the server could not find the requested resource

I1223 09:30:03.077090       8 main.go:187] "Received SIGTERM, shutting down"

I1223 09:30:03.077461       8 nginx.go:372] "Shutting down controller queues"

E1223 09:30:03.078530       8 store.go:178] timed out waiting for caches to sync

I1223 09:30:03.079467       8 nginx.go:296] "Starting NGINX process"

I1223 09:30:03.081259       8 leaderelection.go:243] attempting to acquire leader lease default/ingress-controller-leader-nginx...

I1223 09:30:03.083661       8 queue.go:78] "queue has been shutdown, failed to enqueue" key="&ObjectMeta{Name:initial-sync,GenerateName:,Namespace:,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[]OwnerReference{},Finalizers:[],ClusterName:,ManagedFields:[]ManagedFieldsEntry{},}"

I1223 09:30:03.091661       8 status.go:84] "New leader elected" identity="nginx-ingress-ingress-nginx-controller-74b77b8cf4-gfbh6"

I1223 09:30:03.108711       8 status.go:132] "removing value from ingress status" address=[localhost]

I1223 09:30:03.108904       8 nginx.go:388] "Stopping NGINX process"

2021/12/23 09:30:03 [notice] 43#43: signal process started

I1223 09:30:04.112406       8 nginx.go:401] "NGINX process has stopped"

I1223 09:30:04.112438       8 main.go:195] "Handled quit, awaiting Pod deletion"

I1223 09:30:14.114320       8 main.go:198] "Exiting" code=0