Skip to content

Instantly share code, notes, and snippets.

View sabre1041's full-sized avatar

Andrew Block sabre1041

View GitHub Profile
@jamcole
jamcole / configurations.yaml
Created March 23, 2020 22:12
Kustomize OCP Objects (configurations)
# https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/README.md
commonLabels:
# set labels at metadata.labels for all types
- path: metadata/labels
# create metadata.labels if it doesn't exist
create: true
- path: spec/template/metadata/labels
kind: DeploymentConfig
create: true
@jhernand
jhernand / healer.py
Last active November 23, 2022 05:49
Simple integration between Prometheus alert manager and Ansible Tower
#!/usr/bin/python3
import http.client
import http.server
import json
import ssl
import urllib.parse
# AWX connection and job template details:
AWX_HOST = 'tower.private'