I hereby claim:
- I am goblain on github.
- I am goblain (https://keybase.io/goblain) on keybase.
- I have a public key ASAn0H-Y4F326aYZlapaQZd83RNPAsdLtLM99VGfo-iKvgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# bash script to fetch service endpoints list as comma separated string from kubernetes api | |
# example will list kube-dns endpoints | |
export NAMESPACE=kube-system | |
export SERVICE=kube-dns | |
curl -s --header "Authorization: Bearer `cat /var/run/secrets/kubernetes.io/serviceaccount/token`" -k https://kubernetes.default/api/v1/namespaces/$NAMESPACE/endpoints/$SERVICE | jq '.subsets | map(.addresses) | reduce .[] as $item ([];. + $item) | map(.ip) | join(",")' |
#!/bin/bash | |
## | |
## Gradual cleanup of S3 stored backups | |
## by Radek 'Goblin' Pieczonka <goblin@pentex.pl> | |
## | |
## Configure with environment variables | |
## - S3BUCKET | |
## - S3PATH | |
## Files need to be named YYYYMMDDHHmm.tgz | |
## TODO: support for moving to glacier for long term backup storage |