smocker

by andrcuns

Helm chartv0.0.4App 0.18.5Verified publisher

Helm chart for smocker mock service deployment

About this chart

smocker

smocker is a is a simple and efficient HTTP mock server.

Introduction

This chart deploys smocker mock service on a Kubernetes cluster using the Helm package manager.

Add Helm repo

helm repo add andrcuns https://andrcuns.github.io/charts

Installing the Chart

Install this chart using:

helm install buildkit andrcuns/smocker --values values.yaml

The command deploys buildkit-service on the Kubernetes cluster in the default configuration. The values section lists the parameters that can be configured during installation.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity
image.pullPolicystring"IfNotPresent"Pull policy
image.repositorystring"andrcuns/smocker"Image name
image.tagstring""Image tag
logLevelstring"info"Smocker log level
mockslist[]Mocks definitions, see: https://smocker.dev/technical-documentation/mock-definition.html
nodeSelectorobject{}Node selector
podAnnotationsobject{}Pod annotations
resourcesobject{}Resource definitions
service.adminPortint8081Service admin port
service.annotationsobject{}Service annotations
service.typestring"ClusterIP"Service type
service.webPortint8080Service web port
tolerationslist[]Tolerations

Deploy smocker with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has smocker 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 chartsmocker is pinned at v0.0.4 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