Get ingress list

All Ingress resources with hosts and addresses

kubectl get ingress -A

tool
kubectl73 commands
tags
network

More kubectl commands

  • kubectl get pods -n <ns> -o yaml > pods-dump.yaml

    Backup/inspect entire pod state in a namespace

  • kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{range .spec.containers[*]}{.image}{"\n"}{end}{end}'

    Enumerate every container image running in the cluster

  • kubectl config use-context <context>

    Switch the active cluster context

  • kubectl config get-contexts

    Show all contexts in current kubeconfig

  • KUBECONFIG=~/.kube/config:~/.kube/cluster2.yaml kubectl config view --flatten > ~/.kube/merged.yaml

    Combine multiple kubeconfig files into one

all 73 kubectl commands