capt-install
sudo snap install helm --classic
git clone https://github.com/tinkerbell/charts.git
edit:
vi /stack/values.yaml
loadBalancerIP: &publicIP 192.168.57.245
vi /smee/values.yaml
hostNetwork: true
publicIP: "192.168.57.245"
helm dependency build stack/
trusted_proxies=$(kubectl get nodes -o go-template-file=stack/kubectl.go-template)
helm install stack-release stack/ --create-namespace --namespace tink-system --wait --set "smee.trustedProxies={${trusted_proxies}}" --set "hegel.trustedProxies={${trusted_proxies}}"
mkdir ~/.cluster-api/
vi ~/.cluster-api/clusterctl.yaml
add:
providers:
- name: "tinkerbell"
url: "https://github.com/tinkerbell/cluster-api-provider-tinkerbell/releases/v0.4.0/infrastructure-components.yaml"
type: "InfrastructureProvider"
# Set CONTROL_PLANE_VIP to an available IP address for the network
# the machines will be provisioned on
export CONTROL_PLANE_VIP=192.168.57.201
# POD_CIDR is overridden here to avoid conflicting with the assumed
# Machine network of 192.168.1.0/24, this can be omitted if the
# Machine network does not conflict with the default of
# 192.168.0/0/16 or can be set to a different value if needed
export POD_CIDR=172.25.0.0/16
# SERVICE_CIDR can be overridden if the default of 172.26.0.0/16
# would interfere with the Machine network
#export SERVICE_CIDR=10.10.0.0/16
clusterctl generate cluster capi-quickstart \
--kubernetes-version v1.22.8 \
--control-plane-machine-count=1 \
--worker-machine-count=1 \
--target-namespace=tink-system \
> capi-quickstart.yaml