Skip to content
Back to skills

507 Kubernetes Kubectl 43fe156b

ASecurity

```bash kubectl cluster-info kubectl get nodes kubectl describe node <node-name> kubectl top nodes kubectl drain <node-name> --ignore-daemonsets kubectl uncordon <node-name> ```

  • 9 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
devopsbashnodekubernetesdebuggingfrontend

Works with

  • cli

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro scans all 2 files and shows the line behind each finding

Scanned June 1, 2026

npx -y skills add tools-only/X-Skills --skill 507-kubernetes-kubectl_43fe156b --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 507 Kubernetes Kubectl 43fe156b?

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

Security grade badge for 507 Kubernetes Kubectl 43fe156b
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-507-kubernetes-kubectl-43fe156b/badge)](https://www.skillsdirectory.com/skills/tools-only-507-kubernetes-kubectl-43fe156b)

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

Download with Pro
SKILL.md
# kubectl Essential Commands

## Cluster & Node
```bash
kubectl cluster-info
kubectl get nodes
kubectl describe node <node-name>
kubectl top nodes
kubectl drain <node-name> --ignore-daemonsets
kubectl uncordon <node-name>
```

## Pod Operations
```bash
kubectl get pods -A                     # All namespaces
kubectl get pods -o wide                # Extended info
kubectl describe pod <pod-name>
kubectl logs <pod-name>
kubectl logs -f <pod-name>              # Follow
kubectl logs --previous <pod-name>      # Previous crash
kubectl exec -it <pod-name> -- /bin/bash
```

## Deployment
```bash
kubectl apply -f manifest.yaml
kubectl apply -f ./manifests/
kubectl apply -f manifest.yaml --dry-run=client -o yaml  # Preview
kubectl set image deployment/myapp app=myapp:v2
kubectl delete -f manifest.yaml
```

## Service & Network
```bash
kubectl port-forward service/myapp 8080:8080
kubectl get svc
kubectl exec -it <pod-name> -- curl http://service:8080
kubectl exec -it <pod-name> -- nslookup kubernetes.default
```

## Debugging (Get → Describe → Logs)
```bash
kubectl get pods -o wide
kubectl get events -n <ns> --sort-by='.lastTimestamp'
kubectl describe pod <pod-name>
kubectl logs <pod-name> -c <container>
```

## Output & Filtering
```bash
kubectl get pods -o json
kubectl get pods -o yaml
kubectl get pods -l app=myapp,tier=frontend
kubectl get pods --field-selector=status.phase=Running
kubectl get pods -w                     # Watch
```

## Flags

| Flag | Purpose |
|------|---------|
| `-n` | Namespace |
| `-A` | All namespaces |
| `-o` | Output format |
| `-l` | Label selector |
| `-w` | Watch |

## Aliases
```bash
alias k='kubectl'
alias kgp='kubectl get pods'
alias kd='kubectl describe'
alias kl='kubectl logs'
```

Files in this skill

  • README.md976 B
  • skill.md1.7 KB

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.