Abhishek R Prasad
04/22/2025, 4:38 PMapiVersion: apps/v1
kind: Deployment
metadata:
name: mec-cc-wiremock-cdt
namespace: mec-carrier-connector-cdt
labels:
app: wiremock-custom
spec:
replicas: 1
selector:
matchLabels:
app: mec-cc-wiremock-cdt
template:
metadata:
labels:
app: mec-cc-wiremock-cdt
spec:
volumes:
- name: mec-cc-wiremock-cdt-storage
persistentVolumeClaim:
claimName: mec-cc-wiremock-storage
containers:
- name: mec-cc-wiremock-custom-cdt
image: wiremock/wiremock:3.12.1-1
args:
- "--persist-mappings"
volumeMounts:
- name: mec-cc-wiremock-cdt-storage
mountPath: /mnt/azure
ports:
- containerPort: 8080
securityContext:
allowPrivilegeEscalation: false
resources:
limits:
cpu: 1500m
memory: 2Gi
requests:
cpu: 750m
memory: 1Gi
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 5
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 5
I am unable to persist the mappings this way. Am I doing something wrong ?
I would really appreciate any help !!! 🙌Mitch Smith
04/22/2025, 5:18 PMMitch Smith
04/22/2025, 5:19 PMMitch Smith
04/22/2025, 5:19 PMgetAllStubMappings
and saving to a file would be a super quick script, perhaps you could run it in another containerAbhishek R Prasad
04/22/2025, 5:25 PMMitch Smith
04/22/2025, 9:14 PMMitch Smith
04/22/2025, 9:15 PM