feat: up to hetzner cloud controller creation
This commit is contained in:
42
templates/InitConfiguration.yml.jinja2
Normal file
42
templates/InitConfiguration.yml.jinja2
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: kubeadm.k8s.io/v1beta3
|
||||
bootstrapTokens:
|
||||
- groups:
|
||||
- system:bootstrappers:kubeadm:default-node-token
|
||||
token: {{ config.bootstrap_token }}
|
||||
ttl: 24h0m0s
|
||||
usages:
|
||||
- signing
|
||||
- authentication
|
||||
kind: InitConfiguration
|
||||
localAPIEndpoint:
|
||||
advertiseAddress: {{ config.node_ip }}
|
||||
bindPort: 6443
|
||||
nodeRegistration:
|
||||
criSocket: unix:///var/run/crio/crio.sock
|
||||
imagePullPolicy: IfNotPresent
|
||||
kubeletExtraArgs:
|
||||
cloud-provider: external
|
||||
node-ip: {{ config.node_ip }}
|
||||
name: {{ config.node_name }}
|
||||
taints: null
|
||||
---
|
||||
apiServer:
|
||||
timeoutForControlPlane: 4m0s
|
||||
certSANs:
|
||||
- {{ config.node_ip }}
|
||||
apiVersion: kubeadm.k8s.io/v1beta3
|
||||
certificatesDir: /etc/kubernetes/pki
|
||||
clusterName: kubernetes
|
||||
controllerManager: {}
|
||||
dns: {}
|
||||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/etcd
|
||||
imageRepository: registry.k8s.io
|
||||
kind: ClusterConfiguration
|
||||
kubernetesVersion: 1.30.0
|
||||
networking:
|
||||
dnsDomain: cluster.local
|
||||
serviceSubnet: 10.96.0.0/12
|
||||
podSubnet: 10.244.0.0/16
|
||||
scheduler: {}
|
||||
18
templates/JoinConfiguration.yml.jinja2
Normal file
18
templates/JoinConfiguration.yml.jinja2
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: kubeadm.k8s.io/v1beta3
|
||||
caCertPath: /etc/kubernetes/pki/ca.crt
|
||||
discovery:
|
||||
bootstrapToken:
|
||||
apiServerEndpoint: {{ join_control_ip }}:6443
|
||||
token: {{ join_bootstrap_token }}
|
||||
unsafeSkipCAVerification: true
|
||||
timeout: 5m0s
|
||||
tlsBootstrapToken: {{ join_bootstrap_token }}
|
||||
kind: JoinConfiguration
|
||||
nodeRegistration:
|
||||
criSocket: unix:///var/run/crio/crio.sock
|
||||
imagePullPolicy: IfNotPresent
|
||||
kubeletExtraArgs:
|
||||
cloud-provider: external
|
||||
node-ip: {{ join_worker_ip }}
|
||||
name: {{ join_worker_name }}
|
||||
taints: null
|
||||
Reference in New Issue
Block a user