-
Notifications
You must be signed in to change notification settings - Fork 37
/
kind.yaml
95 lines (86 loc) · 2.48 KB
/
kind.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# Author: Hari Sekhon
# Date: [% DATE # 2023-04-02 21:52:21 +0100 (Sun, 02 Apr 2023) %]
#
# vim:ts=2:sts=2:sw=2:et
#
# run: kind create cluster --config kind.yaml
#
# [% URL %]
#
# [% LICENSE %]
#
# [% MESSAGE %]
#
# [% LINKEDIN %]
#
# ============================================================================ #
# K i n d C o n f i g
# ============================================================================ #
# https://kind.sigs.k8s.io/docs/user/configuration/
---
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
# cluster name
name: kind
#featureGates:
# #FeatureGateName: true
# "CSIMigration": true
nodes:
- role: control-plane
# Allow local host requests to reach the Ingress controller
# https://kind.sigs.k8s.io/docs/user/ingress/
extraPortMappings:
- containerPort: 80
hostPort: 80
listenAddress: 127.0.0.1 # Optional, defaults to "0.0.0.0"
protocol: TDP # Optional, defaults to tcp
- containerPort: 443
hostPort: 443
listenAddress: 127.0.0.1 # Optional, defaults to "0.0.0.0"
protocol: TDP # Optional, defaults to tcp
# 2 more for HA
#- role: control-plane
#- role: control-plane
#
# # if you want a specific version - see:
# #
# # https://github.com/kubernetes-sigs/kind/releases
# #
# image: kindest/node:v1.16.4@sha256:b91a2c2317a000f3a783489dfb755064177dbc3a0b2f4147d50f04825d016f55
#
# # add a mount from /path/to/my/files on the host to /files on the node
# extraMounts:
# - hostPath: /path/to/my/files
# containerPath: /files
# #readOnly: true # default: false
#
- role: worker
- role: worker
#
# if you want a specific version - see:
#
# https://github.com/kubernetes-sigs/kind/releases
#
#image: kindest/node:v1.16.4@sha256:b91a2c2317a000f3a783489dfb755064177dbc3a0b2f4147d50f04825d016f55
# patch the generated kubeadm config with some extra settings
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
# - |
# apiVersion: kubelet.config.k8s.io/v1beta1
# kind: KubeletConfiguration
# evictionHard:
# nodefs.available: "0%"
# patch it further using a JSON 6902 patch
#kubeadmConfigPatchesJSON6902:
# - group: kubeadm.k8s.io
# version: v1beta3
# kind: ClusterConfiguration
# patch: |
# - op: add
# path: /apiServer/certSANs/-
# value: my-hostname