Skip to content

Instantly share code, notes, and snippets.

View mauilion's full-sized avatar

Duffie Cooley mauilion

View GitHub Profile
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: "10.192.0.2"
bindPort: 6443
bootstrapTokens:
- groups:
- system:bootstrappers:kubeadm:default-node-token
# token: ...
ttl: 24h0m0s
@mauilion
mauilion / etcdclient.yaml
Last active November 8, 2021 17:44
etcdclient static pod with all the bits configured.
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
component: etcdclient
tier: debug
name: etcdclient
namespace: kube-system
spec:
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
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
@mauilion
mauilion / Start command
Last active July 30, 2019 22:27
testing multinode with pv
kind-0.3.0 create cluster --config kind-config.yaml --image=kindest/node:v1.13.6@sha256:9e07014fb48c746deb98ec8aafd58c3918622eca6063e643c6e6d86c86e170b4
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
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
kind create cluster --config kind.yaml --image=kindest/node:v1.14.9
docker pull <yer image:tag>
kind load docker-image <yer image:tag>
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: name
name: name
spec:
containers:
- command:
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha4
kubeadmConfigPatches:
- |
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
nodefs.available: "0%"
- |
kind: ClusterConfiguration