Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ubuntu@controller-1:~$ ps -efl | grep kube-apiserver
4 S root 1797 1 12 80 0 - 141067 - 03:00 ? 00:03:27 /usr/local/bin/kube-apiserver --advertise-address=10.10.0.11 --allow-privileged=true --apiserver-count=3 --audit-log-maxage=30 --audit-log-maxbackup=3 --audit-log-maxsize=100 --audit-log-path=/var/log/audit.log --authorization-mode=Node,RBAC --bind-address=0.0.0.0 --client-ca-file=/var/lib/kubernetes/ca.pem --enable-admission-plugins=NamespaceLifecycle,NodeRestriction,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota --etcd-cafile=/var/lib/kubernetes/ca.pem --etcd-certfile=/var/lib/kubernetes/kubernetes.pem --etcd-keyfile=/var/lib/kubernetes/kubernetes-key.pem --etcd-servers=https://10.10.0.10:2379,https://10.10.0.11:2379,https://10.10.0.12:2379 \
0 S ubuntu 4479 4403 0 80 0 - 1608 pipe_w 03:28 pts/0 00:00:00 grep --color=auto kube-apiserver
ubuntu@controller-1:~$ sudo vi /etc/systemd/system/kube-apiserver.service
ubuntu@controller-1:~$ sudo systemctl daemon-reload
ubuntu@controller-1:~$ sudo systemctl restart kube-apiserver
ubuntu@controller-1:~$ ps -efl | grep kube-apiserver
4 S root 4568 1 73 80 0 - 141467 - 03:32 ? 00:00:07 /usr/local/bin/kube-apiserver --advertise-address=10.10.0.11 --allow-privileged=true --apiserver-count=3 --audit-log-maxage=30 --audit-log-maxbackup=3 --audit-log-maxsize=100 --audit-log-path=/var/log/audit.log --authorization-mode=Node,RBAC --bind-address=0.0.0.0 --client-ca-file=/var/lib/kubernetes/ca.pem --enable-admission-plugins=NamespaceLifecycle,NodeRestriction,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota --etcd-cafile=/var/lib/kubernetes/ca.pem --etcd-certfile=/var/lib/kubernetes/kubernetes.pem --etcd-keyfile=/var/lib/kubernetes/kubernetes-key.pem --etcd-servers=https://10.10.0.10:2379,https://10.10.0.11:2379,https://10.10.0.12:2379 --event-ttl=1h --encryption-provider-config=/var/lib/kubernetes/encryption-config.yaml --kubelet-certificate-authority=/var/lib/kubernetes/ca.pem --kubelet-client-certificate=/var/lib/kubernetes/kubernetes.pem --kubelet-client-key=/var/lib/kubernetes/kubernetes-key.pem --kubelet-https=true --runtime-config=api/all=true --service-account-key-file=/var/lib/kubernetes/service-account.pem --service-cluster-ip-range=10.50.0.0/24 --service-node-port-range=30000-32767 --tls-cert-file=/var/lib/kubernetes/kubernetes.pem --tls-private-key-file=/var/lib/kubernetes/kubernetes-key.pem --v=2
0 S ubuntu 4592 4403 0 80 0 - 1608 pipe_w 03:33 pts/0 00:00:00 grep --color=auto kube-apiserver
ubuntu@controller-1:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment