canonical / k8s-snap

Canonical Kubernetes is an opinionated and CNCF conformant Kubernetes operated by Snaps and Charms, which come together to bring simplified operations and an enhanced security posture on any infrastructure.
GNU General Public License v3.0
39 stars 11 forks source link

doc: Wrong parameters for the external etcd datastore bootstrap configuration #553

Closed eleblebici closed 3 days ago

eleblebici commented 1 month ago

I bootstrapped the cluster by using the below configuration file:

datastore-type: "external"
datastore-servers: 
  - 'https://127.0.0.1:2379'
datastore-ca-crt: |
  <etcd-root-ca-certificate>
datastore-client-crt: |
  <etcd-client-certificate>
datastore-client-key: |
  <etcd-client-key>

So, "datastore-type" should be used instead of "datastore", and "datastore-servers" should be used instead of "datastore-url". Also, for "datastore-servers" an array is expected. So, we should use like below:

 datastore-servers: 
  - 'https://127.0.0.1:2379'

Instead of; datastore-servers: 'https://127.0.0.1:2379'


Document: snap/howto/external-datastore.md

evilnick commented 1 month ago

Thanks for reporting this - it seems the correct set of docs were reverted as part of a larger change. Once I have dug into it I will update them to a verified example again and update here.