-
Notifications
You must be signed in to change notification settings - Fork 14
/
sample-ansible-vars.yaml
143 lines (130 loc) · 4.46 KB
/
sample-ansible-vars.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Ansible items
ansible_user : ""
ansible_password : ""
# VM items
vm_os : "ubuntu" # Choices : [ubuntu] - Ubuntu 22.04 LTS
vm_arch : "amd64" # Choices : [amd64] - 64-bit OS / ???
# System items
enable_cgroup_v2 : true # TODO - If needed hookup or remove flag
system_ssh_keys_dir : "~/.ssh" # Directory holding public keys to be used on each system
# Generic items
prefix : ""
deployment_type : "" # Values are : [bare_metal|vsphere]
# Kubernetes - Common
#
# TODO: kubernetes_upgrade_allowed needs to be implemented to either
# add or remove locks on the kubeadm, kubelet, kubectl packages
#
kubernetes_cluster_name : "{{ prefix }}-oss" # NOTE: only change the prefix value above
kubernetes_version : ""
kubernetes_upgrade_allowed : true
kubernetes_arch : "{{ vm_arch }}"
kubernetes_cni : "calico" # Choices : [calico]
kubernetes_cni_version : "3.28.0" # Choices : [3.28.0]
kubernetes_cri : "containerd" # Choices : [containerd]
kubernetes_cri_version : "1.6.28" # Choices : [1.6.28]
kubernetes_service_subnet : ""
kubernetes_pod_subnet : ""
# Kubernetes - VIP : https://kube-vip.io
#
# Useful links:
#
# VIP IP : https://kube-vip.io/docs/installation/static/
#
kubernetes_vip_version : "0.7.1"
kubernetes_vip_ip : ""
kubernetes_vip_fqdn : ""
# Kubernetes - Load Balancer
#
# Load Balancer Type
#
# NOTE: To support SingleStore usage in the viya4-iac-k8s code base
# you need to set the value of the kubernetes_loadbalancer to
# metallb. Setting this value to anything other than metallb will
# create a cluster that will not work with Single Store.
#
kubernetes_loadbalancer : "" # Load Balancer accepted values [kube_vip,metallb]
# Load Balancer Addresses
#
# Examples for each load balancer type can be found here:
#
# kube-vip address format : https://kube-vip.io/docs/usage/cloud-provider/#the-kube-vip-cloud-provider-configmap
# MetalLB address format : https://metallb.universe.tf/configuration/#layer-2-configuration
#
# kube-vip sample:
#
# kubernetes_loadbalancer_addresses :
# - "cidr-default: 192.168.0.200/29" # CIDR-based IP range for use in the default Namespace
# - "range-development: 192.168.0.210-192.168.0.219" # Range-based IP range for use in the development Namespace
# - "cidr-finance: 192.168.0.220/29,192.168.0.230/29" # Multiple CIDR-based ranges for use in the finance Namespace
# - "cidr-global: 192.168.0.240/29" # CIDR-based range which can be used in any Namespace
#
# MetalLB sample:
#
# kubernetes_loadbalancer_addresses :
# - "192.168.10.0/24"
# - "192.168.9.1-192.168.9.5"
#
# NOTE: If you are assigning a static IP using the loadBalancerIP value in your
# load balancer controller when using `metallb` that IP must fall within the
# address range you provide below. If you are using `kube_vip` you do not
# have this limitation.
#
kubernetes_loadbalancer_addresses : []
# Kubernetes - Control Plane
control_plane_ssh_key_name : "cp_ssh"
# Labels/Taints
#
# The label names match the host names to apply these items
# If the node names do not match you'll have to apply these
# taints/labels by hand.
#
# The format the label block is:
#
# node_labels:
# <node name pattern>:
# - <label>
# - <label>
#
# The format the taint block is:
#
# node_taints:
# <node name pattern>:
# - <taint>
# - <taint>
#
# NOTE: There are no quotes around the label and taint elements
# These are literal converted to strings when applying
# into the cluster
#
## Labels
node_labels:
cas:
- workload.sas.com/class=cas
compute:
- launcher.sas.com/prepullImage=sas-programming-environment
- workload.sas.com/class=compute
singlestore:
- workload.sas.com/class=singlestore
stateful:
- workload.sas.com/class=stateful
stateless:
- workload.sas.com/class=stateless
system:
- kubernetes.azure.com/mode=system
## Taints
node_taints:
cas:
- workload.sas.com/class=cas:NoSchedule
compute:
- workload.sas.com/class=compute:NoSchedule
singlestore:
- workload.sas.com/class=singlestore:NoSchedule
stateful:
- workload.sas.com/class=stateful:NoSchedule
stateless:
- workload.sas.com/class=stateless:NoSchedule
# Jump Server
jump_ip : ""
# NFS Server
nfs_ip : ""