mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 00:01:00 +02:00
Currently, the deployment manifest specifies two labels: `name` and `team`. This fixes the service not matching the deployed pods by chosing a correct selector.
16 lines
287 B
YAML
16 lines
287 B
YAML
apiVersion: "v1"
|
|
kind: "Service"
|
|
metadata:
|
|
name: "postgres-operator-ui"
|
|
namespace: "default"
|
|
labels:
|
|
application: "postgres-operator-ui"
|
|
spec:
|
|
type: "ClusterIP"
|
|
selector:
|
|
name: "postgres-operator-ui"
|
|
ports:
|
|
- port: 80
|
|
protocol: "TCP"
|
|
targetPort: 8081
|