Skip to content

Instantly share code, notes, and snippets.

@rsmitty
rsmitty / a.yaml
Last active January 13, 2020 20:31
apiVersion: v1
kind: ServiceAccount
metadata:
name: hwhat
namespace: default
---
apiVersion: v1
kind: Pod
metadata:
name: alpine
#!/bin/bash
## Vars to use for various things
CAPI_VERSION="0.2.10"
## Setup our directories
OUT_DIR="$PWD/_out"
TMP_BASE="$PWD"
TMP_DIR="$(mktemp -d -t _tmp-XXXXXXXXXX --tmpdir=$TMP_BASE)"
mkdir -p $OUT_DIR
---
# Source: cilium/charts/agent/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: cilium
namespace: kube-system
---
# Source: cilium/charts/hubble-ui/templates/serviceaccount.yaml
apiVersion: v1
@rsmitty
rsmitty / demo.md
Last active October 21, 2020 18:50

Pre-setup

Create all docker mirrors

docker run -d -p 5000:5000 \
    -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io \
    --restart always \
    --name registry-docker.io registry:2.5
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kube-vip-ds
namespace: kube-system
spec:
selector:
matchLabels:
name: kube-vip-ds
template:
@rsmitty
rsmitty / aa-cloudconf.yaml
Last active December 2, 2020 17:31
cloudconf.yaml
apiVersion: v1
kind: Secret
metadata:
name: cloud-config
namespace: kube-system
type: Opaque
data:
cloud.conf: W0dsb2JhbF0KYXV0aC11cmw9aHR0cDovLzE5Mi4xNjguMjU0LjIvaWRlbnRpdHkKI1RpcDogWW91IGNhbiBhbHNvIHVzZSBBcHBsaWNhdGlvbiBDcmVkZW50aWFsIElEIGFuZCBTZWNyZXQgaW4gcGxhY2Ugb2YgdXNlcm5hbWUsIHBhc3N3b3JkLCB0ZW5hbnQtaWQsIGFuZCBkb21haW4taWQuCiNhcHBsaWNhdGlvbi1jcmVkZW50aWFsLWlkPQojYXBwbGljYXRpb24tY3JlZGVudGlhbC1zZWNyZXQ9CnVzZXJuYW1lPWFkbWluCiMgdXNlci1pZD0KcGFzc3dvcmQ9c3VwZXJzZWNyZXQKcmVnaW9uPVJlZ2lvbk9uZQp0ZW5hbnQtaWQ9ZWJmNDNmYzQwYzRkNDNlODk4NTA0YTc3ODY5YzRhMWUKZG9tYWluLWlkPWRlZmF1bHQKCltMb2FkQmFsYW5jZXJdCnVzZS1vY3RhdmlhPXRydWUKc3VibmV0LWlkPWFjY2VlMDljLTYwMWYtNGQ4Mi1iYmU0LWUzNTY5Njk3Y2VlYwpmbG9hdGluZy1uZXR3b3JrLWlkPTFhMjJhYmQxLTQxOGYtNDFhOC05OWQxLTQyZDY3MmJjMTA3MgoKW0Jsb2NrU3RvcmFnZV0KYnMtdmVyc2lvbj12Mgo=
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
@rsmitty
rsmitty / ppl.md
Last active July 22, 2021 18:04
A bastardized PPL that I adapted from reddit.

My "Dude, I Don't Have That Much Equipment In My Homegym" Program

Here's a short write-up of the PPL that I've been running. It's loosely based off of this reddit post. But you know, I'm not in a gym and I don't have access to all this shit that it mentions. So here we are.

Context

This program goes Push/Pull/Legs, in that order, and then repeats. I've done it anywhere from 3-6 times a week and it's worked out well. As the weight gets heavier, doing some of these (especially legs) twice a week gets pretty brutal.

You'll also notice that the heavy exercises below are 3x5+. This is explained in that reddit post, but essentially it means you go to failure on the last set if you've got more than 5 in the tank. It's a nice way to pick up some extra reps when you're feeling good.

@rsmitty
rsmitty / vsphere.sh
Created January 6, 2022 18:12
A little script to automate creation of talos clusters in vsphere
#!/bin/bash
set -e
## The following commented environment variables should be set
## before running this script
# export GOVC_USERNAME='administrator@vsphere.local'
# export GOVC_PASSWORD='xxx'
# export GOVC_INSECURE=true