You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c388ee7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: charts/cozystack/templates/_helpers.tpl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ cluster:
103
103
{{- toYaml .Values.podSubnets| nindent 6 }}
104
104
serviceSubnets:
105
105
{{- toYaml .Values.serviceSubnets| nindent 6 }}
106
-
clusterName: "{{ .Chart.Name }}"
106
+
clusterName: {{ .Values.clusterName| default .Chart.Name| regexFind "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"| required "clusterName must be a valid DNS-1123 label"| quote }}
107
107
controlPlane:
108
108
endpoint: {{ required "values.yaml: `endpoint` must be set to the cluster control-plane URL (e.g. https://<vip>:6443). This field is cluster-wide: every node's kubelet and kube-proxy dials it, so it cannot be auto-derived from the current node's IP -- `talm template` runs once per node and has no way to reconcile per-node IPs into a single shared endpoint. For multi-node setups use a VIP (cozystack floatingIP) or an external load balancer; for single-node clusters the node's routable IP works.".Values.endpoint| quote }}
Copy file name to clipboardExpand all lines: charts/generic/templates/_helpers.tpl
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,14 @@ machine:
45
45
46
46
{{- /* Shared cluster section */ -}}
47
47
{{- define"talos.config.cluster" }}
48
+
48
49
cluster:
49
50
network:
50
51
podSubnets:
51
52
{{- toYaml .Values.podSubnets| nindent 6 }}
52
53
serviceSubnets:
53
54
{{- toYaml .Values.serviceSubnets| nindent 6 }}
54
-
clusterName: "{{ .Chart.Name }}"
55
+
clusterName: {{ .Values.clusterName| default .Chart.Name| regexFind "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"| required "clusterName must be a valid DNS-1123 label"| quote }}
55
56
controlPlane:
56
57
endpoint: {{ required "values.yaml: `endpoint` must be set to the cluster control-plane URL (e.g. https://<vip>:6443). This field is cluster-wide: every node's kubelet and kube-proxy dials it, so it cannot be auto-derived from the current node's IP -- `talm template` runs once per node and has no way to reconcile per-node IPs into a single shared endpoint. For multi-node setups use a VIP or an external load balancer; for single-node clusters the node's routable IP works.".Values.endpoint| quote }}
0 commit comments