Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wiremock/helm-charts

Helm Chart for Wiremock deployment on Kubernetes
https://github.com/wiremock/helm-charts

api hacktoberfest helm-charts kubernetes-deployment wiremock wiremock-standalone

Last synced: 6 days ago
JSON representation

Helm Chart for Wiremock deployment on Kubernetes

Awesome Lists containing this project

README

        

![CI](https://github.com/wiremock/helm-charts/actions/workflows/ci.yaml/badge.svg)

# WireMock Helm Charts

Helm Chart for WireMock deployment to Kubernetes.
It allows deploying the official [WireMock Docker images](https://github.com/wiremock/wiremock-docker) for both WireMock 2 and WireMock 3,
and also other charts that extend it.

Historically, [holomekc/wiremock](https://github.com/holomekc/wiremock) was suggested as a default image,
and the chart remains partially compatible with it.

# Quick Start

## Pre-requisites

1. [Install Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/) or use another Kubernetes cluster
2. [Install Helm](https://helm.sh/docs/intro/install/)

## Install WireMock

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

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

You can then run `helm upgrade --install wiremock/wiremock` to install it through the repository.

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

```bash
helm upgrade --install ./charts/
```

Setup port forwarding

```bash
$ 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

```bash
$ 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

- [WireMock Java Library](https://github.com/tomakehurst/wiremock)
- [Official WireMock Docker Image](https://github.com/wiremock/wiremock-docker)
- [WireMock extended with Web UI](https://github.com/holomekc/wiremock), a project by [(@holomekc]https://github.com/holomekc)