Skip to content

Instantly share code, notes, and snippets.

Physical Setup:

---------------------
| workstation  [enp5s0f0] -- internet
|                  |          ---------------
|              [enp5s0f1] -- |    switch    |
--------------------         |              |
               [lab-nuc-1] --|              |
 [lab-nuc-2] --|--------------|
@egernst
egernst / k8s-play.md
Last active May 29, 2020 11:53
Clear Containers and CRIO and K8S build up

Get go 1.8.3:

wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
sudo tar -xvf go1.8.3.linux-amd64.tar.gz -C /usr/local/
mkdir -p $HOME/go/src
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
go version
@egernst
egernst / cc3.0-and-openshift.md
Last active August 19, 2017 04:44
Clear Containers and Openshift

Running Openshift on top of Clear Containers 3.0

Overview

This documents how to get Openshift 3.6 on top of Kubernetes running with Clear Containers. An ansible playbook is used to provision a Fedora server 25 machine. Clear Containers is then installed and a basic test of deploying Clear Container and runc based pods is detailed.

Openshift

OpenShift is a public cloud application development and hosting platform which builds on top of the orchestration provided by Kubernetes.

@egernst
egernst / graphics-vfio.md
Last active January 12, 2025 04:51
Passing graphics card to a Clear Container

Passing a graphics card to a Clear Container

Host system setup:

The directions below are specific to an Ubuntu 16.04 host system equipped with a GeForce GTX 550 Ti graphics card. While the process should be the same, YMMV.

  1. Make sure your system supports IOMMU groups

todo -- get directions from SRIOV page

@egernst
egernst / cmds
Last active February 14, 2018 19:41
kata-agent work
sudo crictl runs ./sandbox_config.json
sudo crictl create db1409f8ef944cd2a2cb07 container_bad.json sandbox_config.json
sudo crictl sandboxes
sudo crictl ps
@egernst
egernst / compose-fail.md
Last active April 24, 2018 14:29
docker dns failure for kata

root@eernstworkstation:/var/run/docker/netns# iptables-save

Generated by iptables-save v1.6.0 on Fri Mar 2 14:08:00 2018

*nat :PREROUTING ACCEPT [1:60] :INPUT ACCEPT [1:60] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] :DOCKER_OUTPUT - [0:0] :DOCKER_POSTROUTING - [0:0] -A OUTPUT -d 127.0.0.11/32 -j DOCKER_OUTPUT

@egernst
egernst / dockerbehindproxy.md
Created March 26, 2018 18:56
Popular ways I fail with docker behind proxy

Getting Docker working well behind Proxy on Ubuntu

Docker's runtime config setup:

$ cat ~/.docker/config.json 
{
	"proxies":
	{
 "default":
@egernst
egernst / config.md
Last active March 28, 2018 22:03
mlx play kernel config changes

161c161
< CONFIG_CGROUP_RDMA=y
---
> # CONFIG_CGROUP_RDMA is not set
356d355
< CONFIG_BLK_MQ_RDMA=y
736d734
< # CONFIG_SMC is not set
@egernst
egernst / sequence-diagram.txt
Created April 24, 2018 17:36
Kata sequence diagram
Title: Kata Flow
participant CRI
participant CRIO
participant Kata Runtime
participant virtcontainers
participant hypervisor
participant agent
participant shim
participant proxy
#
@egernst
egernst / journal-hack.md
Created April 25, 2018 14:42
clear the journal
sudo journalctl --rotate && sudo journalctl --vacuum-time=1seconds