100 lines
4.4 KiB
Bash
100 lines
4.4 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
|
|
|
|
# The Grafana 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_GRAFANA_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"
|
|
|
|
# The email you want to be associated with the ACME account
|
|
export BOOTSTRAP_ACME_EMAIL=""
|
|
|
|
# Choose one of your cloudflare domains
|
|
# e.g. onedr0p.com
|
|
export BOOTSTRAP_CLOUDFLARE_DOMAIN=""
|
|
# Your global Cloudflare API Token (not API Key)
|
|
export BOOTSTRAP_CLOUDFLARE_APITOKEN=""
|
|
|
|
# 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=""
|
|
|
|
# The load balancer IP for k8s_gateway, choose a available IP in your nodes network that is not being used
|
|
export BOOTSTRAP_K8S_GATEWAY_ADDR=""
|
|
# The load balancer IP for ingress-nginx, choose a available IP in your nodes network that is not being used
|
|
export BOOTSTRAP_INGRESS_NGINX_ADDR=""
|
|
# The IP address to use with kube-vip, choose a available IP in your nodes network that is not being used
|
|
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
|
|
#
|
|
|
|
# IP Address to the 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=""
|