[PostgreSQL] Delete Back up File
BackUp File 삭제 Command 7일 기준 command: - /bin/bash - -c - | delete_date=$(date -d "7 day ago" +"%Y-%m-%d_%H:%M:%S") files=$(find /backups -type f) for file in $files; do if [[ $file =~ d...
BackUp File 삭제 Command 7일 기준 command: - /bin/bash - -c - | delete_date=$(date -d "7 day ago" +"%Y-%m-%d_%H:%M:%S") files=$(find /backups -type f) for file in $files; do if [[ $file =~ d...
기본 구조 kubectl wait [리소스 종류] [리소스 이름] --for=[조건] [조건 값] # my-pod 파드가 Ready 상태가 될 때까지 대기할 수 있다. kubectl wait pod my-pod --for=condition=Ready [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option ...
기본 구조 kubectl exec [옵션] [Pod 이름] -- [Container 이름] [명령어] # my-pod 이름의 Pod 내부에서 /app Directory를 조회할 수 있다. kubectl exec my-pod -- ls /app [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option --...
기본 구조 kubectl annotate [리소스 종류] [리소스 이름] [주석 이름]=[주석 값] # my-pod 이름의 Pod에 description="This is my pod" 주석을 추가할 수 있다. kubectl annotate pods my-pod description="This is my pod" [명령어] --help를 입...
기본 구조 kubectl label [리소스 종류] [리소스 이름] [Label 이름]=[Label 값] # my-pod 이름의 Pod에 app=my-app Label을 추가할 수 있다. kubectl label pods my-pod app=my-app [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option ...
서버에서 요청을 처리할 때, 작업이 오래 걸리는 요청에 대해서는 응답을 먼저 보내주고 Background에서 나머지 작업을 수행하도록 한다. 이러한 구조를 위해서 보통은 worker thread를 돌리거나 worker queue 등을 사용하여 다른 쓰레드 또는 프로세스를 통해 Background에서 작업을 수행하도록 한다. Fas...
기본 구조 kubectl edit [리소스 종류] [리소스 이름] # my-deployment 이름의 deployment 리소스의 YAML 구성 파일을 열고 직접 수정할 수 있다. kubectl edit deployment my-deployment 수정한 후에는 파일을 저장하고 종료하면, Kubernetes API 서버에 변경 내용이 자동...
기본 구조 kubectl rollout [하위 명령어] [리소스 종류]/[리소스 이름] # deployment rollout 상태를 확인 kubectl rollout status deployment/my-deploymentmy-deployment [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option ...
기본 구조 Kubernetes API에 정의된 모든 리소스 종류와 해당 리소스의 별칭, 리소스 유형 등의 정보를 출력 kubectl api-resources [명령어] --help를 입력하면 더 다양한 옵션들을 찾을 수 있다. Option --namespaced: 네임스페이스를 사용하는 리소스만 출력...
Windows Git Bash에서 Alias 설정 C:\Program Files\Git\etc\profile.d 경로의 aliases.sh 파일에 아래와 같이 추가 alias mgmt='cp -f $HOME/.kube/config_mgmt $HOME/.kube/config; kubectl get node -o wide' alias pro...