yangfanLu opened a new issue, #604:
URL: https://github.com/apache/apisix-helm-chart/issues/604

   `2023-09-05T17:54:22+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T17:54:22+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T17:54:24+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T17:54:24+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   [GIN] 2023/09/05 - 17:54:26 | 200 |      60.437µs |      10.244.2.1 | GET    
  "/healthz"
   2023-09-05T17:54:26+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T17:54:26+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T17:54:28+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T17:54:28+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T17:54:30+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T17:54:30+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T17:54:30+08:00       error   apisix/cluster.go:168   failed to 
sync cache    {"cost_time": "8.145656148s", "cluster": "default"}
   2023-09-05T17:54:30+08:00       error   ingress/controller.go:436       
failed to wait the default cluster to be ready: unexpected end of JSON input`
   
   helm install apisix,use self-built etcd cluster and etcd work normally。
   install command:helm install apisix /root/apisix-0.9.1.tgz -f 
installApisix.yaml -n apisix-helm
   - apisix-0.9.1.tgz is download from github 
https://github.com/apache/apisix-helm-chart/releases/tag/apisix-0.9.1
   - installApisix.yaml as follows:
   `apisix:
     enabled: true
     admin_key:
       - name: "admin"
         key: edd1c9f034335f136f87ad84b625c8f1
         role: admin
     allow_admin:
       - 0.0.0.0/0
     ssl:
       listen_port: 443 
       ssl_trusted_certificate: /opt/kubernetes/tecentSsl/ca.pem  # trusted ca 
root certificate
     nodeSelector:
       kubernetes.io/hostname: node01
   gateway:
     type: NodePort
     externalTrafficPolicy: Cluster
     http:
       enabled: true
       servicePort: 80
       containerPort: 9080
     tls:
       enabled: true
       existingCASecret: tecent-etcd-ca  #secret created by ca root certificate
       certCAFilename: ca.crt
   dashboard:
     enabled: false
   etcd:
     enabled: false
     host:
       - "https://10.71.24.32:2379/";
     prefix: "/apisix"
     timeout: 30
     auth:
       tls:
         enabled: true
         existingSecret: tecent-etcd   #secret created by etcd certificate and 
private key
         certFilename: tls.crt
         certKeyFilename: tls.key
         verify: true
         sni: "etcd-g81n0usd-etcd.etcd-g81n0usd.svc.cluster.local"
   ingress-controller:
     enabled: true
     config:
       apisix:
         adminAPIVersion: "v2"
         serviceNamespace: "apisix-helm"`
   
   installed successfully,apisix and apisix-ingress-controller pods are 
running,work normally,but use kubectl logs to see apisix-ingress-controller pod 
log,errors appear:
   `2023-09-05T16:27:13+08:00       info    ingress/controller.go:372       
controller now is running as a candidate        {"namespace": "apisix-helm", 
"pod": "apisix-ingress-controller-68f4b87cf-b5m2d"}
   I0905 16:27:13.078556       1 leaderelection.go:248] attempting to acquire 
leader lease apisix-helm/ingress-apisix-leader...
   2023-09-05T16:27:13+08:00       info    ingress/controller.go:320       
LeaderElection  {"message": "apisix-ingress-controller-68f4b87cf-b5m2d became 
leader", "event_type": "Normal"}
   I0905 16:27:13.082700       1 leaderelection.go:258] successfully acquired 
lease apisix-helm/ingress-apisix-leader
   2023-09-05T16:27:13+08:00       info    ingress/controller.go:409       
controller tries to leading ... {"namespace": "apisix-helm", "pod": 
"apisix-ingress-controller-68f4b87cf-b5m2d"}
   2023-09-05T16:27:13+08:00       warn    apisix/cluster.go:330   waiting 
cluster default to ready, it may takes a while
   2023-09-05T16:27:13+08:00       info    apisix/cluster.go:370   syncing 
schema  {"cluster": "default"}
   2023-09-05T16:27:13+08:00       info    apisix/cluster.go:158   syncing 
cache   {"cluster": "default"}
   2023-09-05T16:27:13+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T16:27:13+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T16:27:15+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T16:27:15+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T16:27:17+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T16:27:17+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   [GIN] 2023/09/05 - 16:27:17 | 200 |      45.091µs |      10.244.2.1 | GET    
  "/healthz"
   [GIN] 2023/09/05 - 16:27:18 | 200 |      45.341µs |      10.244.2.1 | GET    
  "/healthz"
   2023-09-05T16:27:19+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T16:27:19+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T16:27:21+08:00       error   apisix/ssl.go:122       failed to 
convert ssl item      {"url": 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/ssl";, 
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
   2023-09-05T16:27:21+08:00       error   apisix/cluster.go:218   failed to 
list ssl in APISIX: unexpected end of JSON input
   2023-09-05T16:27:21+08:00       error   apisix/cluster.go:168   failed to 
sync cache    {"cost_time": "8.172161751s", "cluster": "default"}
   2023-09-05T16:27:21+08:00       error   ingress/controller.go:436       
failed to wait the default cluster to be ready: unexpected end of JSON input
   2023-09-05T16:27:21+08:00       info    apisix/cluster.go:158   syncing 
cache   {"cluster": "default"}
   2023-09-05T16:27:21+08:00       error   apisix/route.go:119     failed to 
list routes: Get 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/routes": 
context canceled
   2023-09-05T16:27:21+08:00       error   apisix/cluster.go:208   failed to 
list routes in APISIX: Get 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/routes": 
context canceled
   2023-09-05T16:27:21+08:00       error   apisix/cluster.go:168   failed to 
sync cache    {"cost_time": "37.128µs", "cluster": "default"}
   2023-09-05T16:27:21+08:00       info    apisix/cluster.go:370   syncing 
schema  {"cluster": "default"}
   2023-09-05T16:27:21+08:00       error   apisix/plugin.go:46     failed to 
list plugins' names: Get 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/plugins/list":
 context canceled
   2023-09-05T16:27:21+08:00       error   apisix/cluster.go:390   failed to 
list plugin names in APISIX: Get 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/plugins/list":
 context canceled
   2023-09-05T16:27:21+08:00       error   apisix/cluster.go:353   failed to 
sync schema: Get 
"http://apisix-admin.apisix-helm.svc.cluster.local:9180/apisix/admin/plugins/list":
 context canceled`
   
   
![image](https://github.com/apache/apisix-helm-chart/assets/48401434/75f7edab-2763-4e81-9188-3d82cf724c64)
   add tls certificate,high version apisix path is /apisix/ssls,low version 
apisix is /apisix/ssl,does this have anything to do with the problem?
   
   env are as follows:
   apisix version:2.13.1
   apisix-ingress-controller version:1.4.0
   
![image](https://github.com/apache/apisix-helm-chart/assets/48401434/7581dbec-5e22-4b72-8f42-3527a49772da)
   
   Does anyone know if there is a problem with the configuration? thanks!
   
   
   


-- 
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