41 lines
1019 B
YAML
41 lines
1019 B
YAML
---
|
|
###########################################################################
|
|
#
|
|
# Inventory for microk8s cluster deployment playbook.
|
|
#
|
|
###########################################################################
|
|
|
|
all:
|
|
hosts:
|
|
node1:
|
|
ansible_host: 192.168.7.231
|
|
node2:
|
|
ansible_host: 192.168.7.232
|
|
node3:
|
|
ansible_host: 192.168.7.233
|
|
children:
|
|
master:
|
|
hosts:
|
|
node1:
|
|
workers:
|
|
hosts:
|
|
node2:
|
|
node3:
|
|
# Global variables
|
|
vars:
|
|
# Switch to control whether we are creating a cluster, or just
|
|
# deploying to a single host
|
|
do_cluster: true
|
|
# Minimum hosts for our cluster
|
|
minhosts: "3"
|
|
# microk8s version
|
|
microk8s_version: "1.20/stable"
|
|
# Switch to control application of proxy config or not
|
|
do_proxy: false
|
|
# Proxy host (if required)
|
|
proxy_host: http://10.100.255.18:3128
|
|
# Network range(s) to add to 'NO_PROXY' (if doing proxy config)
|
|
net_cidrs: 10.104.3.0/24,10.104.4.0/24,10.104.5.0/24
|
|
|
|
# EOF
|