Place core services and web-petting on external core nodes
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Failing after 1m6s

This commit is contained in:
Aleksandr Bogomiakov committed 2026-10-12 13:44:16 +01:00
1 parent ee7a82b0b8
commit 8e4201621d
24 files changed
+92 -11

No files matched your search

+2
View File
@@ -20,6 +20,8 @@ spec:
spec: spec:
dnsPolicy: Default dnsPolicy: Default
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: internal
workload/ai: "true" workload/ai: "true"
tolerations: tolerations:
- key: workload - key: workload
+3
View File
@@ -16,6 +16,9 @@ spec:
annotations: annotations:
reloader.stakater.com/auto: "true" reloader.stakater.com/auto: "true"
spec: spec:
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
containers: containers:
- name: web-petting - name: web-petting
image: ultradesu/web-petting:latest image: ultradesu/web-petting:latest
+3
View File
@@ -1,6 +1,9 @@
# Argo CD Helm Chart Values (k8s-ng cluster) # Argo CD Helm Chart Values (k8s-ng cluster)
global: global:
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
domain: ag.btwiusearch.net domain: ag.btwiusearch.net
logging: logging:
format: text format: text
+10
View File
@@ -1,2 +1,12 @@
crds: crds:
enabled: true enabled: true
nodeSelector: &externalCore
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
webhook:
nodeSelector: *externalCore
cainjector:
nodeSelector: *externalCore
startupapicheck:
nodeSelector: *externalCore
+4
View File
@@ -1,4 +1,8 @@
# CloudNativePG operator (chart 0.29.x = operator 1.30.x) # CloudNativePG operator (chart 0.29.x = operator 1.30.x)
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
crds: crds:
create: true create: true
+8
View File
@@ -1 +1,9 @@
installCRDs: true installCRDs: true
nodeSelector: &externalCore
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
webhook:
nodeSelector: *externalCore
certController:
nodeSelector: *externalCore
+2
View File
@@ -20,6 +20,8 @@ spec:
app: gitea app: gitea
spec: spec:
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
volumes: volumes:
- name: storage - name: storage
+2
View File
@@ -35,6 +35,8 @@ spec:
- name: ndots - name: ndots
value: "2" value: "2"
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: internal
workload/ai: "true" workload/ai: "true"
tolerations: tolerations:
- key: workload - key: workload
@@ -18,6 +18,8 @@ spec:
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
volumes: volumes:
- name: storage - name: storage
+2
View File
@@ -22,5 +22,7 @@ patches:
- op: replace - op: replace
path: /spec/template/spec/nodeSelector path: /spec/template/spec/nodeSelector
value: value:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: internal
kubernetes.io/arch: amd64 kubernetes.io/arch: amd64
workload/ai: "true" workload/ai: "true"
+2
View File
@@ -31,5 +31,7 @@ tolerations:
node_selector_enabled: true node_selector_enabled: true
node_selector: node_selector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: internal
kubernetes.io/arch: amd64 kubernetes.io/arch: amd64
workload/ai: "true" workload/ai: "true"
+2
View File
@@ -31,6 +31,8 @@ spec:
immich.hexor.cy/volume: postgres immich.hexor.cy/volume: postgres
affinity: affinity:
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
postgresql: postgresql:
shared_preload_libraries: [vectors.so] shared_preload_libraries: [vectors.so]
+2
View File
@@ -11,6 +11,8 @@ spec:
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
containers: containers:
- name: prepare - name: prepare
+3
View File
@@ -20,6 +20,9 @@ spec:
labels: labels:
app: auth-proxy app: auth-proxy
spec: spec:
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
containers: containers:
- name: auth-proxy - name: auth-proxy
image: ultradesu/rsauth2-proxy:latest image: ultradesu/rsauth2-proxy:latest
+4
View File
@@ -1,5 +1,9 @@
replicas: 1 replicas: 1
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
image: image:
repository: quay.io/keycloak/keycloak repository: quay.io/keycloak/keycloak
tag: "26.5.6" tag: "26.5.6"
+3 -1
View File
@@ -6,7 +6,7 @@
# master. A failover swaps the roles; switch back with # master. A failover swaps the roles; switch back with
# kubectl cnpg promote main <instance on music> # kubectl cnpg promote main <instance on music>
# #
# Nodes eligible for instances carry the label workload/postgres=true. To move a # Eligible nodes are core/external and carry workload/postgres=true. To move a
# replica: label the new node, unlabel the old one, then recreate the instance # replica: label the new node, unlabel the old one, then recreate the instance
# (kubectl cnpg destroy main <N>); the operator re-clones it from the primary. # (kubectl cnpg destroy main <N>); the operator re-clones it from the primary.
# #
@@ -36,6 +36,8 @@ spec:
podAntiAffinityType: required podAntiAffinityType: required
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
workload/postgres: "true" workload/postgres: "true"
resources: resources:
+6
View File
@@ -14,6 +14,12 @@ chunks, or Grafana database are copied from the old cluster.
- Grafana state is stored in the `main` CNPG cluster; metrics and logs stay on - Grafana state is stored in the `main` CNPG cluster; metrics and logs stay on
the large local disk of node `music`. the large local disk of node `music`.
Stack services select `homelab.hexor.cy/pool=core` and
`homelab.hexor.cy/exposure=external`. Prometheus, Alertmanager and Loki also
select `music` because their volumes are local. Grafana, the operators, Alloy
and the Loki gateway can run on either `master` or `music`. Node Exporter and
Loki Canary are not restricted to these groups.
## Storage and retention ## Storage and retention
The PreSync hook creates these directories on `music`: The PreSync hook creates these directories on `music`:
+2 -1
View File
@@ -123,7 +123,8 @@ controller:
type: deployment type: deployment
replicas: 1 replicas: 1
nodeSelector: nodeSelector:
kubernetes.io/hostname: music homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
minReadySeconds: 10 minReadySeconds: 10
terminationGracePeriodSeconds: 60 terminationGracePeriodSeconds: 60
+6 -6
View File
@@ -37,6 +37,8 @@ singleBinary:
replicas: 1 replicas: 1
sidecar: false sidecar: false
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
terminationGracePeriodSeconds: 120 terminationGracePeriodSeconds: 120
@@ -78,14 +80,12 @@ sidecar:
gateway: gateway:
enabled: true enabled: true
# A second replica cannot improve availability while both replicas are pinned # Gateway replicas can run on either external core node; Loki storage stays on music.
# to the only storage node, and the chart's anti-affinity prevents scheduling.
replicas: 1 replicas: 1
nodeSelector: nodeSelector:
kubernetes.io/hostname: music homelab.hexor.cy/pool: core
# The chart defaults to required pod anti-affinity. With a single eligible homelab.hexor.cy/exposure: external
# node that deadlocks every rolling update because the surge pod cannot be # Allow a surge pod to share a node during rolling updates.
# scheduled until the old pod is gone. Both pods may briefly share music.
affinity: null affinity: null
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
verboseLogging: false verboseLogging: false
+15 -3
View File
@@ -41,6 +41,8 @@ alertmanager:
replicas: 1 replicas: 1
retention: 120h retention: 120h
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
alertmanagerConfigSelector: alertmanagerConfigSelector:
@@ -73,6 +75,8 @@ prometheus:
prometheusSpec: prometheusSpec:
replicas: 1 replicas: 1
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
scrapeInterval: 30s scrapeInterval: 30s
@@ -147,7 +151,8 @@ grafana:
annotations: annotations:
reloader.stakater.com/auto: "true" reloader.stakater.com/auto: "true"
nodeSelector: nodeSelector:
kubernetes.io/hostname: music homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
resources: resources:
requests: requests:
@@ -229,8 +234,14 @@ grafana:
- gf.hexor.cy - gf.hexor.cy
prometheusOperator: prometheusOperator:
admissionWebhooks:
patch:
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
nodeSelector: nodeSelector:
kubernetes.io/hostname: music homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
resources: resources:
requests: requests:
@@ -250,7 +261,8 @@ prometheusOperator:
kube-state-metrics: kube-state-metrics:
nodeSelector: nodeSelector:
kubernetes.io/hostname: music homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
priorityClassName: monitoring-critical priorityClassName: monitoring-critical
resources: resources:
requests: requests:
+2
View File
@@ -15,6 +15,8 @@ spec:
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
containers: containers:
- name: prepare - name: prepare
+3
View File
@@ -16,6 +16,9 @@ reloader:
rbac: rbac:
enabled: true enabled: true
deployment: deployment:
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
replicas: 2 replicas: 2
resources: resources:
requests: requests:
@@ -29,6 +29,8 @@ spec:
app.kubernetes.io/instance: bitwarden-cli app.kubernetes.io/instance: bitwarden-cli
spec: spec:
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/arch: amd64 kubernetes.io/arch: amd64
containers: containers:
- name: bitwarden-cli - name: bitwarden-cli
+2
View File
@@ -17,6 +17,8 @@ spec:
app: vaultwarden app: vaultwarden
spec: spec:
nodeSelector: nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music kubernetes.io/hostname: music
containers: containers:
- name: vaultwarden - name: vaultwarden