I hereby claim:
- I am okgolove on github.
- I am okgolove (https://keybase.io/okgolove) on keybase.
- I have a public key whose fingerprint is 8CD2 B980 4860 9A6B 9278 F916 6DBB DB5E D7F4 0343
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ETCD_POD=etcd-server-ip-10-0-3-241.eu-west-1.compute.internal | |
| BACKUP_NAME=etcd_backup_$(date +%s).tgz | |
| ETCD_DATA_DIR=/var/etcd/data # or /var/etcd/data-events | |
| kubectl exec -t $ETCD_POD -n kube-system -- sh -c "rm -rf /backup && etcdctl backup --data-dir=${ETCD_DATA_DIR} --backup-dir=/backup && tar -czf ${BACKUP_NAME} /backup" | |
| kubectl cp kube-system/$ETCD_POD:/${BACKUP_NAME} ${ETCD_POD}_${BACKUP_NAME} |
| //This script allows you to get build information for selected jobs | |
| /* | |
| You can also add closures to filter the jobs or the builds... | |
| .find{job->job.name.contains('dsl')} | |
| .find{ [whatever]} | |
| */ | |
| Jenkins.instance.getAllItems(Job).each{ | |
| def jobBuilds=it.getBuilds() |
| # !/bin/bash | |
| # | |
| # Usage: | |
| # 1. Copy the JSON from Grafana -> Export as JSON -> Clipboard | |
| # 2. ./prepare_dashboard.sh new_dashboard_xxx | |
| # - This will create new_dashboard_xxx-dashboard.json | |
| # | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| annotations: | |
| nginx.ingress.kubernetes.io/configuration-snippet: | | |
| add_header X-allow "$allow"; | |
| add_header X-redirect "$redirect"; | |
| add_header X-addr "$http_cf_connecting_ip"; | |
| add_header X-uri "$uri"; |
| kubectl patch -n ingress deploy nginx-ingress-controller --type='json' -p='[{"op": "add", "path": "/spec/template/spec/containers/0/ports/-", "value": {"containerPort": 8080, "name": "redirect", "protocol": "TCP"}}]' |