-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add KubeadmControlPlane resource (#11)
* Add KubeadmControlPlane resource and other required templates and files * Add 'cluster' prefix to API server helper template names * Other minor changes and improvements *⚠️ `KubeadmControlPlane.spec.machineTemplate` is still missing here, it will be added in a later PR.
- Loading branch information
Showing
37 changed files
with
2,169 additions
and
160 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
version = 2 | ||
|
||
# recommended defaults from https://github.com/containerd/containerd/blob/main/docs/ops.md#base-configuration | ||
# set containerd as a subreaper on linux when it is not running as PID 1 | ||
subreaper = true | ||
# set containerd's OOM score | ||
oom_score = -999 | ||
disabled_plugins = [] | ||
[plugins."containerd.runtime.v1.linux"] | ||
# shim binary name/path | ||
shim = "containerd-shim" | ||
# runtime binary name/path | ||
runtime = "runc" | ||
# do not use a shim when starting containers, saves on memory but | ||
# live restore is not supported | ||
no_shim = false | ||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] | ||
# setting runc.options unsets parent settings | ||
runtime_type = "io.containerd.runc.v2" | ||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] | ||
SystemdCgroup = true | ||
[plugins."io.containerd.grpc.v1.cri"] | ||
sandbox_image = "{{ $.Values.internal.components.cri.sandboxContainerImage.registry }}/{{ $.Values.internal.components.cri.sandboxContainerImage.name }}:{{ $.Values.internal.components.cri.sandboxContainerImage.tag }}" | ||
|
||
[plugins."io.containerd.grpc.v1.cri".registry] | ||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors] | ||
{{- range $host, $config := $.Values.global.components.cri.registries }} | ||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."{{$host}}"] | ||
endpoint = [ | ||
{{- range $value := $config -}} | ||
"https://{{$value.endpoint}}", | ||
{{- end -}} | ||
] | ||
{{- end }} | ||
[plugins."io.containerd.grpc.v1.cri".registry.configs] | ||
{{ range $host, $config := $.Values.global.components.cri.registries -}} | ||
{{ range $value := $config -}} | ||
{{ with $value.credentials -}} | ||
[plugins."io.containerd.grpc.v1.cri".registry.configs."{{$value.endpoint}}".auth] | ||
{{ if and .username .password -}} | ||
auth = {{ printf "%s:%s" .username .password | b64enc | quote }} | ||
{{- else if .auth -}} | ||
auth = {{ .auth | quote }} | ||
{{ else if .identitytoken -}} | ||
identitytoken = {{ .identitytoken | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.