chore: initial import for test contour
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: wiremock-mappings
|
||||
namespace: {{ .Values.namespace }}
|
||||
data:
|
||||
{{- range $path, $_ := .Files.Glob "mappings/*.json" }}
|
||||
{{ base $path }}: |
|
||||
{{ $.Files.Get $path | indent 4 }}
|
||||
{{- end }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mis-mock
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mis-mock
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mis-mock
|
||||
spec:
|
||||
containers:
|
||||
- name: wiremock
|
||||
image: {{ .Values.wiremock.image }}
|
||||
args: ["--global-response-templating"]
|
||||
ports:
|
||||
- containerPort: {{ .Values.wiremock.port }}
|
||||
volumeMounts:
|
||||
- name: mappings
|
||||
mountPath: /home/wiremock/mappings
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
volumes:
|
||||
- name: mappings
|
||||
configMap:
|
||||
name: wiremock-mappings
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mis-mock
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
selector:
|
||||
app: mis-mock
|
||||
ports:
|
||||
- port: {{ .Values.wiremock.port }}
|
||||
targetPort: {{ .Values.wiremock.port }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mailpit
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mailpit
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mailpit
|
||||
spec:
|
||||
containers:
|
||||
- name: mailpit
|
||||
image: {{ .Values.mailpit.image }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.mailpit.smtpPort }}
|
||||
name: smtp
|
||||
- containerPort: {{ .Values.mailpit.uiPort }}
|
||||
name: ui
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mailpit
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
selector:
|
||||
app: mailpit
|
||||
ports:
|
||||
- name: smtp
|
||||
port: {{ .Values.mailpit.smtpPort }}
|
||||
targetPort: smtp
|
||||
- name: ui
|
||||
port: {{ .Values.mailpit.uiPort }}
|
||||
targetPort: ui
|
||||
Reference in New Issue
Block a user