SMALL software engineering22 Deployments - Creating a Deployment https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ Deployment는 Pods, ReplicaSets에 대한 선언적 업데이트를 제공한다. yaml 파일로 선언적으로 pods, rs를 제어할 수 있다는 얘기. Use Case ReplicaSet을 만들 Deployment 생성 새로운 ReplicaSet을 생성하여 이관 이전 Deployment로 롤백 Scale up Deployment 일시 중지. ? 서비스 중지란 얘긴가? rollout에 문제 발생 시 Deployment의 status 이용하기 불필요 ReplicaSets 삭제 Creating a Deployment 3개의 nginx pods 띄우는 Deployment. apiV.. 2021. 2. 10. 서버 기동 후 간단한 health checker function #!/bin/bash WAIT_TIME=60 CHECK_API="/check" # 10초 기다렸다가 check api를 WAIT_TIME 내에서 초마다 체크 check_server() { local t=0 while [ ${t} -lt 10 ]; do sleep 1 echo -n "." ((t++)) done t=0 while [ ${t} -lt ${WAIT_TIME} ]; do sleep 1 echo -n "." local res_code res_code=$(curl -s -o /dev/null -w "%{http_code}" "http://localhost${CHECK_API}") if [ ${res_code} -eq 200 ]; then break fi if [ $? -eq 0 ]; then bre.. 2021. 1. 8. 이전 1 ··· 3 4 5 6 다음