ambassador
A Helm chart for Datawire Ambassador
About this chart
Ambassador
The Ambassador Edge Stack and its open source version Emissary-Ingress (FKA Ambassador API Gateway) offer a self-service, comprehensive API Gateway that is Kubernetes-native and built on Envoy Proxy.
TL;DR;
For Edge Stack:
$ helm repo add datawire https://getambassador.io
$ helm repo update
$ helm install ambassador datawire/ambassador
For Emissary-Ingress:
$ helm repo add datawire https://getambassador.io
$ helm repo update
$ helm install ambassador datawire/ambassador --set enableAES=false
Get Started using a demo service with the quick start guide available in the documentation at getambassador.io
Introduction
This chart deploys either Edge Stack or Emissary-Ingress 1.14 on a Kubernetes cluster using the Helm package manager.
The helm value
enableAESis used in this chart to determine whether Emissary-Ingress or Edge Stack is Installed. The default is to install Edge Stack.
For the 2.0 release line, Emissary-Ingress and Edge-Stack have separate charts. You should use the following 2.0 chart for the product of your choice when migrating to newer versions or starting a new install.
The Edge Stack 2.0 chart can be found in the Edge-Stack chart repository.
The Emissary-Ingress 2.0 chart can be found on the master branch of this repo.
See this page for more information about the differences between Emissary-Ingress and Edge Stack.
Prerequisites
- Kubernetes 1.11+
Add this Helm repository to your Helm client
helm repo add datawire https://getambassador.io
Installing the Chart
To install the chart with the release name my-release:
$ kubectl create namespace ambassador
$ helm install my-release datawire/ambassador -n ambassador
The command deploys Ambassador Edge Stack in the ambassador namespace on the Kubernetes cluster in the default configuration.
It is recommended to use the ambassador namespace for easy upgrades.
The configuration section lists the parameters that can be configured during installation.
Ambassador Edge Stack Installation
This chart defaults to installing The Ambassador Edge Stack with all of its configuration objects.
- A Redis instance
AuthServiceresource for enabling authenticationRateLimitServiceresource for enabling rate limitingMappings for internal request routing
If installing alongside another deployment of Ambassador, some of these resources can cause configuration errors since only one AuthService or RateLimitService can be configured at a time.
If you already have one of these resources configured in your cluster, please see the configuration section below for information on how to disable them in the chart.
Ambassador OSS Installation
This chart can still be used to install Ambassador OSS.
To install OSS, change the image to use the OSS image and set enableAES: false to skip the install of any AES resources.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Changelog
Notable chart changes are listed in the CHANGELOG
Configuration
The following tables lists the configurable parameters of the Ambassador chart and their default values.
| Parameter | Description | Default |
|---|---|---|
nameOverride | Override the generated chart name. Defaults to .Chart.Name. | |
fullnameOverride | Override the generated release name. Defaults to .Release.Name. | |
namespaceOverride | Override the generated release namespace. Defaults to .Release.Namespace. | |
adminService.create | If true, create a service for Ambassador's admin UI | true |
adminService.nodePort | If explicit NodePort for admin service is required | true |
adminService.type | Ambassador's admin service type to be used | ClusterIP |
adminService.annotations | Annotations to apply to Ambassador admin service | {} |
adminService.loadBalancerIP | IP address to assign (if cloud provider supports it) | "" |
adminService.loadBalancerSourceRanges | Passed to cloud provider load balancer if created (e.g: AWS ELB) | None |
ambassadorConfig | Config thats mounted to /ambassador/ambassador-config | "" |
crds.enabled | If true, enables CRD resources for the installation. | true |
crds.create | If true, Creates CRD resources | true |
crds.keep | If true, if the ambassador CRDs should be kept when the chart is deleted | true |
daemonSet | If true, Create a DaemonSet. By default Deployment controller will be created | false |
test.enabled | If true, Create test Pod to verify the Ambassador service works correctly (Only created on helm test) | true |
test.image | Image to use for the test Pod | busybox |
hostNetwork | If true, uses the host network, useful for on-premise setups | false |
dnsPolicy | Dns policy, when hostNetwork set to ClusterFirstWithHostNet | ClusterFirst |
env | Any additional environment variables for ambassador pods | {} |
envRaw | Additional environment variables in raw YAML format | {} |
image.pullPolicy | Ambassador image pull policy | IfNotPresent |
image.repository | Ambassador image | docker.io/datawire/aes |
image.tag | Ambassador image tag | 1.14.4 |
imagePullSecrets | Image pull secrets | [] |
namespace.name | Set the AMBASSADOR_NAMESPACE environment variable | metadata.namespace |
scope.singleNamespace | Set the AMBASSADOR_SINGLE_NAMESPACE environment variable and create namespaced RBAC if rbac.enabled: true | false |
podAnnotations | Additional annotations for ambassador pods | {} |
deploymentAnnotations | Additional annotations for ambassador DaemonSet/Deployment | {} |
podLabels | Additional labels for ambassador pods |
Deploy ambassador with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ambassador 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 chartambassador is pinned at v6.9.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