Closed zhangsimingshannonai closed 5 years ago
Finally got the reason, See:https://github.com/coreos/etcd-operator/blob/aeb3e3e0835ec5135cfe50340f59853b5b6fc407/pkg/apis/etcd/v1beta2/backup_types.go#L74-L80
In the secret, data name must set to:
// data:
// "etcd-client.crt": <pem-encoded-cert>
// "etcd-client.key": <pem-encoded-key>
// "etcd-client-ca.crt": <pem-encoded-ca-cert>
And the order must be same as above... I'm going to close the issue.
What I use: Ubuntu 18.04 etcd-operator 0.9.4
The requests: I want to user etcd-operator's backup crd to backup my external etcd. my kubernetes's etcd is started in docker(not a pod, started by "docker run" and as a external docker against kubernetes).
The ERROR: I already have etcd-operator-backup pod running in my k8s cluster.
Now, I create a backup.yaml to trigger the backup, here is my backup.yml:
Then, I run:
my secret's name is "etcd", and create by:
look into the secret and check:
check the secret:
The Question: It seem that the problem is cannot find cert in my secret, but everything I check is absolutely right, did I miss something? I'm trying to use tls to connect to my external etcd. Hope for any reply!