Created
August 2, 2023 12:02
-
-
Save vi7/bebf3bf8d16f9427fd7175e0f06c841e to your computer and use it in GitHub Desktop.
K8S deployment manifests for a dummy lightweight SMTP email server (smtp4dev) with WebUI useful for development and testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: smtp4dev | |
spec: | |
type: NodePort | |
selector: | |
app: smtp4dev | |
ports: | |
- name: smtp | |
protocol: TCP | |
port: 25 | |
targetPort: 25 | |
- name: http | |
protocol: TCP | |
port: 80 | |
targetPort: 80 | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: smtp4dev | |
labels: | |
app: smtp4dev | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: smtp4dev | |
template: | |
metadata: | |
labels: | |
app: smtp4dev | |
spec: | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/os | |
operator: In | |
values: | |
- linux | |
containers: | |
- name: smtp4dev | |
image: rnwood/smtp4dev:3.2.0-ci20221023104 | |
ports: | |
- containerPort: 80 | |
- containerPort: 25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get IP address of the smtp4dev Service:
Get external SMTP port of the smtp4dev Service:
Get external HTTP port of the smtp4dev Service: