Skip to content

wiremock/helm-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

CI

WireMock Helm Charts

Helm Chart for WireMock deployment to Kubernetes. It allows deploying the official WireMock Docker images for both WireMock 2 and WireMock 3, and also other charts that extend it.

Historically, holomekc/wiremock was suggested as a default image, and the chart remains partially compatible with it.

Quick Start

Pre-requisites

  1. Install Minikube or use another Kubernetes cluster
  2. Install Helm

Install WireMock

Once Helm is installed, you can either add this repository with helm repo add:

helm repo add wiremock https://wiremock.github.io/helm-charts

You can then run helm upgrade --install <release name> wiremock/wiremock to install it through the repository.

Alternatively, you can clone the helm repo and then install it with a local reference:

helm upgrade --install <release_name> ./charts/<chart_name>

Setup port forwarding

$ export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "wiremock.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")

$ kubectl port-forward $POD_NAME 8080:{{ .Values.service.internalPort}}

Verify WireMock deployment

To verify a response using WireMock, run

$ curl -X POST http://127.0.0.1:8080/v1/hello

To check the web app when using holomekc/wiremock, visit http://127.0.0.1:8080/__admin/webapp on your browser.

References