Skip to content

Instantly share code, notes, and snippets.

Avatar

Duffie Cooley mauilion

View GitHub Profile
View kind config
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
extraMounts:
- containerPath: /kind/manifests/default-cni.yaml
hostPath: /home/dcooley/git/kind-demo/ha-cluster/manifests/calico.yaml
readOnly: true
type: File
- role: control-plane
View km-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
@mauilion
mauilion / Start command
Last active Jul 30, 2019
testing multinode with pv
View Start command
kind-0.3.0 create cluster --config kind-config.yaml --image=kindest/node:v1.13.6@sha256:9e07014fb48c746deb98ec8aafd58c3918622eca6063e643c6e6d86c86e170b4
View good build
11:47 $ kind build node-image
+++ [0731 11:47:52] Verifying Prerequisites....
+++ [0731 11:47:53] Building Docker image kube-build:build-93593ef122-5-v1.12.5-1
+++ [0731 11:49:39] Keeping image kube-build:build-93593ef122-5-v1.12.5-1
+++ [0731 11:49:39] Creating data container kube-build-data-93593ef122-5-v1.12.5-1
+++ [0731 11:50:03] Syncing sources to container
+++ [0731 11:50:03] Stopping any currently running rsyncd container
+++ [0731 11:50:04] Starting rsyncd container
+++ [0731 11:50:05] Running rsync
+++ [0731 11:50:07] Stopping any currently running rsyncd container
View build
12:16 $ kind build node-image --loglevel=debug
INFO[12:16:37] Starting to build Kubernetes
DEBU[12:16:37] Running: build/run.sh [build/run.sh make all WHAT=cmd/kubeadm cmd/kubectl cmd/kubelet KUBE_BUILD_PLATFORMS=linux/amd64 KUBE_VERBOSE=0]
+++ [0731 12:16:37] Verifying Prerequisites....
+++ [0731 12:16:37] Building Docker image kube-build:build-aebf82a796-5-v1.12.7-1
+++ [0731 12:16:39] Keeping container kube-build-data-aebf82a796-5-v1.12.7-1
+++ [0731 12:16:39] Keeping container kube-build-data-93593ef122-5-v1.12.5-1
+++ [0731 12:16:39] Keeping container kube-build-data-aebf82a796-5-v1.12.7-1
+++ [0731 12:16:39] Keeping container kube-build-data-93593ef122-5-v1.12.5-1
+++ [0731 12:16:39] Keeping container kube-build-data-aebf82a796-5-v1.12.7-1
View kind.yaml
kind create cluster --config kind.yaml --image=kindest/node:v1.14.9
docker pull <yer image:tag>
kind load docker-image <yer image:tag>
View jeefy-host
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: name
name: name
spec:
containers:
- command:
View gist:06e062e5154958f06d2d6f2fa0f5238a
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha4
kubeadmConfigPatches:
- |
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
nodefs.available: "0%"
- |
kind: ClusterConfiguration
@mauilion
mauilion / echoserver.yaml
Last active May 14, 2020
available at git.io/echoserver.yaml apply with kubectl apply -f https://git.io/echoserver.yaml
View echoserver.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: echoserver
name: echoserver
spec:
replicas: 1
selector:
matchLabels:
View gist:4ea64817fb6ac5f4f5656333e4c152d4
[
{
"Name": "kind",
"Id": "598350d8fd243335bc467d3637e9f8a1e873a1347bb74a388302003d9394b6c4",
"Created": "2020-05-11T12:55:41.17423453-07:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": true,
"IPAM": {
"Driver": "default",