-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.config.env.example
126 lines (106 loc) · 4.75 KB
/
.config.env.example
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
#
# Cluster related variables
#
# The repo you created from this template
# e.g. https://github.com/k8s-at-home/home-cluster
export BOOTSTRAP_GIT_REPOSITORY="https://github.com/nonkronk/it-k8s-gitops"
# Choose one of your cloudflare domains
# e.g. k8s-at-home.com
export BOOTSTRAP_CLOUDFLARE_DOMAIN=yourdomain.tld
# The email you use to sign into Cloudflare with
export [email protected]
# Your global Cloudflare API Key
export BOOTSTRAP_CLOUDFLARE_APIKEY=fisdhgafdiusahfuasdhf2949374hdfjkasbf
# Pick a range of unused IPs that are on the same network as your nodes
# You don't need many IPs, just choose 10 IPs to start with
# e.g. 172.0.1.220-172.0.1.230
export BOOTSTRAP_METALLB_LB_RANGE="172.0.1.230-172.0.1.240"
# The load balancer IP for traefik, choose from one of the available IPs above
# e.g. 172.0.1.220
export BOOTSTRAP_METALLB_TRAEFIK_ADDR="172.0.1.230"
# Age Public Key - string should start with age
# e.g. age15uzrw396e67z9wdzsxzdk7ka0g2gr3l460e0slaea563zll3hdfqwqxdta
export BOOTSTRAP_AGE_PUBLIC_KEY=age15uzrw396e67z9wdzsxzdk7ka0g2gr3l460e0slaea563zll3hdfqwqxdta
# Weave GitOps password
export WEAVE_PASSWORD=afsdasfdasdffasdasdfasdf
#
# Ansible related variables
#
# The network interface on the host kube-vip should attach to
# e.g. eno1
export BOOTSTRAP_ANSIBLE_KUBE_VIP_INTERFACE="eth0"
# IP Address to use with KubeVIP
# Pick a unused IP that is on the same network as your nodes
# e.g. 172.0.1.254
export BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDRESS="172.0.1.209"
#
# Default prefixes for hostnames assigned by Ansible
# These are unused on nodes where BOOTSTRAP_ANSIBLE_HOSTNAME_ is provided
#
export BOOTSTRAP_ANSIBLE_DEFAULT_CONTROL_NODE_HOSTNAME_PREFIX="k8s-"
export BOOTSTRAP_ANSIBLE_DEFAULT_NODE_HOSTNAME_PREFIX="k8s-"
#
# Ansible hosts - repeat this block as many times as you need,
# incrementing the last digit on the variable name for each node
#
# Host IP Address to the control plane node
# e.g. 172.0.1.200
export BOOTSTRAP_ANSIBLE_HOST_ADDR_0="172.0.1.201"
# User Ansible will log into the nodes
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_0="ubuntu"
# Password Ansible will use to esculate to sudo
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_0="yourstrongpassword"
# Set this node as a control node (true/false)
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_0="true"
# Optionally set the hostname of the node, if set this will override the *_HOSTNAME_PREFIX vars above
export BOOTSTRAP_ANSIBLE_HOSTNAME_0="master-node-1"
export BOOTSTRAP_ANSIBLE_HOST_ADDR_1="172.0.1.211"
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_1="ubuntu"
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_1="yourstrongpassword"
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_1="true"
export BOOTSTRAP_ANSIBLE_HOSTNAME_1="master-node-2"
export BOOTSTRAP_ANSIBLE_HOST_ADDR_2="172.0.1.221"
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_2="ubuntu"
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_2="yourstrongpassword"
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_2="true"
export BOOTSTRAP_ANSIBLE_HOSTNAME_2="master-node-3"
# PVE1 WORKER-NODE
export BOOTSTRAP_ANSIBLE_HOST_ADDR_3="172.0.1.202"
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_3="ubuntu"
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_3="yourstrongpassword"
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_3="false"
export BOOTSTRAP_ANSIBLE_HOSTNAME_3="worker-node-1"
export BOOTSTRAP_ANSIBLE_HOST_ADDR_4="172.0.1.212"
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_4="ubuntu"
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_4="yourstrongpassword"
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_4="false"
export BOOTSTRAP_ANSIBLE_HOSTNAME_4="worker-node-2"
# PVE2 WORKER-NODE
export BOOTSTRAP_ANSIBLE_HOST_ADDR_5="172.0.1.213"
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_5="ubuntu"
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_5="yourstrongpassword"
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_5="false"
export BOOTSTRAP_ANSIBLE_HOSTNAME_5="worker-node-3"
export BOOTSTRAP_ANSIBLE_HOST_ADDR_6="172.0.1.222"
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_6="ubuntu"
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_6="yourstrongpassword"
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_6="false"
export BOOTSTRAP_ANSIBLE_HOSTNAME_6="worker-node-4"
# PVE3 WORKER-NODE
export BOOTSTRAP_ANSIBLE_HOST_ADDR_7="172.0.1.223"
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_7="ubuntu"
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_7="yourstrongpassword"
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_7="false"
export BOOTSTRAP_ANSIBLE_HOSTNAME_7="worker-node-5"
# To fix dns name resolution while upgrade & Fix release upgrade error
# echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
# sudo truncate -s 0 /var/lib/ubuntu-release-upgrader/release-upgrade-available
# Fix control plane is available to accept connection
# cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
# br_netfilter
# EOF
# cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
# net.bridge.bridge-nf-call-ip6tables = 1
# net.bridge.bridge-nf-call-iptables = 1
# EOF
# sudo sysctl --system