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
### 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 | |
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
{"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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: minio | |
labels: | |
app: minio | |
namespace: koli-system | |
spec: | |
clusterIP: 10.100.254.40 | |
ports: |
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: v1 | |
kind: Secret | |
data: | |
accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU= | |
secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw== | |
metadata: | |
name: objectstorage-keyfile | |
labels: | |
app: minio | |
namespace: koli-system |
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
# clusters refers to the remote service. | |
clusters: | |
- name: remote-auth | |
cluster: | |
insecure-skip-tls-verify: true | |
server: http://192.168.0.101:8000/webhook-auth # URL of remote service to query. Must use 'https'. | |
# kubeconfig files require a context. Provide one for the API server. | |
current-context: webhook | |
contexts: |
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: Service | |
apiVersion: v1 | |
metadata: | |
name: minio | |
labels: | |
app: minio | |
namespace: koli-system | |
spec: | |
clusterIP: 10.0.0.25 | |
ports: |
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: v1 | |
kind: Secret | |
data: | |
accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU= | |
secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw== | |
metadata: | |
name: objectstorage-keyfile | |
labels: | |
app: minio | |
namespace: koli-system |
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": "ReplicationController", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "minio", | |
"labels": { | |
"app": "minio" | |
} | |
}, | |
"spec": { |