Skip to content

Instantly share code, notes, and snippets.

@kevinblanco
Created May 15, 2020 01:34
Show Gist options
  • Save kevinblanco/fecf4d460af6a824fb27a81dd794c581 to your computer and use it in GitHub Desktop.
Save kevinblanco/fecf4d460af6a824fb27a81dd794c581 to your computer and use it in GitHub Desktop.
KIND kubernetes YAML
apiVersion: v1
kind: Pod
metadata:
name: kind-cluster
spec:
containers:
- image: jieyu/kind-cluster-buster:v0.1.0
imagePullPolicy: Always
name: kind-cluster
stdin: true
tty: true
args:
- /bin/bash
env:
- name: API_SERVER_ADDRESS
valueFrom:
fieldRef:
fieldPath: status.podIP
volumeMounts:
- mountPath: /var/lib/docker
name: varlibdocker
- mountPath: /lib/modules
name: libmodules
readOnly: true
securityContext:
privileged: true
ports:
- containerPort: 30001
name: api-server-port
protocol: TCP
readinessProbe:
failureThreshold: 15
httpGet:
path: /healthz
port: api-server-port
scheme: HTTPS
initialDelaySeconds: 120
periodSeconds: 20
successThreshold: 1
timeoutSeconds: 1
volumes:
- name: varlibdocker
emptyDir: {}
- name: libmodules
hostPath:
path: /lib/modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment