devops-kubernetes-for-data
Use when the user asks about Spark on Kubernetes, the Spark Operator, Airflow KubernetesExecutor, Kafka on Kubernetes with Strimzi, Volcano or Kueue batch…
от j4flmao★ 47 звёзд на GitHub
Установить devops-kubernetes-for-data в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Kubernetes for Data Agent
Purpose
Configures Kubernetes for data-intensive workloads: Spark, Airflow, Kafka, with GPU scheduling, node pools, and storage optimization.
Agent Protocol
Trigger
User request includes: Kubernetes for data, Spark on K8s, Airflow on K8s, Kafka on K8s, Strimzi, Spark Operator, Volcano, GPU scheduling, node pools, data workloads K8s, Karpenter.
Protocol
- Identify data workload types (Spark, Airflow, Kafka, batch).
- Select operators (Spark Operator, Strimzi, Airflow Helm chart).
- Design node pools for workload isolation.
- Configure resource requests/limits for executors.
- Set up GPU scheduling if needed.
- Choose storage class and CSI driver.
- Configure Karpenter or autoscaler for elasticity.
Output
Kubernetes configuration for data workloads with Spark/Airflow/Kafka setup, GPU strategy, storage plan.
Response Format
## Data Workloads on Kubernetes
### Workload Configuration
Spark Operator: {enabled/disabled} | Version: {N}
Airflow Executor: {KubernetesExecutor / CelacyKubernetesExecutor}
Kafka Operator: {Strimzi / custom}
### Node Pools
- compute-spot: {instance type} | {min-max} nodes | {spot/on-demand}
- compute-gpu: {instance type} | {GPU count} | {min-max} nodes
- storage-optimized: {instance type} | local SSD: {N GB}
### Resource Management
Spark Driver: {CPU: N, memory: N, memoryOverhead: N}
Spark Executor: {CPU: N, memory: N, instances: N}
Airflow Worker: {CPU: N, memory: N}
Kafka Broker: {CPU: N, memory: N, storage: N GB}
### GPU Scheduling
Runtime: {nvidia/cuda}
Node Selector: {node label}
Volcano Queue: {name}
### Storage
Spark Shuffle: {local SSD / PVC / emptyDir}
Kafka: {CSI driver} | {storage class} | {replication}
Airflow Logs: {S3/GCS/EFS}
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Node pools designed for workload isolation and cost optimization.
- Spark resource configuration matches workload profile.
- GPU operator installed and configured for ML workloads.
- Storage class selected with performance characteristics documented.
- Autoscaler configured for compute elasticity.
- Pod priority and preemption configured for critical workloads.
- Network policies for inter-service communication.
Workflow
Step 1: Operator Selection
- Spark Operator: Kubernetes operator for Apache Spark. Handles driver/executor lifecycle, resource management, dynamic allocation.
- Strimzi: Kafka operator. Manages Kafka clusters, topics, users, and MirrorMaker.
- Airflow: Official Helm chart. Use KubernetesExecutor for per-task pods or CeleryKubernetesExecutor for hybrid.
Step 2: Node Pool Design
- compute-spot: Spot instances for Spark executors and Airflow workers. Cost-effective. Use nodeSelector for scheduling.
- compute-gpu: GPU-enabled instances for ML training. taint for exclusive access.
- storage-optimized: Local SSD or high-throughput instances for Kafka brokers.
- system: General purpose for operators, control plane components.
Step 3: Spark Resource Sizing
Driver: 1 CPU, 4GB memory, 512MB overhead. Executors: right-size based on data volume. Dynamic allocation with min/max bounds. Use nodeSelector for spot pool. Local SSD for shuffle.
apiVersion: sparkoperator.k8s.io/v1beta2
kind: SparkApplication
metadata:
name: spark-etl
spec:
type: Scala
mode: cluster
image: gcr.io/spark-operator/spark:v3.5.0
imagePullPolicy: Always
mainClass: com.example.ETLJob
mainApplicationFile: local:///opt/spark/jobs/etl.jar
sparkVersion: "3.5.0"
restartPolicy:
type: Never
driver:
cores: 1
coreLimit: "1200m"
memory: "4g"
serviceAccount: spark
labels:
version: 3.5.0
tolerations:
- key: workload-type
operator: Equal
value: data
effect: NoSchedule
executor:
instances: 10
cores: 2
coreLimit: "2200m"
memory: "8g"
memoryOverhead: "2g"
labels:
version: 3.5.0
tolerations:
- key: workload-type
operator: Equal
value: spark
effect: NoSchedule
dynamicAllocation:
enabled: true
initialExecutors: 5
minExecutors: 1
maxExecutors: 50
sparkConf:
spark.shuffle.service.enabled: "false"
spark.dynamicAllocation.enabled: "true"
spark.kubernetes.allocation.driver.requests.cores: "1"
spark.kubernetes.allocation.executor.requests.cores: "2"
spark.sql.adaptive.enabled: "true"
spark.sql.adaptive.coalescePartitions.enabled: "true"
Step 4: GPU Scheduling
Install NVIDIA GPU Operator. Define GPU-enabled node pool with taint. Use Volcano for batch GPU scheduling with queue management. Set GPU memory and count in pod spec.
# GPU pod spec
resources:
limits:
nvidia.com/gpu: 1
# Volcano GPU job with queue management
apiVersion: batch.volcano.sh/v1alpha1
kind: Job
metadata:
name: gp
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/data-infrastructure-k8s.md
- references/data-processing-k8s.md
- references/data-workloads-k8s.md
- references/gpu-computing.md
- references/gpu-storage-k8s.md
- references/kubernetes-for-data-advanced.md
- references/kubernetes-for-data-fundamentals.md
FAQ
Что делает скилл devops-kubernetes-for-data?
Use when the user asks about Spark on Kubernetes, the Spark Operator, Airflow KubernetesExecutor, Kafka on Kubernetes with Strimzi, Volcano or Kueue batch scheduling, GPU scheduling, node pools or Karpenter for data jobs, or storage for data workloads. Produces data-platform configs on Kubernetes. Not for pipeline design (use data-etl-pipeline).
Как установить скилл devops-kubernetes-for-data?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devops-kubernetes-for-data запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…