Initial commit: Add tinkerbell-k0s cluster templates

This commit is contained in:
Pavel Basov
2025-12-15 20:35:51 +01:00
commit b0d7a8eb4e
17 changed files with 460 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
spec:
clusterNetwork:
pods:
cidrBlocks:
{{- toYaml .Values.clusterNetwork.pods.cidrBlocks | nindent 8 }}
services:
cidrBlocks:
{{- toYaml .Values.clusterNetwork.services.cidrBlocks | nindent 8 }}
controlPlaneEndpoint:
host: {{ .Values.controlPlaneEndpoint.host | default .Values.k0smotron.externalAddress | quote }}
port: {{ .Values.k0smotron.service.apiPort }}
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: K0smotronControlPlane
name: {{ .Release.Name }}-cp
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellCluster
name: {{ .Release.Name }}