Skip to content

Instantly share code, notes, and snippets.

@davrodpin
davrodpin / kind-create.10-node.log
Created March 9, 2020 20:44
Not able to create 10 single-node k8s cluster with kind
for i in $(seq 1 10);do kind create cluster --name kind-${i} | tee -a kind.log; done
Creating cluster "kind-1" ...
✓ Ensuring node image (kindest/node:v1.17.0) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-kind-1"
You can now use your cluster with:
@davrodpin
davrodpin / gist:201f629c64c1b69c5c10361262807e1e
Created March 9, 2020 20:08
Multi single-node cluster creation with kind
$ uname -a
Linux <name> 5.3.0-29-generic #31-Ubuntu SMP Fri Jan 17 17:27:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ kind --version
kind version 0.7.0
$ docker --version
Docker version 19.03.3, build a872fc2f86
$ for i in $(seq 1 10);do kind create cluster --name kfc-${i}; done
Creating cluster "kfc-1" ...
✓ Ensuring node image (kindest/node:v1.17.0) 🖼
✓ Preparing nodes 📦
@davrodpin
davrodpin / client.go
Last active September 26, 2018 17:19
Golang http.Client bug when switching linux namespace before performing request.
package main
import (
"bufio"
"fmt"
"net"
"net/http"
"os/exec"
"runtime"
@davrodpin
davrodpin / gist:428709f0a6e261f82cf2b46328092fac
Created April 12, 2016 20:49
vagrant-centos-guest-network-issue
==> oneview: Configuring and enabling network interfaces...
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: configure_networks
DEBUG guest: Checking in: redhat
DEBUG guest: Found cap: configure_networks in redhat