sample-app: Add serviceName to postgresql statefulset manifest (#6205)

Without this, applying the manifest yields:
    error: error validating "db-service/200-create-postgre.yaml": error validating data: ValidationError(StatefulSet.spec): missing required field "serviceName" in io.k8s.api.apps.v1.StatefulSetSpec; if you choose to ignore these errors, turn validation off with --validate=false

Signed-off-by: Guzman <guzman@guzman.fi>
This commit is contained in:
Guzman 2025-02-10 21:54:50 +01:00 committed by GitHub
parent 70c7876650
commit 64fc93b049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ spec:
selector:
matchLabels:
app: postgresql
serviceName: postgresql
template:
metadata:
labels:

View File

@ -7,6 +7,7 @@ spec:
selector:
matchLabels:
app: postgresql
serviceName: postgresql
template:
metadata:
labels: