Skip to content

Commit

Permalink
pass all the etcd servers to API server
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Mar 3, 2024
1 parent 6d1d7df commit 064cd07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/templates/kube-apiserver.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ExecStart=/usr/local/bin/kube-apiserver \
--etcd-cafile=/etc/kubernetes/pki/etcd/ca.crt \
--etcd-certfile=/etc/kubernetes/pki/etcd/kube-apiserver.crt \
--etcd-keyfile=/etc/kubernetes/pki/etcd/kube-apiserver.key \
--etcd-servers=https://localhost:2379 \
--etcd-servers={{ k8s_etcd_servers }} \
--event-ttl=1h \
--encryption-provider-config=/etc/kubernetes/encryption-config.yml \
--kubelet-certificate-authority=/etc/kubernetes/pki/ca.crt \
Expand Down
1 change: 1 addition & 0 deletions vars/etcd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ etcd_privatekey_type: Ed25519
etcd_version: v3.5.12
etcd_checksum: f2ff0cb43ce119f55a85012255609b61c64263baea83aa7c8e6846c0938adca5
etcd_download_url: https://github.com/etcd-io/etcd/releases/download/{{ etcd_version }}/etcd-{{ etcd_version }}-linux-amd64.tar.gz
k8s_etcd_servers: https://192.168.56.2:2379,https://192.168.56.3:2379,https://192.168.56.4:2379

0 comments on commit 064cd07

Please sign in to comment.