mmumshad / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way on Vagrant on Local Machine. No scripts.
Apache License 2.0
4.7k stars 4.54k forks source link

Am trying to configure kubernetes hardway while setup the etcd cluster. #102

Closed sarath4 closed 2 years ago

sarath4 commented 4 years ago

Am trying to configure kubernetes hardway while setup the etcd cluster. My configuration: [root@kubemaster system]# cat etcd.service [Unit] Description=etcd Documentation=https://github.com/coreos

[Service] ExecStart=/usr/local/bin/etcd --advertise-client-urls=https://192.168.86.128:2379 --cert-file=/etc/etcd/etcd-server.crt --client-cert-auth=true --data-dir=/var/lib/etcd --initial-advertise-peer-urls=https://192.168.86.128:2380 --initial-cluster=master=https://192.168.86.128:2380 --key-file=/etc/etcd/etcd-server.key --listen-client-urls=https://127.0.0.1:2379,https://192.168.86.128:2379 --listen-metrics-urls=http://127.0.0.1:2381 --listen-peer-urls=https://192.168.86.128:2380 --name=kubemaster --peer-cert-file=/etc/etcd/etcd-server.crt --peer-client-cert-auth=true --peer-key-file=/etc/etcd/etcd-server.key --peer-trusted-ca-file=/etc/etcd/ca.crt --snapshot-count=10000 --trusted-ca-file=/etc/etcd/ca.crt

Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target [root@kubemaster system