ajistyle opened a new issue #173:
URL: https://github.com/apache/apisix-helm-chart/issues/173


   1.外部etcd https访问方式
   ETCDCTL_API=3 etcdctl \
     --endpoints=http://192.168.2.202:2379  \
     --cacert=/etc/kubernetes/ca/ca.pem \
     --cert=/etc/kubernetes/ca/etcd/etcd.pem \
     --key=/etc/kubernetes/ca/etcd/etcd-key.pem \
     endpoint health
   
   2. 创建 secret
   kubectl create secret tls etcd-ssl-s -n ops \
       --cert=/etc/kubernetes/ca/etcd/etcd.pem \
       --key=/etc/kubernetes/ca/etcd/etcd-key.pem \
       --dry-run -o yaml > etcd-ssl-s.yaml
   
   3. helm安装apisix
   helm install apisix apisix-072/ --namespace ops \
       --set etcd.enabled=false \
       --set etcd.host={https://192.168.2.202:2379} \
       --set etcd.auth.tls.enabled=true \
       --set etcd.auth.tls.existingSecret=etcd-ssl-s \
       --set etcd.auth.tls.certFilename=etcd.pem \
       --set etcd.auth.tls.certKeyFilename=etcd-key.pem 
   
   报错:
   usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init
   
   WARNING: using fixed Admin API token has security risk.
   Please modify "admin_key" in conf/config.yaml .
   
   
   /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
   Warning! Request etcd endpoint 'https://192.168.2.202:2379/version' error, 
error loading private key (No such file or directory), retry time=1
   request etcd endpoint 'https://192.168.2.202:2379/version' error, error 
loading private key (system lib)
   Warning! Request etcd endpoint 'https://192.168.2.202:2379/version' error, 
error loading private key (system lib), retry time=2


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