apiVersion: v1 kind: Service metadata: name: postfix labels: app: postfix spec: selector: app: postfix tier: smtp type: NodePort ports: - port: 30587 targetPort: 587 name: postfix-smtp