chore(talos): update formatting in talconfig

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-05-22 15:14:04 -04:00
1 parent 13412a7414
commit 452398dc32
1 file changed
+14 -6
@@ -5,7 +5,7 @@ talosVersion: v1.7.2
# renovate: datasource=docker depName=ghcr.io/siderolabs/kubelet # renovate: datasource=docker depName=ghcr.io/siderolabs/kubelet
kubernetesVersion: v1.30.1 kubernetesVersion: v1.30.1
clusterName: &cluster #{ bootstrap_cluster_name|default('home-kubernetes', true) }# clusterName: "#{ bootstrap_cluster_name | default('home-kubernetes', true) }#"
endpoint: https://#{ bootstrap_controller_vip }#:6443 endpoint: https://#{ bootstrap_controller_vip }#:6443
clusterPodNets: clusterPodNets:
- "#{ bootstrap_pod_network.split(',')[0] }#" - "#{ bootstrap_pod_network.split(',')[0] }#"
@@ -18,6 +18,8 @@ additionalApiServerCertSans: &sans
- "#{ item }#" - "#{ item }#"
#% endfor %# #% endfor %#
additionalMachineCertSans: *sans additionalMachineCertSans: *sans
# Disable built-in Flannel to use Cilium
cniConfig: cniConfig:
name: none name: none
@@ -125,7 +127,8 @@ patches:
extraArgs: extraArgs:
rotate-server-certificates: true rotate-server-certificates: true
nodeIP: nodeIP:
validSubnets: ["#{ bootstrap_node_network }#"] validSubnets:
- #{ bootstrap_node_network }#
#% if bootstrap_dns_servers | length %# #% if bootstrap_dns_servers | length %#
# Force nameserver # Force nameserver
@@ -168,7 +171,10 @@ patches:
- destination: /var/openebs/local - destination: /var/openebs/local
type: bind type: bind
source: /var/openebs/local source: /var/openebs/local
options: ["bind", "rshared", "rw"] options:
- bind
- rshared
- rw
#% if bootstrap_secureboot.enabled and bootstrap_secureboot.encrypt_disk_with_tpm %# #% if bootstrap_secureboot.enabled and bootstrap_secureboot.encrypt_disk_with_tpm %#
# Encrypt system disk with TPM # Encrypt system disk with TPM
@@ -216,7 +222,7 @@ controlPlane:
extraArgs: extraArgs:
listen-metrics-urls: http://0.0.0.0:2381 listen-metrics-urls: http://0.0.0.0:2381
advertisedSubnets: advertisedSubnets:
- "#{ bootstrap_node_network }#" - #{ bootstrap_node_network }#
# Disable default API server admission plugins. # Disable default API server admission plugins.
- |- - |-
@@ -229,8 +235,10 @@ controlPlane:
features: features:
kubernetesTalosAPIAccess: kubernetesTalosAPIAccess:
enabled: true enabled: true
allowedRoles: ["os:admin"] allowedRoles:
allowedKubernetesNamespaces: ["system-upgrade"] - os:admin
allowedKubernetesNamespaces:
- system-upgrade
#% if bootstrap_user_patches %# #% if bootstrap_user_patches %#
# User specified controlPlane patches # User specified controlPlane patches
- "@./patches/controlPlane.yaml" - "@./patches/controlPlane.yaml"