apiVersion: v1 kind: Service metadata: name: affine-postgresql namespace: affine spec: selector: app: affine-postgresql type: ClusterIP ports: - name: postgresql protocol: TCP port: 5432 targetPort: 5432