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
# 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 |
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...
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
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 rungmake
thengmake install
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:
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.
#/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' |
#/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' |
{ | |
"consul": "consul:8500", | |
"preStart": "/bin/reload-nginx.sh preStart", | |
"logging": { | |
"level": "DEBUG", | |
"format": "text" | |
}, | |
"services": [ | |
{ | |
"name": "nginx", |