Skip to content

Instantly share code, notes, and snippets.

View brettmilford's full-sized avatar
〰️

Brett brettmilford

〰️
View GitHub Profile
#!/bin/bash -eux
_DIR=$(dirname `readlink -f $0`)
_CONF="${_DIR}/etc"
_vars() {
VERSION=${1:-"2.9"}
RELEASE=${2:-"focal"}
PACKAGE=${3:-"snap"}
@brettmilford
brettmilford / metrics-role.yaml
Last active November 27, 2020 05:13 — forked from hemanthnakkina-zz/query-kubeapiserver.sh
Send parallel API requests to kube-api server
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- nodes/metrics
- services
@brettmilford
brettmilford / query-etcd.sh
Last active November 30, 2020 19:27 — forked from hemanthnakkina-zz/query-etcd.sh
Query etcd keys
#!/bin/bash -eux
# brettmilford: added etcd /metrics gathering
# This file is based on https://code.launchpad.net/~freyes/+git/experiment
# Modified to use xargs instead of parallel
# 'etcd.etcdctl' is provided by the etcd snap
which etcd.etcdctl
PARALLEL_REQS=20
@brettmilford
brettmilford / bundle-openstack.yaml
Created October 28, 2020 05:59
Single node microk8s rook-ceph + juju-lxd openstack
# NOTE: focal series distro origin is usurri
series: focal
variables:
openstack-origin: &openstack-origin cloud:focal-victoria
source: &source cloud:focal-victoria
debug: &debug true
verbose: &verbose true
loglevel: &loglevel 5
ssl_ca: &ssl_ca
ssl_cert: &ssl_cert