소스 정보
- 저장소
- navikt/copilot
- 최근 소스 활동
- 2026년 5월 27일 12:36
- 감지된 SKILL.md 언어
- 영어
- 스타
- 54
- 포크
- 13
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/navikt/copilot --skill nais명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | nais |
| description | Nais-deployment, GCP-ressurser, pod-lifecycle og feilsøking på plattformen |
| license | MIT |
| compatibility | Application deployed on Nais (Kubernetes on GCP) |
| metadata | {"domain":"platform","tags":"nais kubernetes gcp deployment infrastructure troubleshooting"} |
Patterns and procedures for deploying, configuring, and troubleshooting applications on Nais (Kubernetes on GCP).
# Check pod status
kubectl get pods -n <namespace> -l app=<app-name>
# View pod logs
kubectl logs -n <namespace> -l app=<app-name> --tail=100
# Describe pod (events, errors)
kubectl describe pod -n <namespace> <pod-name>
# View Nais app status
kubectl get app -n <namespace> <app-name> -o yaml
# Restart deployment (rolling)
kubectl rollout restart deployment/<app-name> -n <namespace>
# Port-forward for local debugging
kubectl port-forward -n <namespace> svc/<app-name> 8080:80
Every Nais application requires:
apiVersion: nais.io/v1alpha1
kind: Application
metadata:
name: app-name
namespace: team-namespace
labels:
team: team-namespace
spec:
image: {{ image }} # Replaced by CI/CD
port: 8080
# Observability (required)
prometheus:
enabled: true
path: /metrics
# Health checks (required)
liveness:
path: /isalive
initialDelay: 5
readiness:
path: /isready
initialDelay: 5
# Resources (required)
resources:
requests:
cpu: 50m
memory: 256Mi
limits:
memory: 512Mi
When Kubernetes terminates a pod on NAIS:
sleep 5 — gives LB time to stop routing new trafficterminationGracePeriodSeconds (default 30s): SIGKILLKey insight: Readiness probes are NOT involved in shutdown. Your app just needs to handle SIGTERM, finish in-flight requests, and exit cleanly.
Common anti-patterns:
false on SIGTERM — unnecessaryterminationGracePeriodSeconds too low — must be > 5s (preStop) + drain timepreStop hook with extra sleep — NAIS already injects sleep 5gcp:
sqlInstances:
- type: POSTGRES_15
databases:
- name: myapp-db
envVarPrefix: DB
Application receives: DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD
kafka:
pool: nav-dev # or nav-prod
azure:
application:
enabled: true
tenant: nav.no
tokenx:
enabled: true
accessPolicy:
inbound:
rules:
- application: calling-app
namespace: calling-namespace
outbound:
rules:
- application: downstream-app
namespace: downstream-namespace
ingresses:
- https://myapp.intern.dev.nav.no # Internal dev
- https://myapp.dev.nav.no # External dev
replicas:
min: 2
max: 4
cpuThresholdPercentage: 80
| Size | CPU request | Memory request | Memory limit |
|---|---|---|---|
| Small | 50m | 256Mi | 512Mi |
| Medium | 100m | 512Mi | 1Gi |
| Large | 200m | 1Gi | 2Gi |
Never set CPU limits — causes throttling. Use requests only.
kubectl logs -n namespace pod-namekubectl describe pod -n namespace pod-namekafka.pool is correct (nav-dev/nav-prod).nais/app.yaml manifest/isalive, /isready, /metrics).nais/app-prod.yaml)accessPolicy defaults to deny-all — you must explicitly allow trafficpreStop: sleep 5 — don't add your own{{ image }} in manifest is replaced by CI/CD — don't hardcode imagesapp-dev.yaml, app-prod.yaml) are the normaccessPolicy for network traffickubectl get app <name> -o yaml to verify deploymentaccessPolicy)