Skip to content

Instantly share code, notes, and snippets.

View No9's full-sized avatar
🦀
Rusting with a slight chance of code

Anton Whalley No9

🦀
Rusting with a slight chance of code
View GitHub Profile
# configuration is based on https://github.com/containerd/containerd/blob/v1.6.0-rc.1/docs/cri/config.md
version = 2
root = "/var/data/cripersistentstorage"
state = "/run/containerd"
oom_score = 0
[grpc]
address = "/run/containerd/containerd.sock"
uid = 0
gid = 0
@No9
No9 / install-commands.md
Created December 17, 2022 18:22
Notes on building wasi edge container
sudo dnf install -y make python git gcc automake autoconf libcap-devel     systemd-devel yajl-devel libseccomp-devel pkg-config libgcrypt-devel     go-md2man glibc-static python3-libmount libtool
mkdir code 
cd code/
git clone https://github.com/containers/crun.git
cd crun/
./autogen.sh 
./configure 
make 
sudo dnf install podman 
@No9
No9 / TAT.md
Created November 5, 2022 17:27
Notes on using the architecture toolkit

For subnets this error may occour:

terraform init
Initializing modules...
Downloading registry.terraform.io/cloud-native-toolkit/vpc/ibm 1.17.0 for ibm-vpc...
- ibm-vpc in .terraform/modules/ibm-vpc
Downloading registry.terraform.io/cloud-native-toolkit/vpc-gateways/ibm 1.10.0 for ibm-vpc-gateways...
- ibm-vpc-gateways in .terraform/modules/ibm-vpc-gateways
Downloading registry.terraform.io/cloud-native-toolkit/vpc-subnets/ibm 1.14.0 for ibm-vpc-subnets...
@No9
No9 / fbsd-k8s.md
Last active September 11, 2022 23:00
K8s on FreeBSD

Download prebuilt k8s services

https://github.com/tnorlin/kubernetes/releases/tag/v1.24.4-freebsd

wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kube-apiserver
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kube-controller-manager
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kube-scheduler
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kubectl
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kubectl-convert
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kubelet
@No9
No9 / notes.md
Last active October 14, 2022 20:18
Additional notes on the containerd on freebsd article

containerd on FreeBSD

Loved this article and decided to take it for a drive. https://productionwithscissors.run/2022/09/04/containerd-linux-on-freebsd/ These notes are nits really and likely most people will find there way around them. That said I thought I would share as people new to FreeBSD may not have the patience.

  • In FreeBSD R13.1 The default go is 1.18 so use ln -s /usr/local/go118 /usr/local/go
  • Make sure you run bash and not sh by running bash before the other commands
  • For containerd gmake install failed had to run gmake then gmake install
@No9
No9 / keybase.md
Created November 7, 2021 22:52
keybase.md

Keybase proof

I hereby claim:

  • I am no9 on github.
  • I am antonwhalley (https://keybase.io/antonwhalley) on keybase.
  • I have a public key whose fingerprint is BED0 79E6 7FD4 31E4 5301 B1C9 949E 671B 46AC 8A34

To claim this, I am signing this object:

@No9
No9 / prereqs.md
Last active May 5, 2020 10:40
IBM Cloud Workshop - Pre-Reqs

Prerequisites

This lab assumes that the reader is familiar with basic Kubernetes concepts. See the IBM Cloud Kubernetes Service Lab for a refresher of these concepts.

Before you begin, you need to install the required CLIs to manage your Kubernetes clusters. IBM provides an installer here to get all of these tools together. There are instructions for how to obtain the tools manually if desired. The following tools are used in this lab:

  • kubectl CLI
  • kubectl is a command line interface for running commands against Kubernetes clusters.
@No9
No9 / install-cos-openshift.sh
Last active March 31, 2020 00:14
install-cos-openshift.sh
#/bin/sh
# Default script for provisining a core dump handler environment.
# See: https://github.com/No9/ibm-core-dump-handler
# Assumes login of ibmcloud is already performed and helm v3 is installed on the local machine
# Change this clustername to install on the specific cluster or pass it with -c
# e.g. ./install-cos.sh -c kcdt-test-002
CLUSTER_NAME='kcdt-test-002'
@No9
No9 / install-cos.sh
Last active March 27, 2020 11:43
A script to provision and configure a cloud object store instance on IBM Cloud Kuberenetes Service
#/bin/sh
# Default script for provisining a core dump handler environment.
# See: https://github.com/No9/ibm-core-dump-handler
# Assumes login of ibmcloud is already performed and helm v3 is installed on the local machine
# Change this clustername to install on the specific cluster or pass it with -c
# e.g. ./install-cos.sh -c kcdt-test-002
CLUSTER_NAME='kcdt-test-002'
@No9
No9 / pilot.json
Created December 23, 2018 01:19
Pilot Sample JSON
{
"consul": "consul:8500",
"preStart": "/bin/reload-nginx.sh preStart",
"logging": {
"level": "DEBUG",
"format": "text"
},
"services": [
{
"name": "nginx",