hoverfly

by joaquinito2051

Helm chartv0.1.0App 1.0.0-rc.2

Hoverfly is a lightweight, open source API simulation tool. Using Hoverfly, you can create realistic simulations of the APIs your application depends on.

About this chart

Hoverfly

Hoverfly is a lightweight, open source API simulation tool. Using Hoverfly, you can create realistic simulations of the APIs your application depends on.

TL;DR;

$ helm install <helm-repo>/hoverfly

$ helm install incubator/hoverfly

Introduction

This chart bootstraps a Hoverfly deployment on a Kubernetes cluster using the Helm package manager.

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/hoverfly

$ helm install --name my-release incubator/hoverfly The command deploys Hoverfly on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the Hoverfly chart and their default values.

ParameterDescriptionDefault
image.repositoryHoverfly Image namedocker.io/spectolabs/hoverfly
image.tagHoverfly Image tagv1.0.0-rc.2
hoverflyFlagsFlags to start Hoverfly with, eg. '-auth'""
healthcheckEndpointAdmin API path for Kubernetes healthcheck/api/health
service.typeKubernetes Service typeClusterIP
service.adminPortContainer Admin port8888
service.proxyPortContainer Proxy port8500
service.externalAdminPortService Admin port8888
service.externalProxyPortService Proxy port8500
resourcesCPU/Memory resource requests/limitsMemory: 200Mi, CPU: 0.2

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
  --set hoverflyFlags='-webserver -journal-size 0' \
    <helm-repo>/hoverfly
$ helm install --name my-release \

The above command starts Hoverfly in webserver mode and disable journal. You can find all the available flags here

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml <helm-repo>/hoverfly

$ helm install --name my-release -f values.yaml incubator/hoverfly

Tip: You can use the default values.yaml

Deploy hoverfly with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hoverfly on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthoverfly is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply