ABNML wiki
Attachments
History
Blame
View Source
Changelog
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Page Index
ScriptFU
FreeBSD
bhyve
disable power button
disks
DragonFly Mail Agent
motd
node exporter
pf
user management
ZFS
new_disk
timemachine
zfs
zpool
azure
AKS
certificates
acmesh
openssl
dell
perc
linux
disable power button
fans
nerdfont
nvidia
user admin
monitoring
prometheus
mysql
user_admin
networking
cisco
ASA
azurevpn
nexus
RJ-45
iperf3
iptables
nmap
osi
tcpdump
unifi
openbsd
firststeps
python
django
netbox
unix
borgbackup
csv
dd
logs
mbuffer
ssh
weechat
wget
docker
git
jenkins
kubectl
macos
pdf
qr
Home
kubectl
8458f7
Commit
8458f7
2025-02-17 16:25:51
Steven Anderson
: kube
ScriptFU/kubectl.md
..
@@ 12,6 12,9 @@
kubectl get pods -n 04-pod
kubectl get pods -A # --all-namespaces
kubectl get pods -l key=value
+
kubectl get rs # replicasets
+
kubectl get deployment
+
kubectl get svc # service
### explain
kubectl explain <NOUN>.path.to.field
@@ 24,6 27,7 @@
### debug
kubectl exec -it <POD_NAME> -c <CONTAINER_NAME> -- bash
kubectl debug -it <POD_NAME> --image=<DEBUG_IMAGE> -- bash
+
kubectl run curl-pod -it --rm --image=curlimages/curl --command -- sh
### port forward
kubectl port-forward <POD_NAME> <LOCAL_PORT>:<POD_PORT>
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9