Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes deployment #12

Open
Lewiscowles1986 opened this issue May 6, 2023 · 0 comments
Open

Kubernetes deployment #12

Lewiscowles1986 opened this issue May 6, 2023 · 0 comments

Comments

@Lewiscowles1986
Copy link
Collaborator

Just documenting how I got this deployed at a job I'm at

apiVersion: v1
kind: Namespace
metadata:
  name: dev
  labels:
    name: dev
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: mailhog
  namespace: dev
spec:
  replicas: 1
  selector:
    matchLabels:
      service: mailhog
  template:
    metadata:
      labels:
        service: mailhog
    spec:
      containers:
      - name: app
        image: cd2team/mailhog
        imagePullPolicy: IfNotPresent
---
apiVersion: v1
kind: Service
metadata:
  name: mailhog
  namespace: dev
spec:
  type: NodePort
  selector:
    service: mailhog
  ports:
  - port: 25
    targetPort: 1025
    protocol: TCP
    name: smtp
  - port: 3000
    targetPort: 8025
    protocol: TCP
    name: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant