Skip to content

Commit 39b98c7

Browse files
authored
chore: Simplify example (#194)
1 parent 3f31e17 commit 39b98c7

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

examples/talos/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
In talos machine is configured from a single configuration file in yaml format. Talos terraform module allows to specify overlays of the main configuration file maintained by cloudless labs [here](https://github.com/fluencelabs/spectrum/blob/main/terraform-modules/talos/base_config.yml) with `config_pathes` option.
66

7-
You can configure server specific things like layout of disks or network configuration. Checkout [talos documentation](https://www.talos.dev/v1.9/reference/configuration/v1alpha1/config/) and see [`cp-0.yml`](https://github.com/fluencelabs/blob/main/examples/talos/patches/cp-0.yml) for an example of a `bond` interface configuration.
7+
You can configure server specific things like layout of disks or network configuration. Checkout [talos documentation](https://www.talos.dev/v1.9/reference/configuration/v1alpha1/config/) and see [`patch.yml`](https://github.com/fluencelabs/blob/main/examples/talos/patch.yml) for an example of a `bond` interface configuration.
88

99
## Terraform state
1010

examples/talos/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ module "talos" {
2929
name = "cp-0"
3030
server_ip = "1.2.3.4"
3131
config_patches = [
32-
file("${path.root}/patches/base.yml"),
33-
file("${path.root}/patches/cp-0.yml"),
32+
file("${path.root}/patch.yml"),
3433
]
3534
},
3635
]

examples/talos/patches/cp-0.yml renamed to examples/talos/patch.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
machine:
2+
time:
3+
servers:
4+
- time.cloudflare.com
5+
kubelet:
6+
extraArgs:
7+
# fill manually
8+
max-pods: "<CPU cores * 3 + 150>"
29
install:
310
diskSelector:
411
# ❯ talosctl get --talosconfig talosconfig -i -n 154.42.3.58 disk nvme8n1 -o yaml
@@ -45,7 +52,7 @@ machine:
4552
miimon: 100
4653
lacpRate: slow
4754
xmitHashPolicy: layer3+4
48-
deviceSelectors:
55+
interfaces:
4956
# ❯ talosctl get --talosconfig talosconfig -i -n 154.42.3.58 link
5057
# NODE NAMESPACE TYPE ID VERSION TYPE KIND HW ADDR OPER STATE LINK STATE
5158
# network LinkStatus bond0 1 ether bond b2:10:98:b2:d5:25 down false
@@ -61,5 +68,5 @@ machine:
6168
# network LinkStatus sit0 1 sit sit 00:00:00:00 down false
6269
# network LinkStatus teql0 1 void down false
6370
# network LinkStatus tunl0 1 ipip ipip 00:00:00:00 down false
64-
- permanentAddr: 04:3f:72:dc:2e:3c
65-
- permanentAddr: 04:3f:72:dc:2e:3d
71+
- enp68s0f0np0
72+
- enp68s1f0np0

examples/talos/patches/base.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)