[kubernetes]etcd backup&restore
ETCDCTL INSTALLetcd backup과 restore를 위해선 etcdctl 툴이 필요하다.apt로 설치할 수 없으니 github or google storage 에서 다운로드 받와야한다. etcdctl을 다운로드 받는 Shell script를 만들었다.#!/bin/bashETCD_VER=v3.5.13# choose either URLGOOGLE_URL=https://storage.googleapis.com/etcdGITHUB_URL=https://github.com/etcd-io/etcd/releases/downloadDOWNLOAD_URL=${GOOGLE_URL}curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz ..
개발/Kubernetes
2024. 5. 4. 19:18