swaggerui

by Helm

Helm chartv0.3.6App 3.24.3Apache-2.0

Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services.

About this chart

Helm Chart for swagger-ui

$${\color{red}This \space project \space is \space not \space maintained \space anymore.}$$

If you are interested in maintaining a fork of this project, you can advertise it in the dedicated issue.

Introduction

This Helm chart installs swagger-ui in a Kubernetes cluster.

Prerequisites

  • Kubernetes cluster 1.10+
  • Helm 3.0.0+
  • PV provisioner support in the underlying infrastructure.

Installation

Add Helm repository

helm repo add cetic https://cetic.github.io/helm-charts
helm repo update

Configure the chart

The following items can be set via --set flag during installation or configured by editing the values.yaml directly (need to download the chart first).

Configure the way how to expose swagger-ui service:

  • Ingress: The ingress controller must be installed in the Kubernetes cluster.
  • ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster.
  • NodePort: Exposes the service on each Node’s IP at a static port (the NodePort). You’ll be able to contact the NodePort service, from outside the cluster, by requesting NodeIP:NodePort.
  • LoadBalancer: Exposes the service externally using a cloud provider’s load balancer.

Install the chart

Install the swagger-ui helm chart with a release name my-release:

helm install my-release cetic/swaggerui

Uninstallation

To uninstall/delete the my-release deployment:

helm delete my-release

Configuration

The following table lists the configurable parameters of the swagger-ui chart and the default values.

ParameterDescriptionDefault
Image
image.repositoryswagger-ui Image nameswaggerapi/swagger-ui
image.tagswagger-ui Image tagv3.24.3
image.pullPolicyswagger-ui Image pull policyIfNotPresent
imagePullSecretslist of names of secrets containing docker registry credentials[]
Swagger-UI
swaggerui.jsonPathlocation of the configuration json file file""
swaggerui.jsonUrllocation of the configuration json file filehttp://petstore.swagger.io/v2/swagger.json
swaggerui.server.urlUrl of a custom server"http://www.google.be"
swaggerui.server.descriptiondescription of a custom server"helm-online"
Deployment
deployment.replicasNumber of replicas1
deployment.extraEnvAdditional environment variable``
deployment.jsonNoCheckCertificateEnable/Disable certificate checkfalse
Service
service.typeType of service for swagger-ui frontendNodePort
service.portPort to expose service8080
service.nodePortPort where the service is reachable30245
service.clusterIPinternal cluster service IP (set to "-" to pass an empty value)nil
service.loadBalancerIPLoadBalancerIP if service type is LoadBalancernil
service.loadBalancerSourceRangesAddress that are allowed when svc is LoadBalancer[]
service.annotationsService annotations{}
Ingress
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotations{}
ingress.pathPath to access frontend/
ingress.hostsIngress hosts[]
ingress.tlsIngress TLS configuration[]
ReadinessProbe
readinessProbeRediness Probe settingsnil
LivenessProbe
livenessProbe.httpGet.pathLiveness Probe settings/
livenessProbe.httpGet.portLiveness Probe settingshttp
livenessProbe.initialDelaySecondsLiveness Probe settings60
livenessProbe.periodSecondsLiveness Probe settings30
livenessProbe.timeoutSecondsLiveness Probe settings10
Resources
resourcesCPU/Memory resource requests/limits{}

Contributing

Feel free to contribute by making a pull request.

Please read the official Contribution Guide from Helm for more information on how you can contribute to this Chart.

License

Apache License 2.0

Deploy swaggerui with OpenTenant

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