Compare commits

...
Author SHA1 Message Date
renovate[bot] 6f60c663b2 chore(docker): bump vabene1111/recipes Docker tag to v2.6.15 2026-09-12 04:01:05 +00:00
vhaudiquet f2d7fe7bcc openclaw: pin image to 2026.9.3 and chown PVC mount root (operator#607)
- Pin gateway image to immutable tag 2026.9.3: the stale node-cached
  'latest' (old build, state schema v1) crash-looped against the PVC's
  DB already migrated to schema v15/16.
- Add fix-data-owner init container: the operator mounts the PVC root
  at /home/openclaw/.openclaw with fsGroup only, leaving the mount root
  owned by root; OpenClaw >= 2026.9 fchmods its config dir on write and
  fails with EPERM (paperclipinc/openclaw-operator#607).
- Ran one-time 'openclaw doctor --fix --non-interactive' against the
  PVC to complete the 2.0 workspace-state migration.
2026-09-10 00:59:25 +02:00
vhaudiquet 807d764bdf cilium(kube): scale replicas down to 1 2026-09-10 00:16:34 +02:00
vhaudiquet c613811c8e gitea: bump memory limit for valkey 2026-09-09 23:39:29 +02:00
vhaudiquet 5608fa2f0d kyverno(kube): strip limits.cpu too 2026-09-09 23:21:51 +02:00
vhaudiquet 3d258f147d kyverno(kube): foreach patchStrategicMerge must be inline mapping, not block scalar 2026-09-09 23:07:13 +02:00
vhaudiquet 764a029c39 kyverno(kube): update policy to v1 2026-09-09 22:57:58 +02:00
vhaudiquet 21d54fba97 kyverno(kube): bump version 2026-09-09 22:52:51 +02:00
vhaudiquet 26dd59845f kyverno(kube): fix deployment 2026-09-09 22:20:59 +02:00
vhaudiquet a07ce44e6d kyverno(kube): add kyverno
add a policy to remove cpu requests, to relieve cluster
2026-09-09 21:43:13 +02:00
vhaudiquet 99880ab291 gitea,longhorn: update CPU limits, tolerations, replicas 2026-09-09 18:47:12 +02:00
vhaudiquet f813170b86 gitea/valkey(kube): bump memory limit to 512 Mi
bump requested memory to 256 Mi
2026-09-07 23:43:39 +02:00
renovate[bot]andvhaudiquet c0b73e29be chore(kube): bump chart postgres Docker tag to v0.20.4 2026-09-01 01:05:41 +02:00
renovate[bot]andvhaudiquet 69c59daf5e chore(kube): bump caddy Docker tag to v2.11.4 2026-09-01 01:05:29 +02:00
renovate[bot]andvhaudiquet a2a97180c9 chore(kube): bump chart Helm release cert-manager-webhook-ovh to v0.9.16 2026-09-01 01:05:19 +02:00
renovate[bot]andvhaudiquet 6d9e6c76c8 chore(kube): bump coredns/coredns Docker tag to v1.14.7 2026-09-01 01:04:56 +02:00
renovate[bot]andvhaudiquet 9a9894fc8c chore(kube): bump chart redis Docker tag to v0.34.26 2026-09-01 01:04:41 +02:00
renovate[bot]andvhaudiquet 2c4b3127b4 chore(kube): bump stalwartlabs/stalwart Docker tag to v0.16.20 2026-09-01 01:04:00 +02:00
renovate[bot]andvhaudiquet 372dbff681 chore(kube): bump chart Helm release stalwart to v0.7.16 2026-09-01 01:03:46 +02:00
renovate[bot]andvhaudiquet 072470c17d chore(kube): bump chart Helm release longhorn to v1.12.1 2026-09-01 01:03:20 +02:00
24 changed files with 372 additions and 115 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ services:
web_recipes: web_recipes:
restart: always restart: always
image: vabene1111/recipes:2.6.13 image: vabene1111/recipes:2.6.15
networks: networks:
- default - default
- proxy - proxy
+5
View File
@@ -31,6 +31,11 @@ l2announcements:
enabled: true enabled: true
externalIPs: externalIPs:
enabled: true enabled: true
# Single-node cluster: the operator defaults to 2 replicas, but both
# bind the same host ports, so the second replica can never schedule ("node(s)
# didn't have free ports for the requested pod ports") and sits Pending forever.
operator:
replicas: 1
ingressController: ingressController:
enabled: false enabled: false
loadbalancerMode: shared loadbalancerMode: shared
+2 -4
View File
@@ -44,17 +44,15 @@ statefulset:
docker_timeout: 300s docker_timeout: 300s
# Hard per-job caps (docker create args). Slightly below the # Hard per-job caps (docker create args). Slightly below the
# dind limits so the daemon and image cache keep headroom. # dind limits so the daemon and image cache keep headroom.
options: --memory=7g --cpus=3 options: --memory=7g --cpus=1
dind: dind:
resources: resources:
requests: requests:
cpu: 250m cpu: 250m
memory: 512Mi memory: 512Mi
limits: limits:
cpu: 4 cpu: 1500m
memory: 8Gi memory: 8Gi
# Same failover tolerations/affinity as the gitea release, so runners can
# be scheduled wherever Gitea itself runs (p330 during r740 outage).
tolerations: tolerations:
- key: ENC[AES256_GCM,data:wLfr0r+e9KYm,iv:BGZnWKQUlOje9RhAs7tBDzNcDt5LcfTnqRSqrdFc/A4=,tag:bb1f7NwEwmEzrf5k9ivFPg==,type:str] - key: ENC[AES256_GCM,data:wLfr0r+e9KYm,iv:BGZnWKQUlOje9RhAs7tBDzNcDt5LcfTnqRSqrdFc/A4=,tag:bb1f7NwEwmEzrf5k9ivFPg==,type:str]
operator: Equal operator: Equal
+28 -85
View File
@@ -21,65 +21,29 @@ valkey:
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 256Mi
limits: limits:
cpu: 500m cpu: 500m
memory: 256Mi memory: 1Gi
tolerations:
- key: ENC[AES256_GCM,data:fXEKv6sROAEz,iv:ausWhm1zJdx+Mu26pauhi5G+ODZqLZ27SmfkAuMUtYY=,tag:cNYyeG09Hk++uED5M0TBKw==,type:str]
operator: Equal
value: ENC[AES256_GCM,data:7CfH8Lrr7S0=,iv:dv5f/cN1VI2NLQsAYqF2hGEjVjxTnHGXFfNQyCL1KIc=,tag:HTiQN/wZU/mXSHvaz2KqRg==,type:str]
effect: NoSchedule
- key: ENC[AES256_GCM,data:2l4bXqCigZWkqfm6zvba/aOwC6zXYd0lufMUrrHA3YZm1/0IXw==,iv:70oryMEsl0nnZz1q4OHHHgjRswmyvLZI9Y6tk0elM5Q=,tag:2/EHDIcaDTSGWl3qRVW8oQ==,type:str]
operator: Exists
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: ENC[AES256_GCM,data:dc00KQOBXn587h22VlooFY5ZjbE=,iv:kX5utMKu8uoUSeameD2R0iH+DU/3YXuwP8DaZs9mGYs=,tag:PM5xBnYaP84zMZ2SWTYV+A==,type:str]
operator: NotIn
values:
- "true"
postgresql: postgresql:
enabled: true enabled: true
global: global:
postgresql: postgresql:
auth: auth:
postgressPassword: ENC[AES256_GCM,data:3aHXAFDqpYsWeg==,iv:qbrm+izSr+PaAa4fHMVw3Yz0qMuisRMpDxVKdeFSvls=,tag:zVUVALdIUTMhxavsSxlUCw==,type:str] postgressPassword: ENC[AES256_GCM,data:PtWMsukqbrWiVg==,iv:iQtDckrih/3ZKopzD9eEViOMZrvSulmCI5tHCsJph1A=,tag:7S54w4ADG7+8QNiLDw2Q0A==,type:str]
password: ENC[AES256_GCM,data:LCfnttYbxS34WA==,iv:rqU044P/gUmqjhmu+A9B7A64ujnkIhMpKQlYpcmi8MY=,tag:XJws85qfKI+y0BV6S4L1Ig==,type:str] password: ENC[AES256_GCM,data:jLC1oEl+ZAnpbw==,iv:PliGMmxHKn3eEt8uvsv9wL4syk91EC5OpA7AL5J0+4o=,tag:Oan4ek7m0Cxnl5bzOCGHXw==,type:str]
database: gitea database: gitea
username: ENC[AES256_GCM,data:QDo83dk=,iv:RvuuDiiY1XLZbrjcJ/ANxb/wHrSdf1gaBSck+cMaWhY=,tag:UCEAkWZ2Dmr93oBATQdf8g==,type:str] username: ENC[AES256_GCM,data:ricveNc=,iv:rPrHKhIzsNEQzoaX2cPDvVWjR7NIxsN1tBlzLB80IQ0=,tag:n64SpL6qM/IT9D7t85/Lvg==,type:str]
volumePermissions: volumePermissions:
enabled: true enabled: true
primary: primary:
resources: resources:
requests: requests:
cpu: 250m cpu: 100m
memory: 256Mi memory: 256Mi
limits: limits:
cpu: 1000m cpu: 500m
memory: 1Gi memory: 1Gi
tolerations:
- key: ENC[AES256_GCM,data:NplaOmBekcB+,iv:qzQ+QasVZ2JMG87PgdVDJ/7XHDiDXTp+ogxB1w4tws4=,tag:aPyaqwdxVEjct7D3SuKFqw==,type:str]
operator: Equal
value: ENC[AES256_GCM,data:vjsM3Li0p/8=,iv:Y+sjLHWpqwsOJV+vygG2f/3ZXQs2ZQRloPrlcOuzoeM=,tag:t+uR2/uM4NiIq6alJjio9g==,type:str]
effect: NoSchedule
- key: ENC[AES256_GCM,data:LQvczGKAK2x1BbFr7S8jo0G7YUaX4DJvc+1Z2E+bCjys4PsBHg==,iv:m4Ses50zYxTF7jXTgbf9nY0kT1hrtgVEEQruLZFN8cU=,tag:UidEMRbb0IPb5V31FjWzYg==,type:str]
operator: Exists
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: ENC[AES256_GCM,data:D9N+Fd/g24bKikLdx4WE57WvqE4=,iv:+1oYCzAl6kBJliw0woWhhWT7aWcx4rXkGDn7Anho2Pg=,tag:R+cLK75QCIfWeGL8/eqeFA==,type:str]
operator: NotIn
values:
- "true"
livenessProbe: livenessProbe:
enabled: true enabled: true
initialDelaySeconds: 30 initialDelaySeconds: 30
@@ -112,8 +76,8 @@ gitea:
oauth: oauth:
- name: Authentik - name: Authentik
provider: openidConnect provider: openidConnect
key: ENC[AES256_GCM,data:cYaRMEtrziMJWIRj3dg1fuMpp6F3t5ZDO/H2ONOQCg/fZ8s0ZsLb6Q==,iv:VskJ+5Rwpnys0nH531FYZIj253lJqDz1l6sgwKWhE1s=,tag:F3Wj1ruwSwlC5XbVKt1aCQ==,type:str] key: ENC[AES256_GCM,data:9UuG23PYFiWrQKJX5xGxMgyWKLPFCxKjDUYJd59rMWcdAw619/v/Bw==,iv:AfHV1MzbYi5Z5Bb63/51Hmy9rM247b4quwKCzo7MpYw=,tag:pfpz7hhZyIUjIGGcxZVx/w==,type:str]
secret: ENC[AES256_GCM,data:Cro9iaXKcv+uP4G6jEX0tPBW9cjxaZUmnLEVyE72j34aeAAmDFgPiTE/VWSbD3WWK8tuErl0RFHMvHiN63f4W5hq38W9VMP31JDCUYcUbkFBmQg2hrt6ePajZZICR1gHB3D7t5av4pl13O490VByGWfr8OxAK8Z/cGojp/Pt4mo=,iv:nRvFSVRSKFvpNjGmJq6uh/JV3acLsipV0nUHAlt+t80=,tag:BZ7eJiSVCM8J+MY+I5Z48g==,type:str] secret: ENC[AES256_GCM,data:PKFx/LhjwWJluC6/RHc1eMgw4TZXkXymNCrc7TQU6Bp5rGKHMvACC+G+MjXGylIMZVt65LHWq5YEHJNjO8HMsa4ejGukXDuU9sCgKaOOniCs3EQivfVsCCHtF/G48eULPkege7JRzTbmJSYJDnscsSikwvUDChy+zGlC2ZmBZjk=,iv:qsIaaeXepJ9ECilo+05+A0i2joxV0svBOjgL37DkimE=,tag:/3Xer7Yb6QyUtmPIOvSLQQ==,type:str]
autoDiscoverUrl: https://authentik.vhaudiquet.fr/application/o/gitea/.well-known/openid-configuration autoDiscoverUrl: https://authentik.vhaudiquet.fr/application/o/gitea/.well-known/openid-configuration
config: config:
APP_NAME: Gitea APP_NAME: Gitea
@@ -142,55 +106,34 @@ gitea:
# Resource limits for Gitea container # Resource limits for Gitea container
resources: resources:
requests: requests:
cpu: 250m cpu: 100m
memory: 512Mi memory: 512Mi
limits: limits:
cpu: 1000m cpu: 500m
memory: 1Gi memory: 1Gi
# Increase replica count is not useful for 1-node cluster
replicaCount: 1 replicaCount: 1
# Failover tolerations + affinity — allow scheduling on p330 during r740 outage
tolerations:
- key: ENC[AES256_GCM,data:1O2rrNCMxkGV,iv:dLwAP4NFVRZ0IUNzARm7hPq+ruIshtpXfUVtuuRP3/o=,tag:EmKs8LItQFLoPov8MMjfgw==,type:str]
operator: Equal
value: ENC[AES256_GCM,data:l0WXlDcRWaY=,iv:F3AxSbB9t/q3L6yOI4NcHlNzZrDwJqiJ/jjfLrQlNAE=,tag:6s/WqyWjNLHHmExGmgl65g==,type:str]
effect: NoSchedule
- key: ENC[AES256_GCM,data:RtKkkyNv0zO/IezcKaBBp5Ir9mCBacgVqjFIGyq13U68sU4z5g==,iv:sFr2v6kFKOm2ID73GpxACTvQttvt7fYwg437N7D2Scg=,tag:aPCpFti/jY/0a1FEWF/g4w==,type:str]
operator: Exists
effect: NoSchedule
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: ENC[AES256_GCM,data:jW8/VevqdIAXrBAMj58udice6HM=,iv:+6nTdgB2io+H6S/jyO4Fc/+VfoyGIY+dqphi6ZNIn3c=,tag:JKJveLWX8pjMN3cnO94UwQ==,type:str]
operator: NotIn
values:
- "true"
# (postgresql and valkey tolerations are set in their respective blocks above)
sops: sops:
lastmodified: "2026-08-26T19:28:03Z" lastmodified: "2026-09-09T21:39:30Z"
mac: ENC[AES256_GCM,data:hb8HlzvsAU+6A2C4MARpF2j+Mv55mQ25SOjJIo6inV822IskVV+0Ml9I6WS8RK6ZNZAdnVcDtQ07JlGx9QRiIwxAE0xxwuhukhSBBjeHGAc39RPhLXhDvwUF5ZeouGixkVrA5lhAvHiu9ILv241G1st0J9qK/ZaIsTazQN4X3iY=,iv:1ehf3avfeV4Ro8rw0rsFQ0qnFXrvF66tUKqqCY+NXSc=,tag:5kXUpLrLGPbwNSBC+aVIwA==,type:str] mac: ENC[AES256_GCM,data:ACBKJLGUfWw9T3fOhQMT251gcLzG3bUXjUqBxG1DuPl8c8bblaIpLOu0QsrfQziQY3jM0DFJ2W/I2vjkrhCuCaZhZCtRg2nzUk+7HelqjEdKLphSuIdlHIkz7Icu+khShrwTgmQiE00Gg1WUsLRkKBgNsOm3TMK4wB874iBvSYY=,iv:Idp0+UBXaRFkpOFKFoRrLKuN1mOmfM7pukC22KkNiCU=,tag:fL9DzAo8FSx4PblVlTHtaQ==,type:str]
pgp: pgp:
- created_at: "2026-08-26T19:28:03Z" - created_at: "2026-09-09T21:39:30Z"
enc: |- enc: |-
-----BEGIN PGP MESSAGE----- -----BEGIN PGP MESSAGE-----
hQIMA7uy4qQr71wiAQ/9FF5SJAVg0dLi/+xQreE2yrxMH4GTfdBMHd3GWEVLYger hQIMA7uy4qQr71wiAQ/+PK0/kUHlc+exa8slolUeTGjHzd/R1Dtux/+HJdC9Vpow
6XwXQ7+Qx3mxf+VprmNGOW7NdKSsC5Re/JHJAjs7p+eWohtieOgKtg7DWEcrTwZA ImAQvIdkEjwL0FmoA7Z4val/Wzx/YzFJ5r6sADNaQ9EG7QO+I8WY3VrKj5aRi0Qz
56Rnhtnh0vv2jqmv/pm/Cj49GCLTjQFY+w5azU7g/7eQZpdPezIdrs1ueiSm6LaU +FgHAgng+wdRCCBoxv9Z+MTPSl4TwrKsbrulHAg7EayDKxwGzkyMrnxvukRqD8GB
T9bMdUzm1pb7/JKQMvzYyPcuw0AfKLlg+x7HHRNI3O434yKuTLC5emVxJEmwQvV4 iMQCUadudR458fzB04dkhljAbl/FqX5ppflzEoGVCiRSBcWNkaHgyYqopYGzMASy
FD6oUAt4gKLqUHvAUuCVo8O5G36MGHO/roHxlWaLbHqjaDPyWh2TGdX0ICKKq1yc KTzoV01adnOZY+xeZa5GasgCEbCU3BDesD9vBb+sFsRugVuRHzdyqp3nVBwudpeh
fJzw9dYgcwIMXpXilbnsL4gQpv6bKj6VniyCoye6ieMZ2HIoZghd+wL0NoPkS7Nj OcE9MOMyBN1SAdx9RCsB8aHWYndF1dim84ZWgQThkLlA+7CWJt/NyFYwmMdqqzSv
D+vTcPR8HOEWoZkZ4B01+bFyTmJ5NA8Z0V3peHkuTy+HCTgwxA0Y8PCrHl3YHsCQ C7slojC6B8bb3863c5w3qe9TPPBwyTOcuNTMunr6wXidlPZWtsImhu/RX9fqzFjZ
C3nANhh+cMqtcJdvqdGrM09X8n3edNc4lf+qg2tk0NbcdVSqcFl9y/MeJOWhOOg3 9X1+wAjAfs7AASeNJLFYqiPrknSAA3JumQZtrFC5dejpTj9H2ns6DkiHSZy8FA8O
T/bwBrI5O7aRO6gqaCebKuGIrD1PDNURW3LLiKBSU4OTYbMWWXGpdEMCkoSQS56B RuZ8hv/L8L8oilbubKnKFZLhR8lh8A1jXHUxzaEC/L4o4cd7/3TlEms/51yM9qYx
6Uo9N8KcWhBChCMJG8hbzYRVwYgWGsHsQbfbujkcIiSaoHGy8fklflxBjtLiitLO WJOz4H8lbphDYO4tFgsGAhL/yHbLHvww/X1hNldwI7mqYrFLSjIwxW2Oxo8c+QB6
voawf0zSqyBKbf1YFAmYnrdR0jiasKC5iqtK7c8uc/HyCSvxjK0ygPloWFI8aSPS yZ3VxTXuS9jEVpGTVhIOfepwS8rJQbTUeewqok3riw9GpSEFpOMWsBxlT6+HI8zS
XgFJiWHT/5gOG64XmDm0VoKdflpojJeTGIC5JU8RAlJgD/oq+uWt23ayJxkjbkMd XgHPVohxe93kk51O7WjBgq8PAwG7DtWrygqWYORz+pTYN8wTtC4pfotiJZ7hv7Gv
H7UsqcuzWfbp44MYtmEWbxvI/+Iaui5/7hW7kEzWI60Mh4tVZGIJ64A3WNRL/Xw= NICEZlirrTUdIol8jyM+yRv1gWuYwQJpjnrQVY2AoAQX6ta5/3st24cyuGwGHO0=
=U5nI =Q6Pu
-----END PGP MESSAGE----- -----END PGP MESSAGE-----
fp: DC6910268E657FF70BA7EC289974494E76938DDC fp: DC6910268E657FF70BA7EC289974494E76938DDC
encrypted_regex: ^(password|value|ssh-key|api-key|user|username|privateKey|clientSecret|clientId|apiKey|extraArgs.*|.*Secret.*|extraEnvVars|.*SECRET.*|.*secret.*|key|.*Password|.*PASS|.*SOCIALACCOUNT_PROVIDERS|.*\.ya?ml)$ encrypted_regex: ^(password|value|ssh-key|api-key|user|username|privateKey|clientSecret|clientId|apiKey|extraArgs.*|.*Secret.*|extraEnvVars|.*SECRET.*|.*secret.*|key|.*Password|.*PASS|.*SOCIALACCOUNT_PROVIDERS|.*\.ya?ml)$
+1 -1
View File
@@ -10,7 +10,7 @@ image:
repository: caddy repository: caddy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tagSuffix: "" tagSuffix: ""
tag: 2.11.2 tag: 2.11.4
service: service:
type: LoadBalancer type: LoadBalancer
# Cluster (not Local) so any node can forward to pods on any other node. # Cluster (not Local) so any node can forward to pods on any other node.
@@ -12,7 +12,7 @@ spec:
name: cert-manager-webhook-ovh name: cert-manager-webhook-ovh
namespace: cert-manager namespace: cert-manager
chart: cert-manager-webhook-ovh chart: cert-manager-webhook-ovh
version: "v0.9.13" version: "0.9.16"
interval: 1m interval: 1m
valuesFrom: valuesFrom:
- kind: Secret - kind: Secret
@@ -14,7 +14,7 @@ spec:
name: stalwart-helm name: stalwart-helm
namespace: stalwart namespace: stalwart
chart: stalwart chart: stalwart
version: "0.7.5" version: "0.7.16"
interval: 1m interval: 1m
valuesFrom: valuesFrom:
- kind: Secret - kind: Secret
@@ -7,7 +7,7 @@
# Container image # Container image
image: image:
repository: stalwartlabs/stalwart repository: stalwartlabs/stalwart
tag: v0.16.11 tag: v0.16.20
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Single-node RocksDB deployment. # Single-node RocksDB deployment.
replicaCount: 1 replicaCount: 1
@@ -3,6 +3,35 @@ kind: OpenClawInstance
metadata: metadata:
name: openclaw name: openclaw
spec: spec:
# Pin the gateway image to an immutable version tag. Running `latest` with
# pullPolicy=IfNotPresent let a stale node-cached image (old build, state
# schema v1) fight the PVC's DB migrated by a newer build (schema v15),
# crash-looping the container. Bump this tag alongside upstream releases.
image:
repository: ghcr.io/openclaw/openclaw
tag: "2026.9.3"
# Workaround for paperclipinc/openclaw-operator#607: the operator mounts the
# PVC root directly at /home/openclaw/.openclaw and only fsGroup is applied,
# so the mount root stays owned by root. OpenClaw >= 2026.9 fchmods its config
# dir when writing openclaw.json, which fails with EPERM for a non-owner.
# This one-shot init container chowns the mount root to the pod UID.
initContainers:
- name: fix-data-owner
image: docker.io/library/busybox:1.37
command: ["sh", "-c", "chown 1000:1000 /data && ls -ld /data"]
securityContext:
runAsUser: 0
runAsNonRoot: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]
add: ["CHOWN"]
seccompProfile:
type: RuntimeDefault
volumeMounts:
- name: data
mountPath: /data
# Provider API keys come from the SOPS-encrypted Secret below. # Provider API keys come from the SOPS-encrypted Secret below.
# The gateway token is auto-generated by the operator (no mDNS pairing in k8s). # The gateway token is auto-generated by the operator (no mDNS pairing in k8s).
envFrom: envFrom:
@@ -12,7 +12,7 @@ spec:
name: cloudpirates name: cloudpirates
namespace: paperless namespace: paperless
chart: postgres chart: postgres
version: "0.20.0" version: "0.20.4"
interval: 1m interval: 1m
valuesFrom: valuesFrom:
- kind: Secret - kind: Secret
@@ -12,7 +12,7 @@ spec:
name: cloudpirates name: cloudpirates
namespace: paperless namespace: paperless
chart: redis chart: redis
version: "0.34.16" version: "0.34.26"
interval: 1m interval: 1m
valuesFrom: valuesFrom:
- kind: Secret - kind: Secret
+1 -1
View File
@@ -1,7 +1,7 @@
replicaCount: 2 replicaCount: 2
image: image:
repository: coredns/coredns repository: coredns/coredns
tag: 1.14.3 tag: 1.14.7
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
deployment: deployment:
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
@@ -13,3 +13,5 @@ resources:
- longhorn-jobs.yaml - longhorn-jobs.yaml
- openclaw-operator.yaml - openclaw-operator.yaml
- openclaw.yaml - openclaw.yaml
- kyverno.yaml
- kyverno-policies.yaml
@@ -0,0 +1,19 @@
---
# Flux Kustomization for Kyverno ClusterPolicies.
# dependsOn "kyverno" (the controller + CRDs) so the kyverno.io/v2 CRD exists
# before Flux dry-runs the ClusterPolicy. Without this split, Flux fails the
# whole Kustomization at dry-run ("no matches for kind ClusterPolicy").
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: kyverno-policies
namespace: flux-system
spec:
interval: 5m
prune: true
sourceRef:
kind: GitRepository
name: homeprod
path: ./kubernetes/system/kyverno-policies
dependsOn:
- name: kyverno
+24
View File
@@ -0,0 +1,24 @@
---
# Flux Kustomization for Kyverno
# Separate from main homeprod because Kyverno CRDs (installed by the HelmRelease)
# must be present before the ClusterPolicy can be applied.
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: kyverno
namespace: flux-system
spec:
interval: 5m
prune: true
sourceRef:
kind: GitRepository
name: homeprod
path: ./kubernetes/system/kyverno
# Wait for the admission controller Deployment to be Ready before Flux
# considers this Kustomization healthy — this ensures the ClusterPolicy
# is applied after the CRDs and controller are live.
healthChecks:
- apiVersion: apps/v1
kind: Deployment
name: kyverno-admission-controller
namespace: kyverno
@@ -0,0 +1,12 @@
---
# Kyverno ClusterPolicies.
# Applied by the Flux Kustomization "kyverno-policies" which dependsOn "kyverno"
# (the controller + CRDs). This split is required because Flux dry-runs every
# resource in a Kustomization before applying any — the ClusterPolicy references
# the kyverno.io/v2 CRD that only exists once the kyverno HelmRelease installs.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# Toggleable emergency relief: strips resources.requests.cpu cluster-wide.
# See the file header for the toggle (failurePolicy Ignore/Never) commands.
- policy-strip-cpu-requests.yaml
@@ -0,0 +1,121 @@
---
# ============================================================================
# CPU-REQUEST RELIEF — TOGGLEABLE CLUSTER POLICY
# ============================================================================
# Emergency relief for CPU-saturated scenarios
#
# When ENABLED, this Kyverno ClusterPolicy removes the `resources.requests.cpu`
# field from every Pod created/updated in the cluster (except Kyverno's own pods,
# critical kube-system control-plane pods, and the Longhorn instance-manager /
# engine-image / longhorn-manager, which must keep guarantees so admission and
# the storage layer keep working). With no CPU request, pods schedule onto
# whatever capacity is free and burst freely.
#
# === TOGGLE ===
# The policy is ACTIVE by default (failurePolicy: Ignore = mutate, never block).
#
# DISABLE relief (restore the per-app CPU requests on next Flux reconcile):
# kubectl patch clusterpolicy.kyverno.io strip-cpu-requests --type=merge \
# -p '{"spec":{"failurePolicy":"Never"}}'
# # failurePolicy: Never tells Kyverno to skip the rule without mutating, so the
# # original CPU requests from each HelmRelease are restored on next reconcile.
#
# RE-ENABLE relief (strip requests again):
# kubectl patch clusterpolicy.kyverno.io strip-cpu-requests --type=merge \
# -p '{"spec":{"failurePolicy":"Ignore"}}'
# ============================================================================
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: strip-cpu-requests
annotations:
policies.kyverno.io/title: Strip CPU Requests (Emergency Relief)
policies.kyverno.io/category: Other
policies.kyverno.io/severity: low
policies.kyverno.io/subject: Pod
policies.kyverno.io/description: >-
Removes resources.requests.cpu AND resources.limits.cpu from pods so they
can be scheduled on an overloaded single-node cluster. Limits must be
stripped too: the LimitRanger admission plugin defaults requests.cpu =
limits.cpu whenever a limit exists without a request, so stripping only
the request is a no-op. Toggle via spec.failurePolicy:
Ignore = active (strip), Never = inactive (restore).
spec:
# Never block a pod if Kyverno admission is itself under pressure.
failurePolicy: Ignore
# background: true so the backgroundController also mutates ALREADY-EXISTING
# pods (not just new/updated ones at admission). This makes the relief take
# effect immediately on flip-on, without waiting for a pod restart.
background: true
rules:
- name: remove-cpu-request-from-containers
match:
any:
- resources:
kinds:
- Pod
# Keep guarantees for things that must keep running so admission and the
# storage layer keep working even while everything else is bursting.
exclude:
any:
- resources:
namespaces:
- kyverno
- resources:
namespaces:
- kube-system
names:
# Control-plane static pods (apiserver, scheduler, controller-manager)
- kube-apiserver-*
- kube-scheduler-*
- kube-controller-manager-*
- resources:
namespaces:
- longhorn-system
selector:
matchLabels:
app: longhorn-manager
- resources:
namespaces:
- longhorn-system
selector:
matchLabels:
app: instance-manager
- resources:
namespaces:
- longhorn-system
selector:
matchLabels:
app: engine-image
mutate:
# `request.object` is available in BOTH admission and background modes:
# the backgroundController synthesizes an admission-like request for
# existing resources, so the same foreach works for both.
# NOTE 1: inside `foreach`, patchStrategicMerge must be an INLINE YAML
# mapping — a `|` block scalar is parsed as a string and fails with
# "wrong node kind: expected MappingNode but got ScalarNode".
# NOTE 2: limits.cpu MUST be stripped together with requests.cpu.
# The LimitRanger admission plugin defaults requests.cpu = limits.cpu
# whenever a container has a limit but no request, so stripping only
# the request is a no-op for any container that declares a limit.
foreach:
- list: "request.object.spec.containers"
patchStrategicMerge:
spec:
containers:
- name: "{{ element.name }}"
resources:
requests:
cpu: null
limits:
cpu: null
- list: "request.object.spec.initContainers || `[]`"
patchStrategicMerge:
spec:
initContainers:
- name: "{{ element.name }}"
resources:
requests:
cpu: null
limits:
cpu: null
@@ -0,0 +1,17 @@
---
# Kyverno controller + CRDs only.
# The ClusterPolicy lives in a SEPARATE directory (kubernetes/system/kyverno-policies)
# applied by a SEPARATE Flux Kustomization (kyverno-policies) with dependsOn:
# kyverno. This split is required because Flux dry-runs every resource in a
# Kustomization before applying any of them — the ClusterPolicy references the
# kyverno.io/v2 CRD, which does not exist until this HelmRelease installs it, so
# bundling them together makes the whole Kustomization fail at dry-run.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kyverno
resources:
- namespace.yaml
- repository.yaml
- release.yaml
configurations:
- kustomizeconfig.yaml
@@ -0,0 +1,6 @@
nameReference:
- kind: HelmRepository
version: v1
fieldSpecs:
- path: spec/chart/spec/sourceRef/name
kind: HelmRelease
+10
View File
@@ -0,0 +1,10 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: kyverno
labels:
# Pod Security Admission: Kyverno's own pods run privileged-sidecars/agent.
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
+70
View File
@@ -0,0 +1,70 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: kyverno
namespace: kyverno
spec:
interval: 5m
chart:
spec:
sourceRef:
kind: HelmRepository
name: kyverno
namespace: kyverno
chart: kyverno
version: '3.9.0'
interval: 5m
# Minimal footprint for a single-node cluster:
# - admissionReports disabled (no extra Redis/Postgres)
# - admissionController + backgroundController only (no reports, no
# cleanupController) — the backgroundController lets the ClusterPolicy also
# mutate ALREADY-RUNNING pods (not just new/updated ones), so flipping the
# relief on immediately strips CPU requests from existing workloads.
# - tolerates the control-plane node (allowSchedulingOnMasters=true on p330)
# - low CPU request so Kyverno's own admission doesn't itself deadlock the node
values:
admissionController:
rbac:
create: true
# Scale to 1 replica on this single-node cluster
replicas: 1
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
# The background controller re-applies policies to already-existing resources,
# so the CPU-request strip also affects pods that were created BEFORE the policy
# (and pods Flux re-applies with their original requests between toggles).
backgroundController:
enabled: true
replicas: 1
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
# Reports/reportsController are for policy-report auditing — not needed for a
# one-off relief toggle.
reportsController:
enabled: false
cleanupController:
enabled: false
# No autoscaling on a single node.
autoscaling:
admissionController:
enabled: false
backgroundController:
enabled: false
@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: kyverno
namespace: kyverno
spec:
interval: 5m
url: https://kyverno.github.io/kyverno/
+1 -1
View File
@@ -12,7 +12,7 @@ spec:
name: longhorn name: longhorn
namespace: longhorn-system namespace: longhorn-system
chart: longhorn chart: longhorn
version: '1.12.0' version: '1.12.1'
interval: 1m interval: 1m
valuesFrom: valuesFrom:
- kind: Secret - kind: Secret
+10 -17
View File
@@ -1,7 +1,8 @@
# Longhorn Helm Values # Longhorn Helm Values
defaultSettings: defaultSettings:
# 2 replicas so volumes survive single-node loss # ReplicaCount below is to be updated when cluster node count change.
defaultReplicaCount: 2 # Single-node clusters can only have 1 replica, multi-node should have 2 or ideally 3 when possible.
defaultReplicaCount: 1
# Allow full disk usage on single-node # Allow full disk usage on single-node
storageOverProvisioningPercentage: 100 storageOverProvisioningPercentage: 100
storageMinimalAvailablePercentage: 10 storageMinimalAvailablePercentage: 10
@@ -15,35 +16,28 @@ defaultSettings:
# set here via the `taintToleration` setting (semicolon-separated `kubectl # set here via the `taintToleration` setting (semicolon-separated `kubectl
# taint` syntax), not via per-component `tolerations` blocks. # taint` syntax), not via per-component `tolerations` blocks.
# #
# The P330 node is tainted `dedicated=failover:NoSchedule` (see taintToleration: node-role.kubernetes.io/control-plane:NoSchedule
# infra/p330/kube/variables.tf). Tolerating it lets Longhorn schedule
# engine/replica pods there so a volume can be failed over to the P330.
# The control-plane taint is also tolerated defensively, although with
# allowSchedulingOnControlPlanes=true on the R740 it is not actually applied.
taintToleration: dedicated=failover:NoSchedule;node-role.kubernetes.io/control-plane:NoSchedule
persistence: persistence:
defaultClass: true defaultClass: true
defaultClassReplicaCount: 2 defaultClassReplicaCount: 1
# Retain volumes on PVC delete — safer during migration # Retain volumes on PVC delete — safer during migration
reclaimPolicy: Retain reclaimPolicy: Retain
# Mount options for ext4 # Mount options for ext4
fstype: ext4 fstype: ext4
# longhorn-manager is a DaemonSet — it must run on every storage node, # longhorn-manager is a DaemonSet — it must run on every storage node.
# including the P330 failover node. The control-plane toleration is defensive
# (allowSchedulingOnControlPlanes=true means it is not actually applied on the
# R740, but keeps things correct if that ever changes).
longhornManager: longhornManager:
tolerations: tolerations:
- key: ENC[AES256_GCM,data:/lEcTm3XFvlmSSJwYhG0CeYXmDHOfUa+yHXfQFxt9WgHN/EBGQ==,iv:h2ZUX6s/lrhjp6yC+PFYACR10uxH7D86vAESbQ9H/9s=,tag:F5xBv+YpjHeErRKTRzNM6g==,type:str] - key: ENC[AES256_GCM,data:/lEcTm3XFvlmSSJwYhG0CeYXmDHOfUa+yHXfQFxt9WgHN/EBGQ==,iv:h2ZUX6s/lrhjp6yC+PFYACR10uxH7D86vAESbQ9H/9s=,tag:F5xBv+YpjHeErRKTRzNM6g==,type:str]
operator: Exists operator: Exists
effect: NoSchedule effect: NoSchedule
# Tolerate the failover taint so longhorn-manager runs on the P330 # Was the failover taint toleration (now a no-op; see note above)
- key: ENC[AES256_GCM,data:dBRTGlRjjGCR,iv:AcPEXMinsw6ow0izpIXFntwZUMAvMOA1P65mJDBwhmw=,tag:0w24kf8BfryNs07RpWme9w==,type:str] - key: ENC[AES256_GCM,data:dBRTGlRjjGCR,iv:AcPEXMinsw6ow0izpIXFntwZUMAvMOA1P65mJDBwhmw=,tag:0w24kf8BfryNs07RpWme9w==,type:str]
value: ENC[AES256_GCM,data:7XvkPrpko5A=,iv:J8qgVcveMb17rgzYN6WgmE5NpsaKDKMU/2EEctaQL5I=,tag:T9ofKbtlEiVPBqX/xEpnFA==,type:str] value: ENC[AES256_GCM,data:7XvkPrpko5A=,iv:J8qgVcveMb17rgzYN6WgmE5NpsaKDKMU/2EEctaQL5I=,tag:T9ofKbtlEiVPBqX/xEpnFA==,type:str]
operator: Equal operator: Equal
effect: NoSchedule effect: NoSchedule
# longhorn-driver (CSI provisioner/attacher deployer) — tolerate the same # longhorn-driver (CSI provisioner/attacher deployer) — tolerate the same
# taints so CSI operations work from the failover node. # taints so CSI operations work. The second toleration was for the removed
# failover taint and is now a harmless encrypted no-op.
longhornDriver: longhornDriver:
tolerations: tolerations:
- key: ENC[AES256_GCM,data:LuvHfPv9JRofL9cOJe/kvfs01+9F3d1hiCjr+WCTzMrxlneCBw==,iv:aC8TMpygwEio0Y6zau5QGTRNMDoxajuBLwVrFF+7fjg=,tag:nSJB+PBouekJkX23ar46kA==,type:str] - key: ENC[AES256_GCM,data:LuvHfPv9JRofL9cOJe/kvfs01+9F3d1hiCjr+WCTzMrxlneCBw==,iv:aC8TMpygwEio0Y6zau5QGTRNMDoxajuBLwVrFF+7fjg=,tag:nSJB+PBouekJkX23ar46kA==,type:str]
@@ -53,8 +47,7 @@ longhornDriver:
value: ENC[AES256_GCM,data:A7XxyClHSCQ=,iv:cw9fzGcxDcSrELJlWmqxGuzTvZy5aYe/y43Xq0a1xdc=,tag:sj0ZQPBXJQURZ6A3QPJENg==,type:str] value: ENC[AES256_GCM,data:A7XxyClHSCQ=,iv:cw9fzGcxDcSrELJlWmqxGuzTvZy5aYe/y43Xq0a1xdc=,tag:sj0ZQPBXJQURZ6A3QPJENg==,type:str]
operator: Equal operator: Equal
effect: NoSchedule effect: NoSchedule
# longhorn-ui — tolerate the same taints so the UI is reachable even if it # longhorn-ui — tolerate the same taints so the UI is reachable.
# lands on the failover node.
longhornUI: longhornUI:
replicas: 1 replicas: 1
tolerations: tolerations: