journalctl -u etcd.service
kubectl logs etcd-master
[kube-apiserver.yaml]
- command:
- kube-apiserver
- --advertise-address=172.17.0.10
- --client-ca-file=/etc/kubernetes/pki/ca.crt
- --etcd-cafile=/etc/kubernetes/pki/etcd/ca.crt
- --etcd-certfile=/etc/kubernetes/pki/apiserver-etcd-client.crt
- --etcd-keyfile=/etc/kubernetes/pki/apiserver-etcd-client.key
- --etcd-servers=https://127.0.0.1:2379
- --kubelet-client-certificate=/etc/kubernetes/pki/apiserver-kubelet-client.crt
- --kubelet-client-key=/etc/kubernetes/pki/apiserver-kubelet-client.key
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --proxy-client-cert-file=/etc/kubernetes/pki/front-proxy-client.crt
- --proxy-client-key-file=/etc/kubernetes/pki/front-proxy-client.key
- --requestheader-allowed-names=front-proxy-client
- --requestheader-client-ca-file=/etc/kubernetes/pki/front-proxy-ca.crt
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --requestheader-group-headers=X-Remote-Group
- --requestheader-username-headers=X-Remote-User
- --secure-port=6443
- --service-account-key-file=/etc/kubernetes/pki/sa.pub
- --service-cluster-ip-range=10.96.0.0/12
- --tls-cert-file=/etc/kubernetes/pki/apiserver.crt
- --tls-private-key-file=/etc/kubernetes/pki/apiserver.key
- ca.crt, ca.key - Kubernetes Certificate Authority
- apiserver.crt, apiserver.key - API 서버 인증서
- apiserver-kubelet-client.crt, apiserver-kubelet-client.key API 서버가 kubelet에 안전하게 연결하는데 사용하는 클라이언트 인증서
- sa.pub, sa.key - ServiceAccount에 서명할 때 Controller Manager가 사용하는 Key
ㅁ kube-api-server certificate file
--tls-cert-file=/etc/kubernetes/pki/apiserver.crt
ㅁ the Certificate file used to authenticate kube-apiserver as a client to ETCD Server (kube-apiserver를 ETCD 서버에 대한 클라이언트로 인증하는 데 사용되는 인증서 파일)
--etcd-certfile=/etc/kubernetes/pki/apiserver-etcd-client.crt
ㅁ The key used to authenticate kubeapi-server to the kubelet server
-- kubelet-client-key=/etc/kubernetes/pki/apiserver-kubelet-client.key
'CKA &. CKAD > Security' 카테고리의 다른 글
Network Policy (0) | 2021.03.30 |
---|---|
Practice Test - Security Contexts (0) | 2021.03.30 |
Practice Test - Securing Image (0) | 2021.03.30 |
Cluster Roles (0) | 2021.03.29 |
RBAC (Role Based Access Controls) and Practice Test (0) | 2021.03.29 |