Skip to content

Commit

Permalink
ci: add additional disk size
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Shakavin committed Jul 23, 2024
1 parent ed186fa commit 0445a09
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion kubernetes/apps/observability/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resources:
- ./alert.yaml
- ./portainer/ks.yaml
- ./gatus/ks.yaml
# - ./thanos/ks.yaml
- ./thanos/ks.yaml
- ./kube-prometheus-stack/ks.yaml
- ./prometheus-operator-crds/ks.yaml
- ./grafana/ks.yaml
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/apps/observability/thanos/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ spec:
- --retention.resolution-1h=60d
persistence: &persistence
enabled: true
storageClass: longhorn-local
size: 20Gi
storageClass: local-hostpath
size: 25Gi
query:
replicas: 2
extraArgs: ["--alert.query-url=https://thanos.${SECRET_DOMAIN}"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
config:
driver: local-hostpath
local-hostpath:
shareBasePath: &storagePath /var/democratic-csi/local
shareBasePath: &storagePath /var/mnt/ssd/democratic-csi/local
controllerBasePath: *storagePath
dirPermissionsMode: "0770"
dirPermissionsUser: 0
Expand Down
27 changes: 21 additions & 6 deletions kubernetes/bootstrap/talos/talconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ nodes:
talosImageURL: factory.talos.dev/installer/88d1f7a5c4f1d3aba7df787c448c1d3d008ed29cfb34af53fa0df4336a56040b
controlPlane: true
nodeLabels:
"node.longhorn.io/create-default-disk": "true"
"node.longhorn.io/create-default-disk": "config"
networkInterfaces:
- deviceSelector:
hardwareAddr: "bc:24:11:b5:dd:1f"
Expand All @@ -46,7 +46,7 @@ nodes:
talosImageURL: factory.talos.dev/installer/88d1f7a5c4f1d3aba7df787c448c1d3d008ed29cfb34af53fa0df4336a56040b
controlPlane: true
nodeLabels:
"node.longhorn.io/create-default-disk": "true"
"node.longhorn.io/create-default-disk": "config"
networkInterfaces:
- deviceSelector:
hardwareAddr: "bc:24:11:0c:fd:22"
Expand All @@ -65,7 +65,7 @@ nodes:
talosImageURL: factory.talos.dev/installer/88d1f7a5c4f1d3aba7df787c448c1d3d008ed29cfb34af53fa0df4336a56040b
controlPlane: true
nodeLabels:
"node.longhorn.io/create-default-disk": "true"
"node.longhorn.io/create-default-disk": "config"
networkInterfaces:
- deviceSelector:
hardwareAddr: "bc:24:11:a8:19:33"
Expand Down Expand Up @@ -139,7 +139,15 @@ patches:
net.core.rmem_max: "2500000"
net.core.wmem_max: "2500000"
# Mount longhorn in kubelet
# Add additional ssd
- |-
machine:
disks:
- device: /dev/sdb
partitions:
- mountpoint: /var/mnt/ssd
# Mount longhorn and local-hostpath in kubelet
- |-
machine:
kubelet:
Expand All @@ -151,9 +159,16 @@ patches:
- bind
- rshared
- rw
- destination: /var/democratic-csi/local
- destination: /var/mnt/ssd/longhorn
type: bind
source: /var/mnt/ssd/longhorn
options:
- bind
- rshared
- rw
- destination: /var/mnt/ssd/democratic-csi/local
type: bind
source: /var/democratic-csi/local
source: /var/mnt/ssd/democratic-csi/local
options:
- bind
- rshared
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/talos/clusterconfig/talosconfig

This file was deleted.

0 comments on commit 0445a09

Please sign in to comment.