apiVersion: v1
kind: Service
metadata:
  name: database
spec:
  ports:
  - name: 5432tcp-database
    port: 5432
    protocol: TCP
    targetPort: 5432
  selector:
    app: database
  sessionAffinity: None
  type: ClusterIP