kubernetes-orchestration

Original🇺🇸 English
Translated

Master Kubernetes with pods, deployments, services, ingress, ConfigMaps, secrets, and production cluster management.

2installs
Added on

NPX Install

npx skill4agent add spjoshis/claude-code-plugins kubernetes-orchestration

Kubernetes Orchestration

Deploy and manage containerized applications at scale with Kubernetes orchestration, services, and production patterns.

Core Resources

Deployment

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
  labels:
    app: myapp
spec:
  replicas: 3
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: myapp
        image: myapp:1.0.0
        ports:
        - containerPort: 3000
        env:
        - name: DATABASE_URL
          valueFrom:
            secretKeyRef:
              name: myapp-secrets
              key: database-url
        resources:
          requests:
            memory: "128Mi"
            cpu: "100m"
          limits:
            memory: "256Mi"
            cpu: "200m"
        livenessProbe:
          httpGet:
            path: /health
            port: 3000
          initialDelaySeconds: 30
          periodSeconds: 10

Service

yaml
apiVersion: v1
kind: Service
metadata:
  name: myapp-service
spec:
  selector:
    app: myapp
  ports:
  - protocol: TCP
    port: 80
    targetPort: 3000
  type: LoadBalancer

Ingress

yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: myapp-ingress
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
  tls:
  - hosts:
    - myapp.example.com
    secretName: myapp-tls
  rules:
  - host: myapp.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: myapp-service
            port:
              number: 80

ConfigMap

yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: myapp-config
data:
  app.env: production
  log.level: info

Best Practices

  1. Use namespaces for organization
  2. Implement resource limits
  3. Use liveness and readiness probes
  4. Manage secrets properly
  5. Use StatefulSets for stateful apps
  6. Implement network policies
  7. Use Helm for packaging
  8. Monitor with Prometheus

Resources