105 lines
4.5 KiB
Bash
105 lines
4.5 KiB
Bash
#
|
|
# Cluster related variables
|
|
#
|
|
|
|
# The repo you created from this template
|
|
# e.g. https://github.com/onedr0p/home-cluster
|
|
export BOOTSTRAP_GIT_REPOSITORY=""
|
|
|
|
# To enable Flux to update your cluster on `git push` set the following to one of:
|
|
# `generated` - this will generate a token and print it in the logs
|
|
# Set this to any other string and it will be used for the secret
|
|
export BOOTSTRAP_FLUX_GITHUB_WEBHOOK_SECRET="generated" # NOTE: Must only contain alphanumeric characters and dashes
|
|
|
|
# The Weave GitOps dashboard admin password
|
|
# `generated` - this will generate a token and print it in the logs
|
|
# Set this to any other string and it will be used for the secret
|
|
export BOOTSTRAP_WEAVE_GITOPS_ADMIN_PASSWORD="generated" # NOTE: Must only contain alphanumeric characters and dashes
|
|
|
|
# Age Public Key - string should start with age
|
|
# e.g. age15uzrw396e67z9wdzsxzdk7ka0g2gr3l460e0slaea563zll3hdfqwqxdta
|
|
export BOOTSTRAP_AGE_PUBLIC_KEY=""
|
|
|
|
# Choose your timezone
|
|
# e.g. America/New_York
|
|
export BOOTSTRAP_TIMEZONE="Etc/UTC"
|
|
|
|
# Choose one of your cloudflare domains
|
|
# e.g. onedr0p.com
|
|
export BOOTSTRAP_CLOUDFLARE_DOMAIN=""
|
|
# The email you use to sign into Cloudflare with
|
|
export BOOTSTRAP_CLOUDFLARE_EMAIL=""
|
|
# Your global Cloudflare API Key (not API token)
|
|
export BOOTSTRAP_CLOUDFLARE_APIKEY=""
|
|
|
|
# Create a cloudflare tunnel to automatically ingress into your cluster
|
|
# https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/
|
|
# cloudflared tunnel create <NAME or UUID>
|
|
export BOOTSTRAP_CLOUDFLARE_ACCOUNT_TAG=""
|
|
export BOOTSTRAP_CLOUDFLARE_TUNNEL_SECRET=""
|
|
export BOOTSTRAP_CLOUDFLARE_TUNNEL_ID=""
|
|
|
|
# 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. 192.168.1.220-192.168.1.230
|
|
export BOOTSTRAP_METALLB_LB_RANGE=""
|
|
# The load balancer IP for k8s_gateway, choose from one of the available IPs above
|
|
# e.g. 192.168.1.220
|
|
export BOOTSTRAP_METALLB_K8S_GATEWAY_ADDR=""
|
|
# The load balancer IP for the ingress controller, choose from one of the available IPs above
|
|
# that doesn't conflict with any other IP addresses here
|
|
# e.g. 192.168.1.221
|
|
export BOOTSTRAP_METALLB_INGRESS_ADDR=""
|
|
# The IP Address to use with kube-vip
|
|
# Pick a unused IP that is on the same network as your nodes
|
|
# and outside the ${BOOTSTRAP_METALLB_LB_RANGE} range
|
|
# and doesn't conflict with any other IP addresses here
|
|
# e.g. 192.168.1.254
|
|
export BOOTSTRAP_KUBE_VIP_ADDR=""
|
|
# Choose your cluster or service cidrs
|
|
# Leave this unchanged unless you know what you are doing
|
|
export BOOTSTRAP_CLUSTER_CIDR="10.42.0.0/16"
|
|
export BOOTSTRAP_SERVICE_CIDR="10.43.0.0/16"
|
|
|
|
#
|
|
# Ansible related variables
|
|
#
|
|
|
|
#
|
|
# 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-" # NOTE: Must only contain alphanumeric characters and dashes
|
|
export BOOTSTRAP_ANSIBLE_DEFAULT_NODE_HOSTNAME_PREFIX="k8s-" # NOTE: Must only contain alphanumeric characters and dashes
|
|
|
|
#
|
|
# 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
|
|
# That doesn't conflict with any other IP addresses here
|
|
# e.g. 192.168.1.200
|
|
export BOOTSTRAP_ANSIBLE_HOST_ADDR_0=""
|
|
# User Ansible will log into the nodes
|
|
export BOOTSTRAP_ANSIBLE_SSH_USERNAME_0="" # NOTE: Must only contain alphanumeric characters and dashes
|
|
# Password Ansible will use to escalate to sudo
|
|
export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_0="" # NOTE: Must only contain alphanumeric characters and dashes
|
|
# Set this node as a control node (true/false)
|
|
export BOOTSTRAP_ANSIBLE_CONTROL_NODE_0=""
|
|
# Optional: Set the hostname of the node, if set this will override the *_HOSTNAME_PREFIX vars above
|
|
export BOOTSTRAP_ANSIBLE_HOSTNAME_0=""
|
|
|
|
# export BOOTSTRAP_ANSIBLE_HOST_ADDR_1=""
|
|
# export BOOTSTRAP_ANSIBLE_SSH_USERNAME_1="" # NOTE: Must only contain alphanumeric characters and dashes
|
|
# export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_1="" # NOTE: Must only contain alphanumeric characters and dashes
|
|
# export BOOTSTRAP_ANSIBLE_CONTROL_NODE_1=""
|
|
# export BOOTSTRAP_ANSIBLE_HOSTNAME_1=""
|
|
|
|
# export BOOTSTRAP_ANSIBLE_HOST_ADDR_2=""
|
|
# export BOOTSTRAP_ANSIBLE_SSH_USERNAME_2="" # NOTE: Must only contain alphanumeric characters and dashes
|
|
# export BOOTSTRAP_ANSIBLE_SUDO_PASSWORD_2="" # NOTE: Must only contain alphanumeric characters and dashes
|
|
# export BOOTSTRAP_ANSIBLE_CONTROL_NODE_2=""
|
|
# export BOOTSTRAP_ANSIBLE_HOSTNAME_2=""
|