forked from iimacs/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkind-cluster+registry.yaml
93 lines (92 loc) · 2.4 KB
/
kind-cluster+registry.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
# kind-cluster-config.yaml
# #+NAME: kind kubeadm DynamicAuditing configuration
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."registry:5000"]
endpoint = ["http://registry:5000"]
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
metadata:
name: config
apiServer:
extraArgs:
"feature-gates": "DynamicAuditing=true"
"runtime-config": "auditregistration.k8s.io/v1alpha1=true"
"audit-dynamic-configuration": "true"
kubeadmConfigPatchesJSON6902:
- group: kubeadm.k8s.io
version: v1beta2
kind: ClusterConfiguration
patch: |
- op: add
path: /apiServer/certSANs/-
value: '127.0.0.1'
- op: add
path: /apiServer/certSANs/-
value: '*.kubemacs.org'
- op: add
path: /apiServer/certSANs/-
value: '*.ii.nz'
- op: add
path: /apiServer/certSANs/-
value: '*.ii.coop'
- op: add
path: /apiServer/certSANs/-
value: '*.sharing.io'
nodes:
- role: control-plane
extraMounts:
# - containerPath: /var/local-path-provisioner
# hostPath: /tmp/workspace/pvcs
# readOnly: False
- containerPath: /var/run/docker.sock
hostPath: /var/run/docker.sock
readOnly: False
- containerPath: /var/host/tmp
hostPath: /tmp
readOnly: False
extraPortMappings:
- containerPort: 80
hostPort: 80
- containerPort: 443
hostPort: 443
# dev tmate target port
- containerPort: 2200
hostPort: 2200
# - containerPort: 4000
# hostPort: 4000
# - containerPort: 4001
# hostPort: 4001
- containerPort: 5432
hostPort: 5432
- containerPort: 6443
hostPort: 6443
# - containerPort: 10350
# hostPort: 10350
# - containerPort: 80
# hostPort: 2080
# - containerPort: 443
# hostPort: 20443
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
authorization-mode: "AlwaysAllow"
- role: worker
extraMounts:
# - containerPath: /var/local-path-provisioner
# hostPath: /tmp/workspace/pvcs
# readOnly: False
- containerPath: /var/run/docker.sock
hostPath: /var/run/docker.sock
readOnly: False
- containerPath: /var/host/tmp
hostPath: /tmp
readOnly: False