[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CXPY7W98GWFQ9V2844M356":3,"skill-same:01M6CXPY7W98GWFQ9V2844M356":197},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6CXPY7W98GWFQ9V2844M356","kubernetes",null,"Kubernetes orchestration for container deployment, scaling, and management","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fsystems-administration\u002Fkubernetes\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[5,23,24,25,26,27,28,29],"orchestration","deployment","management","devops","container","opencode","scaling","2026-11-10 10:12:30",false,"---\nname: kubernetes\ndescription: Kubernetes orchestration for container deployment, scaling, and management\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: devops-engineers\n  category: systems-administration\n---\n\n## What I do\n- Create Kubernetes manifests and Helm charts\n- Deploy and manage applications on Kubernetes\n- Configure pods, deployments, and services\n- Implement networking policies and ingress\n- Manage secrets and configmaps\n- Set up horizontal pod autoscaling\n- Configure persistent storage\n- Implement RBAC and security policies\n- Perform rolling updates and rollbacks\n- Debug and troubleshoot cluster issues\n\n## When to use me\nWhen deploying applications to Kubernetes clusters, creating deployment manifests, or managing Kubernetes resources.\n\n## Core Concepts\n- Pods, Deployments, StatefulSets, DaemonSets\n- Services (ClusterIP, NodePort, LoadBalancer, Ingress)\n- ConfigMaps and Secrets\n- PersistentVolumes and PersistentVolumeClaims\n- Horizontal Pod Autoscaler (HPA)\n- Network Policies\n- RBAC and ServiceAccounts\n- Helm package management\n- Operators and Custom Resource Definitions\n- Kubernetes networking (CNI, Service mesh)\n\n## Code Examples\n\n### Kubernetes Manifests\n```yaml\n# deployment.yaml\napiVersion: apps\u002Fv1\nkind: Deployment\nmetadata:\n  name: api-server\n  labels:\n    app: api-server\n    version: v1\n    tier: backend\nspec:\n  replicas: 3\n  revisionHistoryLimit: 5\n  selector:\n    matchLabels:\n      app: api-server\n  strategy:\n    type: RollingUpdate\n    rollingUpdate:\n      maxSurge: 25%\n      maxUnavailable: 0\n  template:\n    metadata:\n      labels:\n        app: api-server\n        version: v1\n        tier: backend\n      annotations:\n        prometheus.io\u002Fscrape: \"true\"\n        prometheus.io\u002Fport: \"8080\"\n    spec:\n      serviceAccountName: api-server\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 1000\n        fsGroup: 1000\n      containers:\n        - name: api-server\n          image: registry.example.com\u002Fapi-server:v1.2.3\n          imagePullPolicy: IfNotPresent\n          ports:\n            - name: http\n              containerPort: 8080\n              protocol: TCP\n            - name: grpc\n              containerPort: 9090\n              protocol: TCP\n          envFrom:\n            - configMapRef:\n                name: api-config\n            - secretRef:\n                name: api-secrets\n          env:\n            - name: POD_NAME\n              valueFrom:\n                fieldRef:\n                  fieldPath: metadata.name\n            - name: NODE_NAME\n              valueFrom:\n                fieldRef:\n                  fieldPath: spec.nodeName\n          resources:\n            requests:\n              cpu: 100m\n              memory: 128Mi\n              ephemeral-storage: 100Mi\n            limits:\n              cpu: 500m\n              memory: 512Mi\n              ephemeral-storage: 500Mi\n          livenessProbe:\n            httpGet:\n              path: \u002Fhealth\u002Flive\n              port: http\n            initialDelaySeconds: 10\n            periodSeconds: 10\n            timeoutSeconds: 3\n            failureThreshold: 3\n          readinessProbe:\n            httpGet:\n              path: \u002Fhealth\u002Fready\n              port: http\n            initialDelaySeconds: 5\n            periodSeconds: 5\n            timeoutSeconds: 3\n            failureThreshold: 3\n          startupProbe:\n            httpGet:\n              path: \u002Fhealth\u002Fstartup\n              port: http\n            failureThreshold: 30\n            periodSeconds: 10\n          volumeMounts:\n            - name: tmp\n              mountPath: \u002Ftmp\n            - name: config\n              mountPath: \u002Fetc\u002Fapp\u002Fconfig\n              readOnly: true\n      volumes:\n        - name: tmp\n          emptyDir: {}\n        - name: config\n          configMap:\n            name: api-config\n      affinity:\n        podAntiAffinity:\n          preferredDuringSchedulingIgnoredDuringExecution:\n            - weight: 100\n              podAffinityTerm:\n                labelSelector:\n                  matchLabels:\n                    app: api-server\n                topologyKey: kubernetes.io\u002Fhostname\n      topologySpreadConstraints:\n        - maxSkew: 1\n          topologyKey: topology.kubernetes.io\u002Fzone\n          whenUnsatisfiable: ScheduleAnyway\n          labelSelector:\n            matchLabels:\n              app: api-server\n```\n\n```yaml\n# service.yaml\napiVersion: v1\nkind: Service\nmetadata:\n  name: api-server\n  labels:\n    app: api-server\nspec:\n  type: ClusterIP\n  selector:\n    app: api-server\n  ports:\n    - name: http\n      port: 80\n      targetPort: http\n      protocol: TCP\n    - name: grpc\n      port: 9090\n      targetPort: grpc\n      protocol: TCP\n  sessionAffinity: ClientIP\n  sessionAffinityConfig:\n    clientIP:\n      timeoutSeconds: 3600\n```\n\n```yaml\n# ingress.yaml\napiVersion: networking.k8s.io\u002Fv1\nkind: Ingress\nmetadata:\n  name: api-ingress\n  annotations:\n    nginx.ingress.kubernetes.io\u002Fssl-redirect: \"true\"\n    nginx.ingress.kubernetes.io\u002Fproxy-body-size: \"10m\"\n    nginx.ingress.kubernetes.io\u002Fproxy-read-timeout: \"300\"\n    nginx.ingress.kubernetes.io\u002Fproxy-send-timeout: \"300\"\n    nginx.ingress.kubernetes.io\u002Fproxy-connect-timeout: \"60\"\n    nginx.ingress.kubernetes.io\u002Flimit-rps: \"100\"\n    nginx.ingress.kubernetes.io\u002Flimit-connections: \"50\"\n    cert-manager.io\u002Fcluster-issuer: letsencrypt-prod\nspec:\n  ingressClassName: nginx\n  tls:\n    - hosts:\n        - api.example.com\n      secretName: api-tls\n  rules:\n    - host: api.example.com\n      http:\n        paths:\n          - path: \u002Fapi\u002Fv1\n            pathType: Prefix\n            backend:\n              service:\n                name: api-server\n                port:\n                  number: 80\n```\n\n### Helm Chart Structure\n```yaml\n# Chart.yaml\napiVersion: v2\nname: api-server\ndescription: A Helm chart for API Server deployment\nversion: 1.2.3\nappVersion: \"1.2.3\"\nkubeVersion: \">=1.20.0-0\"\ndependencies:\n  - name: redis\n    version: \"17.x\"\n    repository: \"https:\u002F\u002Fcharts.bitnami.com\u002Fbitnami\"\n    condition: redis.enabled\n  - name: postgresql\n    version: \"11.x\"\n    repository: \"https:\u002F\u002Fcharts.bitnami.com\u002Fbitnami\"\n    condition: postgresql.enabled\n\n# values.yaml\nreplicaCount: 3\n\nimage:\n  repository: registry.example.com\u002Fapi-server\n  tag: v1.2.3\n  pullPolicy: IfNotPresent\n\nimagePullSecrets:\n  - name: registry-secret\n\nservice:\n  type: ClusterIP\n  port: 80\n\ningress:\n  enabled: true\n  className: nginx\n  hosts:\n    - host: api.example.com\n      paths:\n        - path: \u002F\n          pathType: Prefix\n  tls:\n    - secretName: api-tls\n    hosts:\n      - api.example.com\n\nresources:\n  requests:\n    cpu: 100m\n    memory: 128Mi\n  limits:\n    cpu: 500m\n    memory: 512Mi\n\nautoscaling:\n  enabled: true\n  minReplicas: 3\n  maxReplicas: 50\n  targetCPUUtilizationPercentage: 70\n  targetMemoryUtilizationPercentage: 80\n\nnodeSelector: {}\n\ntolerations: []\n\naffinity: {}\n\n# Values for production environment\nproduction:\n  replicaCount: 5\n  resources:\n    requests:\n      cpu: 200m\n      memory: 256Mi\n    limits:\n      cpu: 1000m\n      memory: 1Gi\n  autoscaling:\n    minReplicas: 5\n    maxReplicas: 100\n```\n\n### kubectl Commands\n```bash\n#!\u002Fbin\u002Fbash\n\n# Kubernetes management utilities\nk8s_deploy() {\n    local manifest=\"$1\"\n    kubectl apply -f \"$manifest\" --record\n    echo \"Deployed: $manifest\"\n}\n\nk8s_rollback() {\n    local deployment=\"$1\"\n    local revision=\"${2:---previous}\"\n    kubectl rollout undo deployment\u002F\"$deployment\" --to-revision=\"$revision\"\n    kubectl rollout status deployment\u002F\"$deployment\"\n}\n\nk8s_debug_pod() {\n    local pod=\"$1\"\n    kubectl debug -it \"$pod\" --image=busybox --target=\"$pod\"\n}\n\nk8s_get_resources() {\n    echo \"=== Cluster Resources ===\"\n    echo \"Nodes:\"\n    kubectl get nodes -o wide\n    \n    echo \"\"\n    echo \"Pods (All namespaces):\"\n    kubectl get pods -A -o wide --sort-by='.metadata.namespace'\n    \n    echo \"\"\n    echo \"Top Nodes:\"\n    kubectl top nodes\n    \n    echo \"\"\n    echo \"Top Pods:\"\n    kubectl top pods -A\n}\n\nk8s_network_debug() {\n    local pod=\"$1\"\n    kubectl exec -it \"$pod\" -- netstat -ant\n    kubectl exec -it \"$pod\" -- ss -tunapl\n}\n\nk8s_port_forward() {\n    local deployment=\"$1\"\n    local local_port=\"${2:-8080}\"\n    local remote_port=\"${3:-80}\"\n    kubectl port-forward deployment\u002F\"$deployment\" \"$local_port\":\"$remote_port\"\n}\n\n# Generate kubeconfig for service account\nk8s_generate_service_config() {\n    local namespace=\"${1:-default}\"\n    local serviceaccount=\"${2:-default}\"\n    \n    local token=$(kubectl get secret -n \"$namespace\" \\\n        -o jsonpath=\"{.items[?(@.metadata.ownerReferences[0].name==\\\"$serviceaccount\\\")].data.token}\" \\\n        | base64 -d)\n    \n    local ca=$(kubectl get secret -n \"$namespace\" \\\n        -o jsonpath=\"{.items[?(@.metadata.ownerReferences[0].name==\\\"$serviceaccount\\\")].data['ca\\.crt']}\" \\\n        | base64 -d)\n    \n    local context=$(kubectl config current-context)\n    local cluster=$(kubectl config view -o jsonpath=\"{.contexts[?(@.name==\\\"$context\\\")].context.cluster}\")\n    local server=$(kubectl config view -o jsonpath=\"{.clusters[?(@.name==\\\"$cluster\\\")].cluster.server}\")\n    \n    cat > \"kubeconfig-$serviceaccount.yaml\" \u003C\u003CEOF\napiVersion: v1\nkind: Config\ncurrent-context: $serviceaccount-context\nclusters:\n  - name: $cluster\n    cluster:\n      certificate-authority-data: $ca\n      server: $server\ncontexts:\n  - name: $serviceaccount-context\n    context:\n      cluster: $cluster\n      namespace: $namespace\n      user: $serviceaccount\nusers:\n  - name: $serviceaccount\n    user:\n      token: $token\nEOF\n}\n```\n\n## Best Practices\n- Use namespaces to isolate environments and teams\n- Implement proper resource requests and limits for all containers\n- Use liveness and readiness probes for proper health checking\n- Avoid running containers as root\n- Use network policies to restrict traffic between pods\n- Implement pod anti-affinity for high availability\n- Use Helm for templating and managing releases\n- Store sensitive data in Secrets (encrypted at rest)\n- Use ConfigMaps for configuration, avoid hardcoding\n- Implement proper logging and monitoring from the start\n","## What I do\n- Create Kubernetes manifests and Helm charts\n- Deploy and manage applications on Kubernetes\n- Configure pods, deployments, and services\n- Implement networking policies and ingress\n- Manage secrets and configmaps\n- Set up horizontal pod autoscaling\n- Configure persistent storage\n- Implement RBAC and security policies\n- Perform rolling updates and rollbacks\n- Debug and troubleshoot cluster issues\n\n## When to use me\nWhen deploying applications to Kubernetes clusters, creating deployment manifests, or managing Kubernetes resources.\n\n## Core Concepts\n- Pods, Deployments, StatefulSets, DaemonSets\n- Services (ClusterIP, NodePort, LoadBalancer, Ingress)\n- ConfigMaps and Secrets\n- PersistentVolumes and PersistentVolumeClaims\n- Horizontal Pod Autoscaler (HPA)\n- Network Policies\n- RBAC and ServiceAccounts\n- Helm package management\n- Operators and Custom Resource Definitions\n- Kubernetes networking (CNI, Service mesh)\n\n## Code Examples\n\n### Kubernetes Manifests\n```yaml\n# deployment.yaml\napiVersion: apps\u002Fv1\nkind: Deployment\nmetadata:\n  name: api-server\n  labels:\n    app: api-server\n    version: v1\n    tier: backend\nspec:\n  replicas: 3\n  revisionHistoryLimit: 5\n  selector:\n    matchLabels:\n      app: api-server\n  strategy:\n    type: RollingUpdate\n    rollingUpdate:\n      maxSurge: 25%\n      maxUnavailable: 0\n  template:\n    metadata:\n      labels:\n        app: api-server\n        version: v1\n        tier: backend\n      annotations:\n        prometheus.io\u002Fscrape: \"true\"\n        prometheus.io\u002Fport: \"8080\"\n    spec:\n      serviceAccountName: api-server\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 1000\n        fsGroup: 1000\n      containers:\n        - name: api-server\n          image: registry.example.com\u002Fapi-server:v1.2.3\n          imagePullPolicy: IfNotPresent\n          ports:\n            - name: http\n              containerPort: 8080\n              protocol: TCP\n            - name: grpc\n              containerPort: 9090\n              protocol: TCP\n          envFrom:\n            - configMapRef:\n                name: api-config\n            - secretRef:\n                name: api-secrets\n          env:\n            - name: POD_NAME\n              valueFrom:\n                fieldRef:\n                  fieldPath: metadata.name\n            - name: NODE_NAME\n              valueFrom:\n                fieldRef:\n                  fieldPath: spec.nodeName\n          resources:\n            requests:\n              cpu: 100m\n              memory: 128Mi\n              ephemeral-storage: 100Mi\n            limits:\n              cpu: 500m\n              memory: 512Mi\n              ephemeral-storage: 500Mi\n          livenessProbe:\n            httpGet:\n              path: \u002Fhealth\u002Flive\n              port: http\n            initialDelaySeconds: 10\n            periodSeconds: 10\n            timeoutSeconds: 3\n            failureThreshold: 3\n          readinessProbe:\n            httpGet:\n              path: \u002Fhealth\u002Fready\n              port: http\n            initialDelaySeconds: 5\n            periodSeconds: 5\n            timeoutSeconds: 3\n            failureThreshold: 3\n          startupProbe:\n            httpGet:\n              path: \u002Fhealth\u002Fstartup\n              port: http\n            failureThreshold: 30\n            periodSeconds: 10\n          volumeMounts:\n            - name: tmp\n              mountPath: \u002Ftmp\n            - name: config\n              mountPath: \u002Fetc\u002Fapp\u002Fconfig\n              readOnly: true\n      volumes:\n        - name: tmp\n          emptyDir: {}\n        - name: config\n          configMap:\n            name: api-config\n      affinity:\n        podAntiAffinity:\n          preferredDuringSchedulingIgnoredDuringExecution:\n            - weight: 100\n              podAffinityTerm:\n                labelSelector:\n                  matchLabels:\n                    app: api-server\n                topologyKey: kubernetes.io\u002Fhostname\n      topologySpreadConstraints:\n        - maxSkew: 1\n          topologyKey: topology.kubernetes.io\u002Fzone\n          whenUnsatisfiable: ScheduleAnyway\n          labelSelector:\n            matchLabels:\n              app: api-server\n```\n\n```yaml\n# service.yaml\napiVersion: v1\nkind: Service\nmetadata:\n  name: api-server\n  labels:\n    app: api-server\nspec:\n  type: ClusterIP\n  selector:\n    app: api-server\n  ports:\n    - name: http\n      port: 80\n      targetPort: http\n      protocol: TCP\n    - name: grpc\n      port: 9090\n      targetPort: grpc\n      protocol: TCP\n  sessionAffinity: ClientIP\n  sessionAffinityConfig:\n    clientIP:\n      timeoutSeconds: 3600\n```\n\n```yaml\n# ingress.yaml\napiVersion: networking.k8s.io\u002Fv1\nkind: Ingress\nmetadata:\n  name: api-ingress\n  annotations:\n    nginx.ingress.kubernetes.io\u002Fssl-redirect: \"true\"\n    nginx.ingress.kubernetes.io\u002Fproxy-body-size: \"10m\"\n    nginx.ingress.kubernetes.io\u002Fproxy-read-timeout: \"300\"\n    nginx.ingress.kubernetes.io\u002Fproxy-send-timeout: \"300\"\n    nginx.ingress.kubernetes.io\u002Fproxy-connect-timeout: \"60\"\n    nginx.ingress.kubernetes.io\u002Flimit-rps: \"100\"\n    nginx.ingress.kubernetes.io\u002Flimit-connections: \"50\"\n    cert-manager.io\u002Fcluster-issuer: letsencrypt-prod\nspec:\n  ingressClassName: nginx\n  tls:\n    - hosts:\n        - api.example.com\n      secretName: api-tls\n  rules:\n    - host: api.example.com\n      http:\n        paths:\n          - path: \u002Fapi\u002Fv1\n            pathType: Prefix\n            backend:\n              service:\n                name: api-server\n                port:\n                  number: 80\n```\n\n### Helm Chart Structure\n```yaml\n# Chart.yaml\napiVersion: v2\nname: api-server\ndescription: A Helm chart for API Server deployment\nversion: 1.2.3\nappVersion: \"1.2.3\"\nkubeVersion: \">=1.20.0-0\"\ndependencies:\n  - name: redis\n    version: \"17.x\"\n    repository: \"https:\u002F\u002Fcharts.bitnami.com\u002Fbitnami\"\n    condition: redis.enabled\n  - name: postgresql\n    version: \"11.x\"\n    repository: \"https:\u002F\u002Fcharts.bitnami.com\u002Fbitnami\"\n    condition: postgresql.enabled\n\n# values.yaml\nreplicaCount: 3\n\nimage:\n  repository: registry.example.com\u002Fapi-server\n  tag: v1.2.3\n  pullPolicy: IfNotPresent\n\nimagePullSecrets:\n  - name: registry-secret\n\nservice:\n  type: ClusterIP\n  port: 80\n\ningress:\n  enabled: true\n  className: nginx\n  hosts:\n    - host: api.example.com\n      paths:\n        - path: \u002F\n          pathType: Prefix\n  tls:\n    - secretName: api-tls\n    hosts:\n      - api.example.com\n\nresources:\n  requests:\n    cpu: 100m\n    memory: 128Mi\n  limits:\n    cpu: 500m\n    memory: 512Mi\n\nautoscaling:\n  enabled: true\n  minReplicas: 3\n  maxReplicas: 50\n  targetCPUUtilizationPercentage: 70\n  targetMemoryUtilizationPercentage: 80\n\nnodeSelector: {}\n\ntolerations: []\n\naffinity: {}\n\n# Values for production environment\nproduction:\n  replicaCount: 5\n  resources:\n    requests:\n      cpu: 200m\n      memory: 256Mi\n    limits:\n      cpu: 1000m\n      memory: 1Gi\n  autoscaling:\n    minReplicas: 5\n    maxReplicas: 100\n```\n\n### kubectl Commands\n```bash\n#!\u002Fbin\u002Fbash\n\n# Kubernetes management utilities\nk8s_deploy() {\n    local manifest=\"$1\"\n    kubectl apply -f \"$manifest\" --record\n    echo \"Deployed: $manifest\"\n}\n\nk8s_rollback() {\n    local deployment=\"$1\"\n    local revision=\"${2:---previous}\"\n    kubectl rollout undo deployment\u002F\"$deployment\" --to-revision=\"$revision\"\n    kubectl rollout status deployment\u002F\"$deployment\"\n}\n\nk8s_debug_pod() {\n    local pod=\"$1\"\n    kubectl debug -it \"$pod\" --image=busybox --target=\"$pod\"\n}\n\nk8s_get_resources() {\n    echo \"=== Cluster Resources ===\"\n    echo \"Nodes:\"\n    kubectl get nodes -o wide\n    \n    echo \"\"\n    echo \"Pods (All namespaces):\"\n    kubectl get pods -A -o wide --sort-by='.metadata.namespace'\n    \n    echo \"\"\n    echo \"Top Nodes:\"\n    kubectl top nodes\n    \n    echo \"\"\n    echo \"Top Pods:\"\n    kubectl top pods -A\n}\n\nk8s_network_debug() {\n    local pod=\"$1\"\n    kubectl exec -it \"$pod\" -- netstat -ant\n    kubectl exec -it \"$pod\" -- ss -tunapl\n}\n\nk8s_port_forward() {\n    local deployment=\"$1\"\n    local local_port=\"${2:-8080}\"\n    local remote_port=\"${3:-80}\"\n    kubectl port-forward deployment\u002F\"$deployment\" \"$local_port\":\"$remote_port\"\n}\n\n# Generate kubeconfig for service account\nk8s_generate_service_config() {\n    local namespace=\"${1:-default}\"\n    local serviceaccount=\"${2:-default}\"\n    \n    local token=$(kubectl get secret -n \"$namespace\" \\\n        -o jsonpath=\"{.items[?(@.metadata.ownerReferences[0].name==\\\"$serviceaccount\\\")].data.token}\" \\\n        | base64 -d)\n    \n    local ca=$(kubectl get secret -n \"$namespace\" \\\n        -o jsonpath=\"{.items[?(@.metadata.ownerReferences[0].name==\\\"$serviceaccount\\\")].data['ca\\.crt']}\" \\\n        | base64 -d)\n    \n    local context=$(kubectl config current-context)\n    local cluster=$(kubectl config view -o jsonpath=\"{.contexts[?(@.name==\\\"$context\\\")].context.cluster}\")\n    local server=$(kubectl config view -o jsonpath=\"{.clusters[?(@.name==\\\"$cluster\\\")].cluster.server}\")\n    \n    cat > \"kubeconfig-$serviceaccount.yaml\" \u003C\u003CEOF\napiVersion: v1\nkind: Config\ncurrent-context: $serviceaccount-context\nclusters:\n  - name: $cluster\n    cluster:\n      certificate-authority-data: $ca\n      server: $server\ncontexts:\n  - name: $serviceaccount-context\n    context:\n      cluster: $cluster\n      namespace: $namespace\n      user: $serviceaccount\nusers:\n  - name: $serviceaccount\n    user:\n      token: $token\nEOF\n}\n```\n\n## Best Practices\n- Use namespaces to isolate environments and teams\n- Implement proper resource requests and limits for all containers\n- Use liveness and readiness probes for proper health checking\n- Avoid running containers as root\n- Use network policies to restrict traffic between pods\n- Implement pod anti-affinity for high availability\n- Use Helm for templating and managing releases\n- Store sensitive data in Secrets (encrypted at rest)\n- Use ConfigMaps for configuration, avoid hardcoding\n- Implement proper logging and monitoring from the start\n",{"name":5,"license":14,"metadata":35,"description":7,"compatibility":28},{"audience":36,"category":37},"devops-engineers","systems-administration","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41","systems-administration\u002Fkubernetes",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill kubernetes",{"tool":51,"command":52},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill kubernetes",{"tool":54,"command":55},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill kubernetes","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fsystems-administration\u002Fkubernetes\u002FSKILL.md",true,[59,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fbicep-generation.md","REFERENCE","参考文档",3695,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fbicep-generation.md",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fconstraints\u002Fai-ml.md",3328,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fai-ml.md",{"path":70,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fconstraints\u002Fcompute-apps.md",8089,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fcompute-apps.md",{"path":74,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fconstraints\u002Fcompute-infra.md",4621,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fcompute-infra.md",{"path":78,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fconstraints\u002Fdata-analytics.md",6552,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fdata-analytics.md",{"path":82,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fconstraints\u002Fdata-relational.md",5092,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fdata-relational.md",{"path":86,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fconstraints\u002Fmessaging.md",2609,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fmessaging.md",{"path":90,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fconstraints\u002Fmonitoring.md",1798,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fmonitoring.md",{"path":94,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fconstraints\u002Fnetworking-connectivity.md",6282,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fnetworking-connectivity.md",{"path":98,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fconstraints\u002Fnetworking-core.md",7251,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fnetworking-core.md",{"path":102,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fconstraints\u002Fnetworking-traffic.md",4708,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fnetworking-traffic.md",{"path":106,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fconstraints\u002FREADME.md",1329,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002FREADME.md",{"path":110,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Fconstraints\u002Fsecurity.md",2435,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fconstraints\u002Fsecurity.md",{"path":114,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fdeployment.md",3803,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fdeployment.md",{"path":118,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fpairing-checks.md",3753,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fpairing-checks.md",{"path":122,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fplan-schema.md",3222,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fplan-schema.md",{"path":126,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fresearch.md",4325,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresearch.md",{"path":130,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fresources\u002Fai-ml.md",2177,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fai-ml.md",{"path":134,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fresources\u002Fcompute-apps.md",4141,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fcompute-apps.md",{"path":138,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fresources\u002Fcompute-infra.md",2916,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fcompute-infra.md",{"path":142,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Fresources\u002Fdata-analytics.md",3097,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fdata-analytics.md",{"path":146,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":147,"sourceHtmlUrl":148},"references\u002Fresources\u002Fdata-relational.md",2712,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fdata-relational.md",{"path":150,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":151,"sourceHtmlUrl":152},"references\u002Fresources\u002Fmessaging.md",2016,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fmessaging.md",{"path":154,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":155,"sourceHtmlUrl":156},"references\u002Fresources\u002Fmonitoring.md",1528,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fmonitoring.md",{"path":158,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":159,"sourceHtmlUrl":160},"references\u002Fresources\u002Fnetworking-connectivity.md",3698,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fnetworking-connectivity.md",{"path":162,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":163,"sourceHtmlUrl":164},"references\u002Fresources\u002Fnetworking-core.md",4429,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fnetworking-core.md",{"path":166,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":167,"sourceHtmlUrl":168},"references\u002Fresources\u002Fnetworking-traffic.md",2634,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fnetworking-traffic.md",{"path":170,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":171,"sourceHtmlUrl":172},"references\u002Fresources\u002FREADME.md",1739,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002FREADME.md",{"path":174,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":175,"sourceHtmlUrl":176},"references\u002Fresources\u002Fsecurity.md",1523,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fresources\u002Fsecurity.md",{"path":178,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":179,"sourceHtmlUrl":180},"references\u002Fsample_infrastructure_plan.json",23073,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fsample_infrastructure_plan.json",{"path":182,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":183,"sourceHtmlUrl":184},"references\u002Fterraform-generation.md",2812,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fterraform-generation.md",{"path":186,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":187,"sourceHtmlUrl":188},"references\u002Fverification.md",1649,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fverification.md",{"path":190,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":191,"sourceHtmlUrl":192},"references\u002Fwaf-checklist.md",1903,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fwaf-checklist.md",{"path":194,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":195,"sourceHtmlUrl":196},"references\u002Fworkflow.md",4623,"https:\u002F\u002Fgithub.com\u002Fengvalentineamba77-hue\u002FMY-PLAN-001\u002Fblob\u002Fcopilot\u002Fvscode-mo1c2t3n-ofh8\u002F.agents\u002Fskills\u002Fazure-enterprise-infra-planner\u002Freferences\u002Fworkflow.md",[198,209,219,228,238,247],{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":30},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[200,205,206,207,28,208],"platform","cross-platform","mobile","development",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":30},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[211,216,28,217,218],"data wrangling","science","data",{"skillNo":220,"name":221,"nameZh":6,"description":222,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":223,"categories":224,"keywords":225,"publishedAt":30},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[221,226,28,227],"system","scripting",{"skillNo":229,"name":230,"nameZh":6,"description":231,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":232,"categories":233,"keywords":234,"publishedAt":30},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[235,236,28,237,218],"wide column","databases","model",{"skillNo":239,"name":240,"nameZh":6,"description":241,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":242,"categories":243,"keywords":244,"publishedAt":30},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[245,236,28,246],"wide column stores","database",{"skillNo":248,"name":249,"nameZh":6,"description":250,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":251,"categories":252,"keywords":253,"publishedAt":30},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[249,254,255,256,28,257,258],"websocket","real-time","time","best practices","implementation"]