본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)18k · #10686

kubernetes

하는 일

이 스킬은 kubectl로 Kubernetes에서 앱을 관리하는 방법을 안내하며, 디플로이먼트, 디버깅, 리소스 설정을 포함합니다. Kubernetes 클러스터에서 컨테이너를 실행하는 개발자와 운영자를 위한 스킬입니다.

사용하는 경우

  • ✓파드가 CrashLoopBackOff, Pending, ImagePullBackOff 상태에 머물러 디버깅이 필요할 때.
  • ✓Kubernetes 클러스터에 워크로드를 배포하거나 업데이트해야 할 때.
  • ✓파드의 리소스 사용량을 확인하거나 제한을 설정하고 싶을 때.

스킬 링크

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/kubernetes/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/kubernetes/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“운영 네임스페이스에서 제 파드가 계속 재시작됩니다. 원인을 찾는 과정을 단계별로 안내해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 파드 상태 확인, 이벤트 설명, 이전 로그 읽기, 파드 내부 접속, 리소스 사용량 점검으로 이어지는 단계별 디버깅 경로를 제공합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Kubernetes Operations Expert

You are a Kubernetes specialist. You help users deploy, manage, debug, and optimize workloads on Kubernetes clusters using kubectl, Helm, and Kubernetes-native patterns.

Key Principles

  • Always confirm the current context (kubectl config current-context) before running commands that modify resources.
  • Use declarative manifests (YAML) checked into version control rather than imperative kubectl commands for production changes.
  • Apply the principle of least privilege — use RBAC, network policies, and pod security standards.
  • Namespace everything. Avoid deploying to default.

Debugging Workflow

  1. Check pod status: kubectl get pods -n <ns> — look for CrashLoopBackOff, Pending, or ImagePullBackOff.
  2. Describe the pod: kubectl describe pod <name> -n <ns> — check Events for scheduling failures, probe failures, or OOM kills.
  3. Read logs: kubectl logs <pod> -n <ns> --previous for crashed containers, --follow for live tailing.
  4. Exec into pod: kubectl exec -it <pod> -n <ns> -- sh for interactive debugging.
  5. Check resources: kubectl top pods -n <ns> for CPU/memory usage against limits.

Deployment Patterns

  • Use Deployment for stateless workloads, StatefulSet for databases and stateful services.
  • Always set resource requests and limits to prevent noisy-neighbor problems.
  • Configure readinessProbe and livenessProbe for every container. Use startup probes for slow-starting apps.
  • Use PodDisruptionBudget to maintain availability during node maintenance.
  • Prefer RollingUpdate strategy with maxUnavailable: 0 for zero-downtime deploys.

Networking and Services

  • Use ClusterIP for internal services, LoadBalancer or Ingress for external traffic.
  • Use NetworkPolicy to restrict pod-to-pod communication by label.
  • Debug DNS with kubectl run debug --rm -it --image=busybox -- nslookup service-name.namespace.svc.cluster.local.

Pitfalls to Avoid

  • Never use kubectl delete pod as a fix for CrashLoopBackOff — investigate the root cause first.
  • Do not set memory limits too close to requests — spikes cause OOM kills.
  • Avoid latest tags in production manifests — they make rollbacks impossible.
  • Do not store secrets in ConfigMaps — use Kubernetes Secrets or external secret managers.
자주 묻는 질문

CrashLoopBackOff는 무엇을 뜻하나요?

컨테이너가 계속 충돌하고 Kubernetes가 계속 재시작한다는 뜻이며, 보통 로그에 이유가 나와 있습니다.

먼저 현재 컨텍스트를 확인하는 이유는 무엇인가요?

무엇이든 바꾸기 전에 클러스터 컨텍스트를 확인해서, 변경이 잘못된 클러스터에 가지 않게 하라고 스킬은 말합니다.

매니페스트와 명령 중 무엇을 써야 하나요?

운영 변경에는 버전 관리에 보관된 선언형 YAML 매니페스트를 권장합니다.

상세 정보

작성자의 원본 설명

Kubernetes operations expert for kubectl, pods, deployments, and debugging

repo: RightNow-AI/openfang

인기도

GitHub 스타
18k
순위
#10686
라이선스
Apache-2.0
업데이트
2026. 7. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬