This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
workers.yml
66 lines (65 loc) · 1.5 KB
/
workers.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
parameters:
numcpus: 4
network: default
worker_memory: 8192
disk_size: 30
image: rhcos44
cluster: testk
domain: karmalabs.com
workers: 0
scale: false
autostart: false
keys: []
api_ip:
ingress_ip:
extra_disks: []
extra_networks: []
worker_macs: []
worker_ips: []
numa:
numamode:
cpupinning:
pcidevices:
{% for num in range(0, workers) %}
{% if worker_macs and worker_macs|length >= workers %}
{% set net0 = {"name": network, "mac": worker_macs[num]} %}
{% else %}
{% set net0 = network %}
{% endif %}
{{ cluster }}-worker-{{ num }}:
domain: {{ cluster }}.{{ domain }}
image: {{ image }}
keys: {{ keys }}
enableroot: false
numcpus: {{ numcpus }}
memory: {{ worker_memory }}
autostart: {{ autostart }}
nets: {{ [net0] + extra_networks }}
disks: {{ [disk_size] + extra_disks }}
files:
- path: /etc/NetworkManager/dispatcher.d/99-forcedns
origin: 99-forcedns
mode: 755
- path: /etc/kubernetes/manifests/coredns.yml
origin: staticpods/coredns.yml
- path: /etc/kubernetes/Corefile
origin: Corefile
- path: /etc/kubernetes/manifests/mdns.yml
origin: staticpods/mdns.yml
- path: /etc/kubernetes/config.hcl.templ
origin: config.hcl.templ
- path: /etc/kubernetes/apps.db
origin: apps.db
{% if numa != None %}
numa: {{ numa }}
{% endif %}
{% if numamode != None %}
numamode: {{ numamode }}
{% endif %}
{% if cpupinning != None %}
cpupinning: {{ cpupinning }}
{% endif %}
{% if pcidevices != None and num == 0 %}
pcidevices: {{ pcidevices }}
{% endif %}
{% endfor %}