본문 바로가기

쿠버네티스2

[쿠버네티스/k8s] 크론잡(cron job) 작업 실행되지 않는 문제 해결 - Cannot determine if job needs to be started: too many missed start time (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew 문제 상황 크론잡 스케쥴이 되었지만 더이상 작업이 실행되지 않음 크론잡 이벤트 메세지중 cronjob-controller 에 의해 발생된 Cannot determine if job needs to be started: too many missed start time (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew 라는 메세지 확인 문제 발생 이유 이전에 크론잡이 스케쥴에 맞춰 잡을 생성하고, 해당 잡에 의해 파드가 관리됨 파드에서 실행 된 애플리케이션에 이슈로 인해 작업이 종료되지 않아서 파드가 계속 실행 상태로 남아있었음 해당 크론잡에는 concurrencyPolicy: Forbid 설정이 되어있었음 위 설정으로 인해.. 2023. 3. 27.
[쿠버네티스/k8s] 기본 실습 명령어 - 개발하는 지토 k8s 공통 kubectl apply -f {yaml-name}: yaml 파일 k8s 에 적용(생성) kubectl config get-contexts: 컨텍스트 조회 kubectl config use-context {cluster-name}: 컨텍스트 변경 kubectl delete deployment,pod,rs --all: 모든 리소스 삭제 Pod kubectl get pods: pod 확인 kubectl describe pods {podname}: pod 상세 정보 kubectl exec -it {pod-name} bash : pod 쉘 접속 kubectl logs {pod-name} : pod 로그 확인 kubectl get pods --show-labels: pod 의 라벨까지 확인 kube.. 2022. 8. 1.