-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathcluster.yml
43 lines (37 loc) · 1.11 KB
/
cluster.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
# Cluster Nodes
nodes:
- address: 172.16.131.21
user: root
role:
- controlplane
- etcd
- worker
docker_socket: /var/run/docker.sock
# Name of the K8s Cluster
cluster_name: my-k8s-cluster
services:
kube-api:
# IP range for any services created on Kubernetes
# This must match the service_cluster_ip_range in kube-controller
service_cluster_ip_range: 172.16.0.0/16
# Expose a different port range for NodePort services
service_node_port_range: 30000-32767
pod_security_policy: false
kube-controller:
# CIDR pool used to assign IP addresses to pods in the cluster
cluster_cidr: 172.15.0.0/16
# IP range for any services created on Kubernetes
# This must match the service_cluster_ip_range in kube-api
service_cluster_ip_range: 172.16.0.0/16
kubelet:
# Base domain for the cluster
cluster_domain: cluster.local
# IP address for the DNS service endpoint
cluster_dns_server: 172.16.0.10
# Fail if swap is on
fail_swap_on: false
network:
plugin: calico
# Specify DNS provider (coredns or kube-dns)
dns:
provider: coredns