gateway

by deps.cloud

Helm chartv0.3.5App 0.3.5Verified publisherOfficial

A Helm chart for running the deps.cloud gateway process

About this chart

Gateway

Gateway provides a single interface to the deps.cloud ecosystem. It exposes both gRPC and RESTful interfaces for clients to connect to. We expose REST primarily for human consumption. Any extensions should leverage the gRPC API.

Introduction

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

Current chart version is 0.3.5

Source Code

Prerequisites

  • Kubernetes 1.15+
  • Helm 3.0+

Installing the Chart

To install the chart with the release name gateway:

$ helm repo add depscloud https://depscloud.github.io/deploy/charts
$ helm install gateway depscloud/gateway

The command deploys gateway on the Kubernetes cluster using the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm search repo --versions

Uninstalling the Chart

To uninstall/delete the gateway deployment:

$ helm delete gateway

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

Parameters

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

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalseEnable autoscaling.
autoscaling.maxReplicasint5The maximum number of replicas allowed.
autoscaling.minReplicasint1The minimum number of replicas to maintain.
autoscaling.targetCPUUtilizationPercentageint80The target CPU utilization threshold when autoscaling is triggered.
extractor.addressstring"dns:///extractor:8090"Configures the connection string for the extractor.
extractor.secretNamestring""Configures mTLS for the extractor. The secret needs 3 keys: tls.crt,
fullnameOverridestring""
global.labelsobject{}Common labels added to all resources.
global.metrics.serviceMonitor.enabledboolfalseCreate a Prometheus ServiceMonitor.
global.metrics.serviceMonitor.intervalstring"10s"Configure the scrape interval used by the monitor.
global.service.topologylist[]Configure the routing topology. Requires ServiceTopology feature gate and ClusterIP.
image.pullPolicystring"IfNotPresent"
image.repositorystring"ocr.sh/depscloud/gateway"
image.tagstring""
imagePullSecretslist[]
labelsobject{}Labels added to all resources. These are joined with the global configuration for the deployment.
metrics.dashboard.enabledboolfalseEnables the creation of the dashboard config map.
metrics.dashboard.namespacestring""Specify what namespace the config map should be deployed to. This may differ from your application configuration. Defaults to the namespace of the release.
metrics.dashboard.sidecar.labelstring"grafana_dashboard"The label used by the sidecar to select the dashboard.
metrics.serviceMonitor.enabledboolfalseCreate a Prometheus ServiceMonitor.
metrics.serviceMonitor.intervalstring"10s"Configure the scrape interval used by the monitor.
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}Annotations for the pod.
podSecurityContextobject{}
replicaCountint1The number of instances to run.
resourcesobject{}Configure the resources allocated to the process.
securityContextobject{}
service.annotationsobject{}Specify any annotations to add to the service.
service.topologylist[]Configure the routing topology. Requires ClusterIP.
service.typestring"Headless"Configure the service type to use.
serviceAccount.automountTokenboolfalseDetermine pods should automount the token.
serviceAccount.createbooltrueSpecifies whether a service account should be created.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tls.secretNamestring""Configure mTLS for the gateway. The secret needs 3 keys: tls.crt, tls.key, and ca.crt.
tolerationslist[]
tracker.addressstring"dns:///tracker:8090"Configures the connection string for the tracker.
tracker.secretNamestring""Configures mTLS for the tracker. The secret needs 3 keys: tls.crt,

Deploy gateway with OpenTenant

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