This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"kind": "Deployment", "spec": {"template": {"spec": {"containers": [{"image": "redis:3.2.4", "name": "addon-default", "resources": {"requests": {"cpu": "100m", "memory": "100Mi"}}, "ports": [{"containerPort": 6379}]}]}, "metadata": {"labels": {"app": "redis"}}}, "replicas": 1}, "apiVersion": "extensions/v1beta1", "metadata": {"name": "addon-default"}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import xml.etree.ElementTree as ET | |
| import requests | |
| url = 'https://<ZIMBRA_SERVER_URL>:7071/service/admin/soap' | |
| headers = { 'Content-Type': 'application/soap+xml' } | |
| # Get the credentials through zmlocalconfig | |
| # zmlocalconfig zimbra_user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Groups | |
| kind: GroupList | |
| items: | |
| - name: 'opscenter:taf:admin' | |
| description: Cluster Admin for Taf clusters | |
| namespaces: | |
| - c5e493 | |
| - c635ed | |
| - cbcb57 | |
| - kong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: payout | |
| annotations: | |
| description: |- | |
| TBD. | |
| labels: | |
| dependencies: wallet | |
| spec: |