Skip to content

Commit

Permalink
Add mailcatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
rielas committed Apr 7, 2024
1 parent 7b546bc commit e7e1ab3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
6 changes: 5 additions & 1 deletion charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
- "nodejs"
- "proxy"
- "repeater"
- "mailcatcher"
containers:
- name: postgres
image: postgres
Expand Down Expand Up @@ -174,7 +175,10 @@ spec:
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 30


- name: mailcatcher
image: sj26/mailcatcher

{{- if and .Values.repeaterID .Values.token .Values.cluster }}
- name: repeater
image: brightsec/cli{{ if ne .Values.repeaterImageTag "" }}:{{ .Values.repeaterImageTag }}{{ else }}:latest{{ end }}
Expand Down
8 changes: 7 additions & 1 deletion charts/brokencrystals/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ spec:
name: {{ .Release.Name }}
port:
number: 3000

- path: /mailcatcher
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}
port:
number: 1080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand Down
14 changes: 12 additions & 2 deletions charts/brokencrystals/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ spec:
- protocol: TCP
port: 3000
targetPort: 3000

---
apiVersion: v1
kind: Service
Expand All @@ -22,4 +21,15 @@ spec:
- protocol: TCP
port: 8080
targetPort: 8080

---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-mailcatcher
spec:
selector:
app: {{ .Release.Name }}
ports:
- protocol: TCP
port: 1080
targetPort: 1080

0 comments on commit e7e1ab3

Please sign in to comment.