본문으로 건너뛰기

Kubespray etcd 설정

etcd 변수

  • inventory
    • group_vars
      • all
        • etcd_deployment_type: host
  • etcd role
    • etcd_config_dir: /etc/ssl/etcd
    • etcd_cert_dir: "{{ etcd_config_dir }}/ssl"

etcdctl

Kubespray로 설치하면 인증서 옵션이 미리 설정된 etcdctl.sh라는 명령어가 생성됩니다.

etcdctl.sh get [<flag>] <key>
  • <flag>
    • --prefix: prefix 매칭
    • --keys-only: 키만 출력
    • --endpoints=<host>:<port>
etcdctl.sh del [<flag>] <key>