Skip to content

Instantly share code, notes, and snippets.

@mayurah
Last active May 30, 2023 04:38
Show Gist options
  • Save mayurah/c8931173dfb56ca57e2228c2c3e04781 to your computer and use it in GitHub Desktop.
Save mayurah/c8931173dfb56ca57e2228c2c3e04781 to your computer and use it in GitHub Desktop.
k8s aliases for microk8s / hidden port
alias k='microk8s.kubectl -n sc4snmp '
alias kl='k logs -f '
alias kga='k get all'
alias kda='k describe all'
alias kd='k describe '
alias ka='ka -f '
k get pods -o wide --all-namespaces
k exec -it nginx-ingress-microk8s-controller-ttqxr -n ingress -it -- 'ps'
Hidden port usage by microk8s, not visible by normal netstat..
microk8s disable ingress
^ ingest runs nginx on 80
sudo ip -all netns exec netstat -tapn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment