apiVersion: v1 kind: Service metadata: name: mail spec: selector: app: mail ports: - protocol: TCP port: 25 targetPort: 25