MirtoBusico commented on issue #851:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/851#issuecomment-1024966366


   **UPDATE**
   I tried (in this order)
   
   - delete apisix pod
   - delete apisix-ingrass-controller
   
   After this operation the apisix-ingress-controller log is:
   ```
   2022-01-30T02:46:25+08:00 info ingress/ingress.go:112 apisix 
ingress controller started
   2022-01-30T02:46:25+08:00 info ingress/ingress.go:114 version:
   Version: 1.3.0
   Git SHA: no-git-module
   Go Version: go1.13.8
   Building OS/Arch: linux/amd64
   Running OS/Arch: linux/amd64
   2022-01-30T02:46:25+08:00 info ingress/ingress.go:120 use 
configuration
   {
   "cert_file": "/etc/webhook/certs/cert.pem",
   "key_file": "/etc/webhook/certs/key.pem",
   "log_level": "info",
   "log_output": "stderr",
   "http_listen": ":8080",
   "https_listen": ":8443",
   "enable_profiling": true,
   "kubernetes": {
   "kubeconfig": "",
   "resync_interval": "6h0m0s",
   "app_namespaces": [
   ""
   ],
   "election_id": "ingress-apisix-leader",
   "ingress_class": "apisix",
   "ingress_version": "networking/v1",
   "watch_endpoint_slices": false,
   "apisix_route_version": "apisix.apache.org/v2beta1"
   },
   "apisix": {
   "default_cluster_name": "default",
   "default_cluster_base_url": 
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin";,
   "default_cluster_admin_key": "edd1c9f034335f136f87ad84b625c8f1",
   "base_url": "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin";,
   "admin_key": "edd1c9f034335f136f87ad84b625c8f1"
   }
   }
   2022-01-30T02:46:25+08:00 warn api/server.go:71 failed to load x509 
key pair, will not start admission server {"Error": "open 
/etc/webhook/certs/cert.pem: no such file or directory", "CertFilePath": 
"/etc/webhook/certs/cert.pem", "KeyFilePath": "/etc/webhook/certs/key.pem"}
   I0130 02:46:25.350705 1 leaderelection.go:243] attempting to acquire leader 
lease apisix/ingress-apisix-leader...
   E0130 02:46:25.350976 1 leaderelection.go:325] error retrieving resource 
lock apisix/ingress-apisix-leader: Get 
https://10.43.0.1:443/apis/coordination.k8s.io/v1/namespaces/apisix/leases/ingress-apisix-leader:
 dial tcp 10.43.0.1:443: connect: connection refused
   [GIN] 2022/01/30 - 02:46:27 | 200 | 152.769µs | 127.0.0.6 | GET "/healthz"
   2022-01-30T02:46:28+08:00 warn ingress/controller.go:328 found a 
new leader apisix-ingress-controller-7d5bbf5dd5-br7gn
   2022-01-30T02:46:28+08:00 info ingress/controller.go:330 controller 
now is running as a candidate {"namespace": "apisix", "pod": 
"apisix-ingress-controller-7d5bbf5dd5-9pcg7"}
   [GIN] 2022/01/30 - 02:46:31 | 200 | 57.63µs | 127.0.0.6 | GET "/healthz"
   [GIN] 2022/01/30 - 02:46:31 | 200 | 27.019µs | 127.0.0.6 | GET "/healthz"
   [GIN] 2022/01/30 - 02:46:41 | 200 | 42.019µs | 127.0.0.6 | GET "/healthz"
   [GIN] 2022/01/30 - 02:46:41 | 200 | 37.6µs | 127.0.0.6 | GET "/healthz"
   2022-01-30T02:46:46+08:00 info ingress/controller.go:290 
LeaderElection {"message": "apisix-ingress-controller-7d5bbf5dd5-9pcg7 became 
leader", "event_type": "Normal"}
   I0130 02:46:46.409605 1 leaderelection.go:253] successfully acquired lease 
apisix/ingress-apisix-leader
   2022-01-30T02:46:46+08:00 warn ingress/controller.go:328 found a 
new leader apisix-ingress-controller-7d5bbf5dd5-9pcg7
   2022-01-30T02:46:46+08:00 info ingress/controller.go:370 controller 
tries to leading ... {"namespace": "apisix", "pod": 
"apisix-ingress-controller-7d5bbf5dd5-9pcg7"}
   2022-01-30T02:46:46+08:00 warn apisix/cluster.go:304 waiting 
cluster default to ready, it may takes a while
   2022-01-30T02:46:46+08:00 info apisix/cluster.go:155 syncing cache 
{"cluster": "default"}
   2022-01-30T02:46:46+08:00 info apisix/cluster.go:344 syncing schema 
{"cluster": "default"}
   2022-01-30T02:46:46+08:00 error apisix/stream_route.go:116 failed 
to list stream_routes: unexpected status code 400; error message: 
{"error_msg":"stream mode is disabled, can not add stream routes"}
   2022-01-30T02:46:46+08:00 error apisix/cluster.go:212 failed to 
list stream_routes in APISIX: unexpected status code 400; error message: 
{"error_msg":"stream mode is disabled, can not add stream routes"}
   ```
   
   Seems that nothing changes
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to