데이터 암호화 활성화
EncryptionConfiguration
객체를 생성하여 Kubneretes Secrets 등의 민감한 데이터를 암호화함.kubectl apply
명령어를 사용하여 암호화 설정을 활성화.etcd 설정 업데이트
etcd.yaml
)을 수정하여 암호화 구성을 적용하도록 설정. apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration
resources:
- resources:
- secrets
providers:
- aescbc:
keys:
- name: key1
secret: <BASE 64 ENCODED SECRET>
- identity: {} # REMOVE THIS LINE
cert-file
: 서버 인증서 경로key-file
: 서버 키 파일 경로client-cert-auth
: 클라이언트 인증 활성화trusted-ca-file
: 신뢰할 수 있는 CA 인증서 경로peer-cert-file
, peer-key-file
: etcd 노드 간 안전한 통신을 위한 peer 인증서 및 키 파일 경로etcdctl
을 사용하여 스냅샷 생성:ETCDCTL_API=3 etcdctl snapshot save /path/to/backup.db \
--endpoints=<etcd-server-endpoint> \
--cert=<path-to-cert> \
--key=<path-to-key> \
--cacert=<path-to-ca-cert>