Get Events and sort by Timestamp
kubectl get events -n kube-system --sort-by='.metadata.creationTimestamp' -A
Loop through hosts in ingress and quick sanity check http status code
hosts=$(kubectl get ingresses --all-namespaces -o wide -o json | jq -r .items[].spec.rules[].host)
echo $hosts
# for host in $hosts ; do echo $host $(curl https://$host --verbose) ; done
# for host in $hosts ; do echo $host $(curl -I https://$host ) ; done
for host in $hosts ; do echo $host $(curl -s -o /dev/null -w "%{http_code}" https://$host ) ; done
Last updated