-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigmap.yaml
40 lines (40 loc) · 1.2 KB
/
configmap.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
---
# This ConfigMap is used to configure the webmesh-cni installation.
apiVersion: v1
kind: ConfigMap
metadata:
name: webmesh-config
namespace: kube-system
labels:
k8s-app: webmesh-cni
data:
# TODO: Allow entire node config via ConfigMap.
cluster-domain: "cluster.local"
# The cluster pod CIDR is used to handle IP allocation for pods.
pod-cidr: "10.42.0.0/16,fd00:10:42::/48"
# The cluster service CIDR is used to determine which IPs are cluster-local.
service-cidr: "10.96.0.0/16,fd00:10:96::/112"
# The network config to install on each node.
cni-network-config: |-
{
"name": "k8s-pod-network",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "webmesh",
"logLevel": "info",
"logFile": "/var/log/webmesh-cni.log",
"interface": {
"mtu": 1420,
"disableIPv4": false,
"disableIPv6": false
},
"kubernetes": {
"kubeconfig": "__KUBECONFIG_FILEPATH__",
"nodeName": "__KUBERNETES_NODE_NAME__",
"k8sAPIRoot": "__KUBERNETES_API_ENDPOINT__",
"namespace": "__KUBERNETES_POD_NAMESPACE__"
}
}
]
}