Skip to content

Commit

Permalink
sample-app: Add serviceName to postgresql statefulset manifest
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
guzalv committed Jan 25, 2025
1 parent 67099db commit e9056f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
selector:
matchLabels:
app: postgresql
serviceName: postgresql
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
selector:
matchLabels:
app: postgresql
serviceName: postgresql
template:
metadata:
labels:
Expand Down

0 comments on commit e9056f6

Please sign in to comment.