- Create a postgres instance on GCP
- Create a debian machine instance
- Install Docker
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \| FROM gcr.io/kaniko-project/executor:debug-v0.13.0 | |
| FROM node:8.9.4-alpine | |
| COPY --from=0 /kaniko/* /kaniko/ | |
| COPY --from=0 /kaniko/.docker/config.json /kaniko/.docker/config.json | |
| COPY --from=0 /busybox/ /busybox/ | |
| VOLUME /busybox | |
| COPY --from=0 /kaniko/ssl/certs/ /kaniko/ssl/certs/ |
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: payout | |
| annotations: | |
| description: |- | |
| TBD. | |
| labels: | |
| dependencies: wallet | |
| spec: |
| #!/bin/bash | |
| set -eo pipefail | |
| : "${AWS_DEFAULT_REGION:?Need to set AWS_DEFAULT_REGION}" | |
| : "${AWS_ACCESS_KEY_ID:?Need to set AWS_ACCESS_KEY_ID}" | |
| : "${AWS_SECRET_ACCESS_KEY:?Need to set AWS_SECRET_ACCESS_KEY}" | |
| TF_ACTION=$1 | |
| TF_VOLUMES="-v ${PWD}/terraform:/root -v ${PWD}/.terraform:/.terraform" |
| # Groups | |
| kind: GroupList | |
| items: | |
| - name: 'opscenter:taf:admin' | |
| description: Cluster Admin for Taf clusters | |
| namespaces: | |
| - c5e493 | |
| - c635ed | |
| - cbcb57 | |
| - kong |
| #!/bin/bash | |
| while true; do | |
| for node in $(kubectl get nodes --no-headers |grep -v master |awk {'print $1'}); do | |
| echo "=====> Configuring $node" | |
| ssh -l core -o StrictHostKeyChecking=no -i /root/id_rsa $node "sudo sed -i 's/#ProcessSizeMax.*/ProcessSizeMax=900G/g;s/#ExternalSizeMax.*/ExternalSizeMax=900G/g' /etc/systemd/coredump.conf" | |
| ssh -l core -o StrictHostKeyChecking=no -i /root/id_rsa $node "sudo systemctl daemon-reload" | |
| done | |
| echo "Done! sleeping for 60 minutes ..." | |
| sleep 3600 | |
| done |
| package nodeinit | |
| import "strings" | |
| // https://coredns.io/plugins/kubernetes/ | |
| type CoreDNSOptions struct { | |
| // the URL for a remote k8s API endpoint | |
| KubernetesEndpoint string | |
| // exposes the k8s namespaces listed | |
| Namespaces string |
| #!/usr/bin/env python | |
| # for ns in $(kubectl get ns |grep -i ctaf |awk {'print $1'}); do python -W ignore check_ingress.py host01 host02; done | |
| import requests | |
| import sys | |
| def has_via(url): | |
| r = requests.get(url, verify=False, timeout=1) | |
| return r.headers.get('Via') |
| ### Keybase proof | |
| I hereby claim: | |
| * I am sandromello on github. | |
| * I am sandromello (https://keybase.io/sandromello) on keybase. | |
| * I have a public key ASCYSq7XPh9uaSG_HXdIFOFxNUUijP6mSXEvreRBQsbJ1Qo | |
| To claim this, I am signing this object: |