← スキル一覧に戻る

kubernetes-operations
by hippocampus-dev
Mirror of hippocampus
⭐ 2🍴 1📅 2026年1月20日
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
| Signal | Backend | Query Language | Use Case |
|---|---|---|---|
| Traces | Tempo | TraceQL | Request flow, latency analysis |
| Metrics | Mimir (Prometheus) | PromQL | Resource usage, alerting |
| Logs | Loki | LogQL | Error investigation, audit |
| Profiles | Pyroscope | Flamegraph UI | CPU/memory hotspots |
| Probes | Blackbox Exporter | PromQL | Endpoint reachability |
Debugging Workflow
- Get query parameters - Check
cluster/manifests/<app>/for namespace, labels,OTEL_SERVICE_NAME - Check dashboard - Open Grafana (kubernetes/namespace, kubernetes/workload, kubernetes/pod)
- Query by symptom - Use appropriate signal based on issue type
| Symptom | Signal | Action |
|---|---|---|
| Errors in logs | Loki → Tempo | Extract traceid, trace in Tempo |
| Latency/5xx | Tempo | Search traces with status = error |
| Resource saturation | Mimir | Query CPU/memory metrics |
| High CPU/memory | Pyroscope | Check flamegraphs |
| Pod not starting | kubectl | kubectl get events -n <namespace> |
Observability Stack Manifests
| Component | Path |
|---|---|
| Grafana | cluster/manifests/grafana/ |
| Tempo | cluster/manifests/tempo/ |
| Mimir | cluster/manifests/mimir/ |
| Loki | cluster/manifests/loki/ |
| Pyroscope | cluster/manifests/pyroscope/ |
| Prometheus | cluster/manifests/prometheus/ |
| Fluentd | cluster/manifests/fluentd/ |
| OpenTelemetry | cluster/manifests/otel-agent/, cluster/manifests/otel-collector/ |
Reference
If writing observability queries: See Queries
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です