Skip to content

Instantly share code, notes, and snippets.

View richardcase's full-sized avatar
🌴
On vacation

Richard Case richardcase

🌴
On vacation
View GitHub Profile

Keybase proof

I hereby claim:

  • I am richardcase on github.
  • I am richcase (https://keybase.io/richcase) on keybase.
  • I have a public key ASAlqGnzLVrDNpfYYXUFlCMcKTVuIYlzUlCiOAphH36Itgo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1CqLDd1b5JGfBewkw1hAbKWLxQbXk8vjM9 https://explorer.blockstack.org/address/1CqLDd1b5JGfBewkw1hAbKWLxQbXk8vjM9
Verifying my Blockstack ID is secured with the address 1PkhHpUnUVozxuDc5CUfUoknffCGZanACP https://explorer.blockstack.org/address/1PkhHpUnUVozxuDc5CUfUoknffCGZanACP
You will need the kubeconfig for the management cluster
and either export KUBECONFIG=mgmt.kubeconfig or add --kubeconfig mgmt.kubeconfig to the commands below
1. Clone the Flux2 state repo
2. Run the following to get the Flux2 install manifest
```bash
flux install --export > flux-components.yaml
```
@richardcase
richardcase / tableprinter.go
Created March 23, 2021 06:02
Table Printer - example
func (p *tableObjectPrinter) Print(in interface{}, writer io.Writer) error {
inObj, ok := in.(*metav1.Table)
if !ok {
return ErrTableRequired
}
options := cliprint.PrintOptions{}
tablePrinter := cliprint.NewTablePrinter(options)
scheme, _, _ := historyv1alpha.NewSchemeAndCodecs()
printer, err := cliprint.NewTypeSetter(scheme).WrapToPrinter(tablePrinter, nil)
@richardcase
richardcase / eksd-capa.yaml
Created March 26, 2021 14:23
Example showing eks-d with CAPA
apiVersion: v1
data:
calico.yaml: |-
---
# Source: calico/templates/calico-config.yaml (v3.13.2)
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
@richardcase
richardcase / main.go
Created September 27, 2021 14:18
Tink Client Example
package main
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"os"
@richardcase
richardcase / Tasks
Created November 29, 2021 14:01
Obsidian Tasks Sidebar
## Due Today
```tasks
not done
due today
```
## Not today
```tasks
not done
@richardcase
richardcase / cluster.yaml
Created December 3, 2021 13:55
Dev CAPMVM Manifest
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: "mvm-test"
spec:
clusterNetwork:
pods:
cidrBlocks:
- 192.168.0.0/16
@richardcase
richardcase / 99_config.yaml
Last active January 28, 2022 12:49
Vagrantfile for EKSA Dev
network:
version: 2
renderer: networkd
ethernets:
eth1:
addresses:
- 192.168.9.5/24
gateway4: 192.168.9.1
nameservers:
search: [lab2]