Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/t8s-cluster/ci/cp-with-resources-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
controlPlane:
resources:
requests:
memory: 4Gi
limits:
memory: 8Gi
7 changes: 7 additions & 0 deletions charts/t8s-cluster/ci/hcp-with-resources-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
controlPlane:
hosted: true
resources:
requests:
memory: 4Gi
limits:
memory: 8Gi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This function needs the whole `$` context to be able to use `.Files.Get`
*/}}
{{- define "t8s-cluster.clusterClass.k0smotronControlPlaneTemplate.spec" -}}
replicas: {{ $.Values.controlPlane.singleNode | ternary 1 3 }}
resources: {{- include "common.resources" .Values.controlPlane | nindent 2 }}
Comment thread
marvinWolff marked this conversation as resolved.
service:
type: LoadBalancer
apiPort: 6443
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{{- range $name, $file := $dynamicFiles -}}
{{- $files = append $files (dict "content" (get $file "content" | required (printf "missing content for %s" $name)) "path" (get $file "path" | required (printf "missing path for %s" $name))) -}}
{{- end -}}
{{- $apiserverPatch := dict "spec" (dict "containers" (list (dict "name" "kube-apiserver" "resources" (dict "requests" (dict "memory" "2Gi") "limits" (dict "memory" "4Gi"))))) -}}
{{- $apiserverPatch := dict "spec" (dict "containers" (list (dict "name" "kube-apiserver" "resources" (include "common.resources" .Values.controlPlane | fromYaml)))) -}}
Comment thread
marvinWolff marked this conversation as resolved.
{{- $files = append $files (include "t8s-cluster.patches.patchFile" (dict "values" $apiserverPatch "target" "kube-apiserver" "component" "memory") | fromYaml) -}}
{{- toYaml $files -}}
{{- end -}}
6 changes: 6 additions & 0 deletions charts/t8s-cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@
"pattern": "^((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(/([0-9]|[1-2][0-9]|3[0-2]))?$"
},
"uniqueItems": true
},
"resources": {
"$ref": "#/$defs/resourceRequirements"
}
},
"required": [
Expand Down Expand Up @@ -300,6 +303,9 @@
],
"additionalProperties": false,
"$defs": {
"resourceRequirements": {
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone-strict/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
},
Comment thread
marvinWolff marked this conversation as resolved.
"securityGroups": {
"type": "array",
"items": {
Expand Down
5 changes: 5 additions & 0 deletions charts/t8s-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ controlPlane:
flavor: standard.2.1905
singleNode: false
allowedCIDRs: []
resources:
requests:
memory: 2Gi
limits:
memory: 4Gi

version:
major: 1
Expand Down