Skip to content

Instantly share code, notes, and snippets.

View thojkooi's full-sized avatar

Thomas Kooi thojkooi

View GitHub Profile
https://docs.google.com/presentation/d/1daRyJU91ByjRCZiYYAT4-GSSQjlIuV26pREBs7XiIv0/edit?usp=sharing
@thojkooi
thojkooi / starship.toml
Last active October 15, 2025 14:37
startship.toml
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
format = '$kubernetes$custom$all'
# Replace the '❯' symbol in the prompt with '➜'
# [character] # The name of the module we are configuring is 'character'
@thojkooi
thojkooi / cloud-config
Created May 26, 2025 15:36
plain userconfig example
#cloud-config
package_update: false
package_upgrade: false
chpasswd:
expire: false
users:
- {name: demo, password: letmein, type: text}
ssh_pwauth: true
users:
@thojkooi
thojkooi / deployment.yaml
Created September 16, 2019 15:50
Kubernetes Echo deployment
apiVersion: v1
kind: Namespace
metadata:
name: echoserver
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
namespace: echoserver
@thojkooi
thojkooi / README.md
Last active November 4, 2019 14:17
Set up helm with TLS for Weave flux

Installing Weave Flux helm-operator and Helm with TLS enabled

Installing Helm / Tiller

Generate certificates by calling the script generate-tiller-certs.sh. This will provide a CA, server certs for tiller and client certs for helm / weave flux.

Next deploy Helm with TLS and RBAC enabled;

kubectl apply -f helm-rbac.yaml
@thojkooi
thojkooi / generate-etcd-certs.sh
Created June 23, 2018 15:48
Generate etcd certificates for kubeadm
#!/bin/bash
# First generate the config file
cat >ca-config.json <<EOF
{
"signing": {
"default": {
"expiry": "43800h"
},
"profiles": {
@thojkooi
thojkooi / keybase.md
Created October 6, 2017 07:07
keybase.md

Keybase proof

I hereby claim:

  • I am thojkooi on github.
  • I am thojkooi (https://keybase.io/thojkooi) on keybase.
  • I have a public key ASBo--Wc5dJLpb5SmLl7bBvIQs6-zWiu0aMq9AN7GqnPiAo

To claim this, I am signing this object: