I hereby claim:
- I am dchaumond on github.
- I am dchaumond (https://keybase.io/dchaumond) on keybase.
- I have a public key ASDAyXEafPFZIvjV88A7-_YdNKrrbWmB3es5RhpIHy9HKgo
To claim this, I am signing this object:
[[ ! -z "$var" ]] && echo "Not empty" || echo "Empty" |
#!/usr/bin/env bash | |
namespace=$1 | |
kubectl get ns $namespace -o json | jq '.spec = {"finalizers":[]}' | kubectl replace --raw /api/v1/namespaces/$namespace/finalize -f - |
kubectl describe nodes -l node-role.kubernetes.io/node |
names=$(kubectl get pods -l <label> -n <namespace> -o jsonpath={.items..metadata.name}) | |
for pod_name in $names; do ... $pod_name ... done |
kubectl delete pods <pod> --grace-period=0 --force |
apk update && apk add curl jq; | |
K8S=https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT; | |
TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) && CACERT=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt; | |
api() { | |
curl -s -H "Authorization: Bearer $TOKEN" --cacert $CACERT $K8S/api/v1/$1 | |
} |
I hereby claim:
To claim this, I am signing this object: