Back to list
hippocampus-dev

kubernetes-operations

by hippocampus-dev

Mirror of hippocampus

2🍴 1📅 Jan 20, 2026

SKILL.md


name: kubernetes-operations description: Kubernetes cluster operations on minikube including observability (Grafana, Prometheus, Alertmanager, Loki, Tempo), debugging (kubectl debug, ephemeral containers), and cluster management (ArgoCD). Use when working with cluster/manifests/, Kubernetes workloads, pods, deployments, operators, controllers, or cluster components. keywords: kubernetes, k8s, minikube, grafana, prometheus, loki, tempo, argocd, pod, クラスタ, 監視, kubectl, deployment

  • Access Grafana at grafana.minikube.127.0.0.1.nip.io
  • Use EphemeralContainer for in-container debugging
  • Disable ArgoCD selfHeal before manual changes, re-enable after

Debugging with Ephemeral Container

kubectl debug <pod-name> -n <namespace> \
  --profile=restricted \
  --image=ghcr.io/hippocampus-dev/hippocampus/ephemeral-container:main \
  --target=<container-name> \
  -- <command>

Note: Do not use -it flag when executing commands. It causes output streaming issues.

ArgoCD selfHeal Control

# Disable selfHeal
kubectl patch application <app-name> -n argocd --type=merge \
  -p '{"spec":{"syncPolicy":{"selfHeal":false}}}'

# Re-enable selfHeal (after work is complete)
kubectl patch application <app-name> -n argocd --type=merge \
  -p '{"spec":{"syncPolicy":{"selfHeal":true}}}'

Observability Signal Overview

SignalBackendQuery LanguageUse Case
TracesTempoTraceQLRequest flow, latency analysis
MetricsMimir (Prometheus)PromQLResource usage, alerting
LogsLokiLogQLError investigation, audit
ProfilesPyroscopeFlamegraph UICPU/memory hotspots
ProbesBlackbox ExporterPromQLEndpoint reachability

Debugging Workflow

  1. Get query parameters - Check cluster/manifests/<app>/ for namespace, labels, OTEL_SERVICE_NAME
  2. Check dashboard - Open Grafana (kubernetes/namespace, kubernetes/workload, kubernetes/pod)
  3. Query by symptom - Use appropriate signal based on issue type
SymptomSignalAction
Errors in logsLoki → TempoExtract traceid, trace in Tempo
Latency/5xxTempoSearch traces with status = error
Resource saturationMimirQuery CPU/memory metrics
High CPU/memoryPyroscopeCheck flamegraphs
Pod not startingkubectlkubectl get events -n <namespace>

Observability Stack Manifests

ComponentPath
Grafanacluster/manifests/grafana/
Tempocluster/manifests/tempo/
Mimircluster/manifests/mimir/
Lokicluster/manifests/loki/
Pyroscopecluster/manifests/pyroscope/
Prometheuscluster/manifests/prometheus/
Fluentdcluster/manifests/fluentd/
OpenTelemetrycluster/manifests/otel-agent/, cluster/manifests/otel-collector/

Reference

If writing observability queries: See Queries

Score

Total Score

55/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon