-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
talos_patches
makejinja func and move certain patches to `pat…
…ches` directory (#1509)
- Loading branch information
Showing
15 changed files
with
143 additions
and
148 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
15 changes: 15 additions & 0 deletions
15
bootstrap/templates/kubernetes/bootstrap/talos/patches/README.md.j2
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,15 @@ | ||
# Talos Patching | ||
|
||
This directory contains Kustomization patches that are added to the talhelper configuration file. | ||
|
||
<https://www.talos.dev/v1.7/talos-guides/configuration/patching/> | ||
|
||
## Patch Directories | ||
|
||
Under this `patches` directory, there are several sub-directories that can contain patches that are added to the talhelper configuration file. | ||
Each directory is optional and therefore might not created by default. | ||
|
||
- `global/`: patches that are applied to both the controller and worker configurations | ||
- `controller/`: patches that are applied to the controller configurations | ||
- `worker/`: patches that are applied to the worker configurations | ||
- `${node-hostname}/`: patches that are applied to the node with the specified name |
8 changes: 8 additions & 0 deletions
8
bootstrap/templates/kubernetes/bootstrap/talos/patches/controller/api-access.yaml.j2
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 @@ | ||
machine: | ||
features: | ||
kubernetesTalosAPIAccess: | ||
enabled: true | ||
allowedRoles: | ||
- os:admin | ||
allowedKubernetesNamespaces: | ||
- system-upgrade |
12 changes: 12 additions & 0 deletions
12
bootstrap/templates/kubernetes/bootstrap/talos/patches/controller/cluster.yaml.j2
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,12 @@ | ||
cluster: | ||
allowSchedulingOnControlPlanes: true | ||
controllerManager: | ||
extraArgs: | ||
bind-address: 0.0.0.0 | ||
coreDNS: | ||
disabled: true | ||
proxy: | ||
disabled: true | ||
scheduler: | ||
extraArgs: | ||
bind-address: 0.0.0.0 |
2 changes: 2 additions & 0 deletions
2
...plates/kubernetes/bootstrap/talos/patches/controller/disable-admission-controller.yaml.j2
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,2 @@ | ||
- op: remove | ||
path: /cluster/apiServer/admissionControl |
6 changes: 6 additions & 0 deletions
6
bootstrap/templates/kubernetes/bootstrap/talos/patches/controller/etcd.yaml.j2
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,6 @@ | ||
cluster: | ||
etcd: | ||
extraArgs: | ||
listen-metrics-urls: http://0.0.0.0:2381 | ||
advertisedSubnets: | ||
- #{ bootstrap_node_network }# |
7 changes: 7 additions & 0 deletions
7
bootstrap/templates/kubernetes/bootstrap/talos/patches/global/cluster-discovery.yaml.j2
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,7 @@ | ||
cluster: | ||
discovery: | ||
registries: | ||
kubernetes: | ||
disabled: false | ||
service: | ||
disabled: false |
12 changes: 12 additions & 0 deletions
12
bootstrap/templates/kubernetes/bootstrap/talos/patches/global/containerd.yaml.j2
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,12 @@ | ||
machine: | ||
files: | ||
- op: create | ||
path: /etc/cri/conf.d/20-customization.part | ||
content: |- | ||
[plugins."io.containerd.grpc.v1.cri"] | ||
enable_unprivileged_ports = true | ||
enable_unprivileged_icmp = true | ||
[plugins."io.containerd.grpc.v1.cri".containerd] | ||
discard_unpacked_layers = false | ||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] | ||
discard_unpacked_layers = false |
3 changes: 3 additions & 0 deletions
3
bootstrap/templates/kubernetes/bootstrap/talos/patches/global/disable-search-domain.yaml.j2
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 @@ | ||
machine: | ||
network: | ||
disableSearchDomain: true |
6 changes: 6 additions & 0 deletions
6
bootstrap/templates/kubernetes/bootstrap/talos/patches/global/hostdns.yaml.j2
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,6 @@ | ||
machine: | ||
features: | ||
hostDNS: | ||
enabled: true | ||
resolveMemberNames: true | ||
forwardKubeDNSToHost: false |
7 changes: 7 additions & 0 deletions
7
bootstrap/templates/kubernetes/bootstrap/talos/patches/global/kubelet.yaml.j2
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,7 @@ | ||
machine: | ||
kubelet: | ||
extraArgs: | ||
rotate-server-certificates: true | ||
nodeIP: | ||
validSubnets: | ||
- #{ bootstrap_node_network }# |
10 changes: 10 additions & 0 deletions
10
bootstrap/templates/kubernetes/bootstrap/talos/patches/global/openebs-local.yaml.j2
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,10 @@ | ||
machine: | ||
kubelet: | ||
extraMounts: | ||
- destination: /var/openebs/local | ||
type: bind | ||
source: /var/openebs/local | ||
options: | ||
- bind | ||
- rshared | ||
- rw |
7 changes: 7 additions & 0 deletions
7
bootstrap/templates/kubernetes/bootstrap/talos/patches/global/sysctl.yaml.j2
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,7 @@ | ||
machine: | ||
sysctls: | ||
fs.inotify.max_queued_events: "65536" | ||
fs.inotify.max_user_watches: "524288" | ||
fs.inotify.max_user_instances: "8192" | ||
net.core.rmem_max: "2500000" | ||
net.core.wmem_max: "2500000" |
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