Compare commits
4 Commits
272128fe59
...
2fbeaa166c
| Author | SHA1 | Date | |
|---|---|---|---|
|
2fbeaa166c
|
|||
|
0f422ed57d
|
|||
|
2b5c5d9600
|
|||
|
238c92f7bd
|
28
.pre-commit-config.yaml
Normal file
28
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
default_install_hook_types: [pre-commit, commit-msg]
|
||||||
|
exclude: gotk-.*.yaml
|
||||||
|
repos:
|
||||||
|
- repo: builtin
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
args:
|
||||||
|
- --allow-multiple-documents
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
|
||||||
|
- repo: https://github.com/crate-ci/typos
|
||||||
|
rev: v1.40.0
|
||||||
|
hooks:
|
||||||
|
- id: typos
|
||||||
|
|
||||||
|
- repo: https://github.com/sirwart/ripsecrets
|
||||||
|
rev: v0.1.11
|
||||||
|
hooks:
|
||||||
|
- id: ripsecrets-system
|
||||||
|
|
||||||
|
- repo: https://github.com/crate-ci/committed
|
||||||
|
rev: v1.1.8
|
||||||
|
hooks:
|
||||||
|
- id: committed
|
||||||
3
.secretsignore
Normal file
3
.secretsignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
_secrets.yaml
|
||||||
|
secrets.yaml
|
||||||
|
*.agekey
|
||||||
2
committed.toml
Normal file
2
committed.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
style = "conventional"
|
||||||
|
ignore_author_re = "Flux"
|
||||||
@@ -30,6 +30,9 @@ patches:
|
|||||||
- !patch tailscale
|
- !patch tailscale
|
||||||
- !patch cilium
|
- !patch cilium
|
||||||
- !patch spegel
|
- !patch spegel
|
||||||
|
- !patch longhorn
|
||||||
|
- !patch longhorn-user-volume
|
||||||
|
- !patch limit-ephemeral
|
||||||
patchesControlPlane:
|
patchesControlPlane:
|
||||||
- !patch allow-control-plane-workloads
|
- !patch allow-control-plane-workloads
|
||||||
- !patch sops
|
- !patch sops
|
||||||
|
|||||||
5
patches/limit-ephemeral.yaml
Normal file
5
patches/limit-ephemeral.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v1alpha1
|
||||||
|
kind: VolumeConfig
|
||||||
|
name: EPHEMERAL
|
||||||
|
provisioning:
|
||||||
|
maxSize: 8GB
|
||||||
8
patches/longhorn-user-volume.yaml
Normal file
8
patches/longhorn-user-volume.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1alpha1
|
||||||
|
kind: UserVolumeConfig
|
||||||
|
name: longhorn
|
||||||
|
provisioning:
|
||||||
|
diskSelector:
|
||||||
|
match: system_disk
|
||||||
|
grow: true
|
||||||
|
maxSize: 2000GB
|
||||||
10
patches/longhorn.yaml
Normal file
10
patches/longhorn.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
machine:
|
||||||
|
kubelet:
|
||||||
|
extraMounts:
|
||||||
|
- destination: /var/lib/longhorn
|
||||||
|
type: bind
|
||||||
|
source: /var/lib/longhorn
|
||||||
|
options:
|
||||||
|
- bind
|
||||||
|
- rshared
|
||||||
|
- rw
|
||||||
16
patches/openebs.yaml
Normal file
16
patches/openebs.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
machine:
|
||||||
|
# This is only needed on nodes that will have storage
|
||||||
|
sysctls:
|
||||||
|
vm.nr_hugepages: "1024"
|
||||||
|
nodeLabels:
|
||||||
|
openebs.io/engine: mayastor
|
||||||
|
# This is needed on ALL nodes
|
||||||
|
kubelet:
|
||||||
|
extraMounts:
|
||||||
|
- destination: /var/local
|
||||||
|
type: bind
|
||||||
|
source: /var/local
|
||||||
|
options:
|
||||||
|
- bind
|
||||||
|
- rshared
|
||||||
|
- rw
|
||||||
@@ -4,6 +4,4 @@ name: tailscale
|
|||||||
environment:
|
environment:
|
||||||
- TS_AUTHKEY={{ config.tailscale.authKey }}
|
- TS_AUTHKEY={{ config.tailscale.authKey }}
|
||||||
- TS_EXTRA_ARGS=--login-server {{ config.tailscale.loginServer }} --advertise-tags=tag:cluster-{{ node.cluster.name }}
|
- TS_EXTRA_ARGS=--login-server {{ config.tailscale.loginServer }} --advertise-tags=tag:cluster-{{ node.cluster.name }}
|
||||||
{% if node.advertiseRoutes %}
|
- TS_ROUTES={% if node.advertiseRoutes -%} {{ helper.tailscale_subnet(node.gateway, node.netmask) }} {%- endif %}
|
||||||
- TS_ROUTES={{ helper.tailscale_subnet(node.gateway, node.netmask) }}
|
|
||||||
{% endif %}
|
|
||||||
|
|||||||
6
tools/vm
6
tools/vm
@@ -3,9 +3,9 @@ set -euo pipefail
|
|||||||
ROOT=$(git rev-parse --show-toplevel)
|
ROOT=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
VM_NAME="talos-vm"
|
VM_NAME="talos-vm"
|
||||||
VCPUS="2"
|
VCPUS="6"
|
||||||
RAM_MB="2048"
|
RAM_MB="16384"
|
||||||
DISK_GB="10"
|
DISK_GB="100"
|
||||||
NETWORK=talos
|
NETWORK=talos
|
||||||
CONNECTION="qemu:///system"
|
CONNECTION="qemu:///system"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user