gateway
by deps.cloud
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.
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| autoscaling.enabled | bool | false | Enable autoscaling. |
| autoscaling.maxReplicas | int | 5 | The maximum number of replicas allowed. |
| autoscaling.minReplicas | int | 1 | The minimum number of replicas to maintain. |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | The target CPU utilization threshold when autoscaling is triggered. |
| extractor.address | string | "dns:///extractor:8090" | Configures the connection string for the extractor. |
| extractor.secretName | string | "" | Configures mTLS for the extractor. The secret needs 3 keys: tls.crt, |
| fullnameOverride | string | "" | |
| global.labels | object | {} | Common labels added to all resources. |
| global.metrics.serviceMonitor.enabled | bool | false | Create a Prometheus ServiceMonitor. |
| global.metrics.serviceMonitor.interval | string | "10s" | Configure the scrape interval used by the monitor. |
| global.service.topology | list | [] | Configure the routing topology. Requires ServiceTopology feature gate and ClusterIP. |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ocr.sh/depscloud/gateway" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| labels | object | {} | Labels added to all resources. These are joined with the global configuration for the deployment. |
| metrics.dashboard.enabled | bool | false | Enables the creation of the dashboard config map. |
| metrics.dashboard.namespace | string | "" | 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.label | string | "grafana_dashboard" | The label used by the sidecar to select the dashboard. |
| metrics.serviceMonitor.enabled | bool | false | Create a Prometheus ServiceMonitor. |
| metrics.serviceMonitor.interval | string | "10s" | Configure the scrape interval used by the monitor. |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | Annotations for the pod. |
| podSecurityContext | object | {} | |
| replicaCount | int | 1 | The number of instances to run. |
| resources | object | {} | Configure the resources allocated to the process. |
| securityContext | object | {} | |
| service.annotations | object | {} | Specify any annotations to add to the service. |
| service.topology | list | [] | Configure the routing topology. Requires ClusterIP. |
| service.type | string | "Headless" | Configure the service type to use. |
| serviceAccount.automountToken | bool | false | Determine pods should automount the token. |
| serviceAccount.create | bool | true | Specifies whether a service account should be created. |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tls.secretName | string | "" | Configure mTLS for the gateway. The secret needs 3 keys: tls.crt, tls.key, and ca.crt. |
| tolerations | list | [] | |
| tracker.address | string | "dns:///tracker:8090" | Configures the connection string for the tracker. |
| tracker.secretName | string | "" | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgateway is pinned at v0.3.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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