$npx -y skills add DNYoussef/context-cascade --skill kubernetes-specialist/*============================================================================*/ /* KUBERNETES-SPECIALIST SKILL :: VERILINGUA x VERIX EDITION */ /*============================================================================*/
| 1 | /*============================================================================*/ |
| 2 | /* KUBERNETES-SPECIALIST SKILL :: VERILINGUA x VERIX EDITION */ |
| 3 | /*============================================================================*/ |
| 4 | |
| 5 | --- |
| 6 | name: kubernetes-specialist |
| 7 | version: 1.0.0 |
| 8 | description: | |
| 9 | [assert|neutral] Kubernetes orchestration expert for Helm chart development, custom operators and CRDs, service mesh (Istio/Linkerd), auto-scaling strategies (HPA/VPA/Cluster Autoscaler), multi-cluster management, and [ground:given] [conf:0.95] [state:confirmed] |
| 10 | category: Cloud Platforms |
| 11 | tags: |
| 12 | - general |
| 13 | author: system |
| 14 | cognitive_frame: |
| 15 | primary: aspectual |
| 16 | goal_analysis: |
| 17 | first_order: "Execute kubernetes-specialist workflow" |
| 18 | second_order: "Ensure quality and consistency" |
| 19 | third_order: "Enable systematic Cloud Platforms processes" |
| 20 | --- |
| 21 | |
| 22 | /*----------------------------------------------------------------------------*/ |
| 23 | /* S0 META-IDENTITY */ |
| 24 | /*----------------------------------------------------------------------------*/ |
| 25 | |
| 26 | [define|neutral] SKILL := { |
| 27 | name: "kubernetes-specialist", |
| 28 | category: "Cloud Platforms", |
| 29 | version: "1.0.0", |
| 30 | layer: L1 |
| 31 | } [ground:given] [conf:1.0] [state:confirmed] |
| 32 | |
| 33 | /*----------------------------------------------------------------------------*/ |
| 34 | /* S1 COGNITIVE FRAME */ |
| 35 | /*----------------------------------------------------------------------------*/ |
| 36 | |
| 37 | [define|neutral] COGNITIVE_FRAME := { |
| 38 | frame: "Aspectual", |
| 39 | source: "Russian", |
| 40 | force: "Complete or ongoing?" |
| 41 | } [ground:cognitive-science] [conf:0.92] [state:confirmed] |
| 42 | |
| 43 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 44 | Kaynak dogrulama modu etkin. |
| 45 | |
| 46 | /*----------------------------------------------------------------------------*/ |
| 47 | /* S2 TRIGGER CONDITIONS */ |
| 48 | /*----------------------------------------------------------------------------*/ |
| 49 | |
| 50 | [define|neutral] TRIGGER_POSITIVE := { |
| 51 | keywords: ["kubernetes-specialist", "Cloud Platforms", "workflow"], |
| 52 | context: "user needs kubernetes-specialist capability" |
| 53 | } [ground:given] [conf:1.0] [state:confirmed] |
| 54 | |
| 55 | /*----------------------------------------------------------------------------*/ |
| 56 | /* S3 CORE CONTENT */ |
| 57 | /*----------------------------------------------------------------------------*/ |
| 58 | |
| 59 | # Kubernetes Specialist |
| 60 | |
| 61 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 62 | Kaynak dogrulama modu etkin. |
| 63 | |
| 64 | |
| 65 | |
| 66 | Expert Kubernetes orchestration for cloud-native applications with production-grade deployments. |
| 67 | |
| 68 | ## Purpose |
| 69 | |
| 70 | Comprehensive Kubernetes expertise including Helm charts, custom operators, service mesh, auto-scaling, and GitOps. Ensures K8s deployments are resilient, secure, observable, and cost-effective. |
| 71 | |
| 72 | ## When to Use |
| 73 | |
| 74 | - Deploying microservices to Kubernetes |
| 75 | - Creating Helm charts for reusable deployments |
| 76 | - Implementing auto-scaling (HPA, VPA, Cluster Autoscaler) |
| 77 | - Setting up service mesh for advanced networking |
| 78 | - Building custom operators with Operator SDK |
| 79 | - Implementing GitOps with ArgoCD or Flux |
| 80 | - Optimizing pod scheduling and resource allocation |
| 81 | |
| 82 | ## Prerequisites |
| 83 | |
| 84 | **Required**: Docker, kubectl, basic K8s concepts (Pods, Services, Deployments) |
| 85 | |
| 86 | **Agents**: `system-architect`, `cicd-engineer`, `perf-analyzer`, `security-manager` |
| 87 | |
| 88 | ## Core Workflows |
| 89 | |
| 90 | ### Workflow 1: Production-Grade Deployment |
| 91 | |
| 92 | **Step 1: Create Deployment Manifest** |
| 93 | |
| 94 | ```yaml |
| 95 | # deployment.yaml |
| 96 | apiVersion: apps/v1 |
| 97 | kind: Deployment |
| 98 | metadata: |
| 99 | name: my-app |
| 100 | labels: |
| 101 | app: my-app |
| 102 | spec: |
| 103 | replicas: 3 |
| 104 | selector: |
| 105 | matchLabels: |
| 106 | app: my-app |
| 107 | template: |
| 108 | metadata: |
| 109 | labels: |
| 110 | app: my-app |
| 111 | version: v1 |
| 112 | spec: |
| 113 | containers: |
| 114 | - name: app |
| 115 | image: myregistry/my-app:v1.0.0 |
| 116 | ports: |
| 117 | - containerPort: 8080 |
| 118 | resources: |
| 119 | requests: |
| 120 | memory: "128Mi" |
| 121 | cpu: "100m" |
| 122 | limits: |
| 123 | memory: "256Mi" |
| 124 | cpu: "500m" |
| 125 | livenessProbe: |
| 126 | httpGet: |
| 127 | path: /health |
| 128 | port: 8080 |
| 129 | initialDelaySeconds: 30 |
| 130 | periodSeconds: 10 |
| 131 | readinessProbe: |
| 132 | httpGet: |
| 133 | path: /ready |
| 134 | port: 8080 |
| 135 | initialDelaySeconds: 5 |
| 136 | periodSeconds: 5 |
| 137 | securityContext: |
| 138 | runAsNonRoot: true |
| 139 | readOnlyRootFilesystem: true |
| 140 | allowPrivilegeEscalation: false |
| 141 | capabilities: |
| 142 | drop: |
| 143 | - ALL |
| 144 | affinity: |
| 145 | podAntiAffinity: |
| 146 | preferredDuringSchedulingIgnoredDuringExecution: |
| 147 | - weight: 100 |
| 148 | podAffinityTerm: |
| 149 | labelSelector: |
| 150 | matchExpressions: |
| 151 | - key: app |
| 152 | operator: In |
| 153 | values: |
| 154 | - my-app |
| 155 | topologyKey: kubernetes.io/hostname |
| 156 | ``` |
| 157 | |
| 158 | **Step 2: Create Service and |