65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
cluster_name: k8s-nsk
|
|
# kubernetes_version: v1.23.15-rancher1-1
|
|
|
|
ignore_docker_version: true
|
|
|
|
nodes:
|
|
- address: 192.168.9.101
|
|
hostname_override: node1
|
|
user: root
|
|
labels:
|
|
worker: yes
|
|
ingress: yes
|
|
location: nsk
|
|
role: [controlplane, worker, etcd]
|
|
- address: 192.168.9.102
|
|
hostname_override: node2
|
|
user: root
|
|
labels:
|
|
worker: yes
|
|
ingress: yes
|
|
location: nsk
|
|
role: [controlplane, worker, etcd]
|
|
- address: 192.168.9.103
|
|
hostname_override: node3
|
|
user: root
|
|
labels:
|
|
worker: yes
|
|
ingress: yes
|
|
location: nsk
|
|
role: [controlplane, worker, etcd]
|
|
|
|
services:
|
|
etcd:
|
|
snapshot: true
|
|
creation: 6h
|
|
retention: 30h
|
|
kube-controller:
|
|
extra_args:
|
|
terminated-pod-gc-threshold: 100
|
|
kubelet:
|
|
extra_binds:
|
|
- "/usr/lib/modules:/usr/lib/modules"
|
|
- "/var/lib/piraeus-datastore:/var/lib/piraeus-datastore"
|
|
- "/usr/src:/usr/src"
|
|
|
|
# authentication:
|
|
# strategy: x509
|
|
# sans:
|
|
# - "rke.domain.ru"
|
|
|
|
ingress:
|
|
provider: nginx
|
|
node_selector:
|
|
ingress: yes
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/controlplane
|
|
operator: Exists
|
|
effect: NoSchedule
|
|
- key: node-role.kubernetes.io/etcd
|
|
operator: Exists
|
|
effect: NoExecute
|
|
extra_args:
|
|
http-port: 80
|
|
https-port: 443
|