mirror of https://github.com/knative/docs.git
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:
parent
70c7876650
commit
64fc93b049
|
|
@ -7,6 +7,7 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: postgresql
|
app: postgresql
|
||||||
|
serviceName: postgresql
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: postgresql
|
app: postgresql
|
||||||
|
serviceName: postgresql
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue