-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(t8s-cluster/management-cluster): add memory safety net for kubelet
- Loading branch information
Showing
8 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...s/management-cluster/clusterClass/bootstrapConfigTemplate/_kubeadmConfigTemplateSpec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
.../templates/management-cluster/clusterClass/systemdOverrides/_containerd_override.conf.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{- define "t8s-cluster.clusterClass.node.systemdOverride.containerd" -}} | ||
[Service] | ||
Slice={{- include "t8s-cluster.clusterClass.systemdOverride.slice.runtime" (dict) -}} | ||
{{- end -}} |
4 changes: 4 additions & 0 deletions
4
...ter/templates/management-cluster/clusterClass/systemdOverrides/_kubelet_override.conf.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{- define "t8s-cluster.clusterClass.node.systemdOverride.kubelet" -}} | ||
[Service] | ||
Slice={{- include "t8s-cluster.clusterClass.systemdOverride.slice.runtime" (dict) -}} | ||
{{- end -}} |
8 changes: 8 additions & 0 deletions
8
charts/t8s-cluster/templates/management-cluster/clusterClass/systemdOverrides/_overrides.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{- define "t8s-cluster.clusterClass.node.systemdOverrides" -}} | ||
{{- $files := list -}} | ||
{{/* TODO: containerd is already running when this is set, therefore this is not working {{- range $service := list "containerd" "kubelet" -}}*/}} | ||
{{- range $service := list "kubelet" -}} | ||
{{- $files = append $files (dict "content" (include (printf "t8s-cluster.clusterClass.node.systemdOverride.%s" $service) (dict)) "path" (printf "/etc/systemd/system/%s.service.d/slice.conf" $service)) -}} | ||
{{- end -}} | ||
{{- $files | toYaml -}} | ||
{{- end -}} |
3 changes: 3 additions & 0 deletions
3
charts/t8s-cluster/templates/management-cluster/clusterClass/systemdOverrides/_slices.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{- define "t8s-cluster.clusterClass.systemdOverride.slice.runtime" -}} | ||
runtime.slice | ||
{{- end -}} |