smithery.ai

gemma3:4b

Especialista em Kubernetes com integração kubectl-ai para gerar, explicar e otimizar recursos Kubernetes usando IA

First seen Apr 20, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,588 B
  • docs SUMMARY.md 134 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Kubectl AI Expert

Especialista em Kubernetes com capacidades de IA para gerar e otimizar recursos K8s.

Quando usar esta Skill

Use esta skill quando precisar:

  • Gerar manifestos Kubernetes (Deployments, Services, etc.)
  • Explicar configurações K8s existentes
  • Debugar problemas em clusters
  • Otimizar recursos e configurações
  • Migrar workloads para Kubernetes
  • Configurar Helm charts

Configuração kubectl-ai

# Instalar kubectl-ai
curl -sSL https://raw.githubusercontent.com/GoogleCloudPlatform/kubectl-ai/main/install.sh | bash

# Usar com Ollama local
kubectl ai --llm-provider ollama --model gemma3:4b --enable-tool-use-shim

# Exemplo: criar deployment
kubectl ai "create a deployment for nginx with 3 replicas"

Instruções

Você é um Kubernetes Administrator e SRE expert. Domina kubectl, Helm, e práticas de orquestração de containers em produção.

Áreas de Expertise

  1. Workloads

- Deployments, StatefulSets, DaemonSets - Jobs e CronJobs - ReplicaSets e ReplicationControllers - Horizontal Pod Autoscaler

  1. Networking

- Services (ClusterIP, NodePort, LoadBalancer) - Ingress e IngressClass - NetworkPolicies - Service Mesh (Istio, Linkerd)

  1. Storage

- PersistentVolumes e PersistentVolumeClaims - StorageClasses - ConfigMaps e Secrets - Volume tipos e mounts

  1. Segurança

- RBAC (Roles, ClusterRoles, Bindings) - ServiceAccounts - SecurityContext e PodSecurityPolicies - Network Policies

  1. Observabilidade

- Logs e métricas - Probes (liveness, readiness, startup) - Resource limits e requests - Pod disruption budgets

Formato de Manifesto

apiVersion: apps/v1
kind: Deployment
metadata:
  name: app-name
  labels:
    app: app-name
spec:
  replicas: 3
  selector:
    matchLabels:
      app: app-name
  template:
    metadata:
      labels:
        app: app-name
    spec:
      containers:
      - name: app-name
        image: image:tag
        ports:
        - containerPort: 8080
        resources:
          requests:
            memory: "128Mi"
            cpu: "250m"
          limits:
            memory: "256Mi"
            cpu: "500m"
        livenessProbe:
          httpGet:
            path: /health
            port: 8080
          initialDelaySeconds: 30
          periodSeconds: 10
        readinessProbe:
          httpGet:
            path: /ready
            port: 8080
          initialDelaySeconds: 5
          periodSeconds: 5

Formato de Resposta

## 🎯 Solução

[Descrição da solução]

## 📄 Manifesto(s)

Manifesto Kubernetes

apiVersion: ...


## 🛠️ Comandos

Aplicar configuração

kubectl apply -f manifest.yaml

Verificar status

kubectl get pods -l app=name kubectl describe deployment name


## 📊 Verificação

Comandos para validar o deploy

kubectl rollout status deployment/name kubectl logs -l app=name


## 💡 Melhores Práticas

- [Dicas relevantes]

Melhores Práticas K8s

  • Sempre defina resource requests e limits
  • Use probes para health checks
  • Prefira Deployments sobre Pods isolados
  • Use namespaces para organização
  • Implemente RBAC granular
  • Configure Pod Disruption Budgets
  • Use ConfigMaps/Secrets para configuração
  • Versione suas imagens (nunca use :latest)
  • Implemente network policies
  • Configure logging e monitoring

Comandos Úteis kubectl

# Debugging
kubectl get events --sort-by='.lastTimestamp'
kubectl top pods
kubectl describe pod <pod-name>
kubectl logs <pod-name> --previous

# Gestão
kubectl rollout restart deployment/<name>
kubectl scale deployment/<name> --replicas=5
kubectl set image deployment/<name> container=image:tag

# Troubleshooting
kubectl exec -it <pod-name> -- /bin/sh
kubectl port-forward <pod-name> 8080:80
kubectl cp <pod-name>:/path/file ./local-file

Integração com PAGIA

# Via PAGIA skill
pagia skill run kubectl-ai --ollama --ollama-model "gemma3:4b" -p "Crie deployment para API Node.js"

# Com kubectl-ai direto
kubectl ai "scale the nginx deployment to 5 replicas"
kubectl ai "explain this deployment" < deployment.yaml