Skip to content

Instantly share code, notes, and snippets.

View rooftopcellist's full-sized avatar

Christian Adams rooftopcellist

View GitHub Profile
@rooftopcellist
rooftopcellist / resource-utilization-report.py
Created November 22, 2023 22:18
Create a report of resource usage in a given namespace
'''
Purpose:
* Generate a report of all pod cpu and memory usage in a namespace
Usage:
$ python3 resource-utilization-report.py namespace
'''
@rooftopcellist
rooftopcellist / monitor-operator-pod-usage.py
Created November 22, 2023 20:34
Provide a report of the operator pod's resource utilzation over time
'''
Purpose:
To provide a report of the operator pod's resource utilzation over time
Usage:
python monitor-operator-pod-usage.py --deployment_name "awx-operator-controller-manager" --namespace "awx" --total_time 300
'''
import subprocess
@rooftopcellist
rooftopcellist / awx-operator-on-kind.md
Last active November 20, 2023 22:50
awx-operator on kind

AWX Operator on Kind

Kind

Install Kind.

# For Intel Macs
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-darwin-amd64
# For M1 / ARM Macs
@rooftopcellist
rooftopcellist / kustomization.yaml
Last active December 14, 2022 20:16
kustomization.yaml for awx-operator - example of kustomizing registry for kube-rbac-proxy image
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# Find the latest tag here: https://github.com/ansible/awx-operator/releases
- github.com/ansible/awx-operator/config/default?ref=1.1.2
# Set the image tags to match the git version from above
images:
- name: quay.io/ansible/awx-operator
newTag: 1.1.2
@rooftopcellist
rooftopcellist / keybase.md
Created January 11, 2018 22:58
keybase proof of human

Keybase proof

I hereby claim:

  • I am rooftopcellist on github.
  • I am chadams (https://keybase.io/chadams) on keybase.
  • I have a public key ASC1qSCmhOzo4BZN_YoxNOhUs4-YFh7BIxHvsBrpB8fLFQo

To claim this, I am signing this object: