본문으로 건너뛰기
cccskills
무료GitHub에 공개

service-spec

Skill for service-spec tasks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Kubernetes
설치 방법 보기

포함된 파일(1)

  • SKILL.md3.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Or with Endpoints for IP-based external service

apiVersion: v1 kind: Service metadata: name: external-api spec: ports: - port: 443 targetPort: 443 protocol: TCP

apiVersion: v1 kind: Endpoints metadata: name: external-api subsets:

  • addresses:
    • ip: 203.0.113.100 ports:
    • port: 443

### Pattern 5: Multi-Port Service with Metrics

```yaml
apiVersion: v1
kind: Service
metadata:
  name: web-app
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "9090"
    prometheus.io/path: "/metrics"
spec:
  type: ClusterIP
  selector:
    app: web-app
  ports:
    - name: http
      port: 80
      targetPort: 8080
    - name: metrics
      port: 9090
      targetPort: 9090

Network Policies

Control traffic to services:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-frontend-to-backend
spec:
  podSelector:
    matchLabels:
      app: backend
  policyTypes:
    - Ingress
  ingress:
    - from:
        - podSelector:
            matchLabels:
              app: frontend
      ports:
        - protocol: TCP
          port: 8080

Best Practices

Service Configuration

  1. Use named ports for flexibility
  2. Set appropriate service type based on exposure needs
  3. Use labels and selectors consistently across Deployments and Services
  4. Configure session affinity for stateful apps
  5. Set external traffic policy to Local for IP preservation
  6. Use headless services for StatefulSets
  7. Implement network policies for security
  8. Add monitoring annotations for observability

Production Checklist

  • Service type appropriate for use case
  • Selector matches pod labels
  • Named ports used for clarity
  • Session affinity configured if needed
  • Traffic policy set appropriately
  • Load balancer annotations configured (if applicable)
  • Source IP ranges restricted (for public services)
  • Health check configuration validated
  • Monitoring annotations added
  • Network policies defined

Performance Tuning

For high traffic:

spec:
  externalTrafficPolicy: Local
  sessionAffinity: ClientIP
  sessionAffinityConfig:
    clientIP:
      timeoutSeconds: 3600

For WebSocket/long connections:

spec:
  sessionAffinity: ClientIP
  sessionAffinityConfig:
    clientIP:
      timeoutSeconds: 86400 # 24 hours

Troubleshooting

Service not accessible

# Check service exists
kubectl get service <service-name>

# Check endpoints (should show pod IPs)
kubectl get endpoints <service-name>

# Describe service
kubectl describe service <service-name>

# Check if pods match selector
kubectl get pods -l app=<app-name>

Common issues:

  • Selector doesn't match pod labels
  • No pods running (endpoints empty)
  • Ports misconfigured
  • Network policy blocking traffic

DNS resolution failing

# Test DNS from pod
kubectl run debug --rm -it --image=busybox -- nslookup <service-name>

# Check CoreDNS
kubectl get pods -n kube-system -l k8s-app=kube-dns
kubectl logs -n kube-system -l k8s-app=kube-dns

Load balancer issues

# Check load balancer status
kubectl describe service <service-name>

# Check events
kubectl get events --sort-by='.lastTimestamp'

# Verify cloud provider configuration
kubectl describe node

Related Resources

Output Format

<result>
  <analysis>Brief analysis</analysis>
  <solution>Implementation</solution>
  <considerations>Trade-offs and notes</considerations>
</result>

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Audit UI code for WCAG compliance

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itsimonfredlingjack/codex-dev-plugin22026년 2월 5일 업데이트

Expert accessibility specialist ensuring WCAG compliance, inclusive design, and assistive technology compatibility. Masters screen reader optimization, keyboard navigation, and a11y testing methodologies. Use PROACTIVELY when auditing accessibility, remediating a11y issues, building accessible components, or ensuring inclusive user experiences.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itsimonfredlingjack/codex-dev-plugin22026년 2월 5일 업데이트

Skill for accessibility-patterns tasks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itsimonfredlingjack/codex-dev-plugin22026년 2월 5일 업데이트

Build AI assistant application with NLU, dialog management, and integrations

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itsimonfredlingjack/codex-dev-plugin22026년 2월 5일 업데이트

Build production-ready LLM applications, advanced RAG systems, and intelligent agents. Implements vector search, multimodal AI, agent orchestration, and enterprise AI integrations. Use PROACTIVELY for LLM features, chatbots, AI agents, or AI-powered applications.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itsimonfredlingjack/codex-dev-plugin22026년 2월 5일 업데이트

ai-review

무료

You are an expert AI-powered code review specialist combining automated static analysis, intelligent pattern recognition, and modern DevOps practices. Leverage AI tools (GitHub Copilot, Qodo, GPT-5, Claude 4.5 Sonnet) with battle-tested platforms (SonarQube, CodeQL, Semgrep) to identify bugs, vulnerabilities, and performance issues.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itsimonfredlingjack/codex-dev-plugin22026년 2월 5일 업데이트

itsimonfredlingjack의 스킬 모두 보기

이 스킬의 문제 신고