statefulsets: align guacamole and matrix drift defaults

This commit is contained in:
Andrew Stoltz
2026-04-22 23:11:47 -05:00
parent 1dc66738e6
commit 899804215a
2 changed files with 35 additions and 15 deletions

View File

@@ -19,9 +19,15 @@ metadata:
namespace: guacamole namespace: guacamole
labels: labels:
app: guac-mysql app: guac-mysql
argocd.argoproj.io/instance: infra-guacamole
spec: spec:
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
podManagementPolicy: OrderedReady
serviceName: guac-mysql serviceName: guac-mysql
replicas: 1 replicas: 1
revisionHistoryLimit: 10
selector: selector:
matchLabels: matchLabels:
app: guac-mysql app: guac-mysql
@@ -94,6 +100,10 @@ spec:
resources: resources:
requests: requests:
storage: 5Gi storage: 5Gi
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View File

@@ -76,15 +76,21 @@ apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata:
name: matrix-postgres name: matrix-postgres
namespace: matrix namespace: matrix
labels: labels:
app: matrix-postgres app: matrix-postgres
spec: argocd.argoproj.io/instance: infra-matrix
serviceName: matrix-postgres spec:
replicas: 1 persistentVolumeClaimRetentionPolicy:
selector: whenDeleted: Retain
matchLabels: whenScaled: Retain
app: matrix-postgres podManagementPolicy: OrderedReady
serviceName: matrix-postgres
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: matrix-postgres
template: template:
metadata: metadata:
labels: labels:
@@ -138,12 +144,16 @@ spec:
spec: spec:
accessModes: [ReadWriteOnce] accessModes: [ReadWriteOnce]
volumeMode: Filesystem volumeMode: Filesystem
resources: resources:
requests: requests:
storage: 5Gi storage: 5Gi
--- updateStrategy:
apiVersion: v1 rollingUpdate:
kind: Service partition: 0
type: RollingUpdate
---
apiVersion: v1
kind: Service
metadata: metadata:
name: matrix-postgres name: matrix-postgres
namespace: matrix namespace: matrix