-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkind-config.yml
45 lines (44 loc) · 1.59 KB
/
kind-config.yml
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
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2021
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
metadata:
name: config
apiServer:
extraArgs:
"enable-admission-plugins": "NamespaceLifecycle,LimitRanger,ServiceAccount,TaintNodesByCondition,Priority,DefaultTolerationSeconds,DefaultStorageClass,PersistentVolumeClaimResize,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota"
nodes:
- role: control-plane
image: kindest/node:v1.18.2
extraMounts:
- hostPath: /opt/containernetworking/plugins
containerPath: /opt/cni/bin
- role: worker
image: kindest/node:v1.18.2
extraMounts:
- hostPath: /opt/containernetworking/plugins
containerPath: /opt/cni/bin
extraPortMappings:
- containerPort: 32015
hostPort: 8082
- role: worker
image: kindest/node:v1.18.2
extraMounts:
- hostPath: /opt/containernetworking/plugins
containerPath: /opt/cni/bin
- role: worker
image: kindest/node:v1.18.2
extraMounts:
- hostPath: /opt/containernetworking/plugins
containerPath: /opt/cni/bin