Skip to content
Back to skills

511 Kubernetes Troubleshooting Advanced 9922fd41

ASecurity

```bash kubectl describe node <node-name> | grep -A 5 "Conditions:" kubectl top node <node-name> kubectl top pods -A --sort-by=memory kubectl drain <node-name> --ignore-daemonsets kubectl uncordon <node-name> ```

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopsbashnodekubernetesgitapisecurity

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 511-kubernetes-troubleshooting-advanced_9922fd41 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 511 Kubernetes Troubleshooting Advanced 9922fd41?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 511 Kubernetes Troubleshooting Advanced 9922fd41
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-511-kubernetes-troubleshooting-advanced-9922fd41/badge)](https://www.skillsdirectory.com/skills/tools-only-511-kubernetes-troubleshooting-advanced-9922fd41)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Kubernetes Troubleshooting Advanced

## Node Issues
```bash
kubectl describe node <node-name> | grep -A 5 "Conditions:"
kubectl top node <node-name>
kubectl top pods -A --sort-by=memory
kubectl drain <node-name> --ignore-daemonsets
kubectl uncordon <node-name>
```

## CrashLoopBackOff
```bash
kubectl logs <pod-name> --previous
kubectl describe pod <pod-name>
kubectl get pod <pod-name> -o yaml | grep -A 5 resources:
```

## HPA
```yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: myapp
  minReplicas: 2
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 70
```

## Anti-Patterns

**Using `latest` tag:**
```yaml
# ❌ image: myapp:latest
# ✅ image: myapp:v1.2.3
```

**Missing resources:**
```yaml
# ✅ Always set
resources:
  requests: { memory: "256Mi", cpu: "250m" }
  limits: { memory: "512Mi", cpu: "500m" }
```

**Missing health checks:**
```yaml
livenessProbe:
  httpGet: { path: /health, port: 8080 }
readinessProbe:
  httpGet: { path: /ready, port: 8080 }
```

**Running as root:**
```yaml
securityContext:
  runAsNonRoot: true
  runAsUser: 1000
```

## Monitoring
```bash
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.