ambassador

by joaquinito2051

Helm chartv6.9.5App 1.14.4

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 enableAES is 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
  • AuthService resource for enabling authentication
  • RateLimitService resource for enabling rate limiting
  • Mappings 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.

ParameterDescriptionDefault
nameOverrideOverride the generated chart name. Defaults to .Chart.Name.
fullnameOverrideOverride the generated release name. Defaults to .Release.Name.
namespaceOverrideOverride the generated release namespace. Defaults to .Release.Namespace.
adminService.createIf true, create a service for Ambassador's admin UItrue
adminService.nodePortIf explicit NodePort for admin service is requiredtrue
adminService.typeAmbassador's admin service type to be usedClusterIP
adminService.annotationsAnnotations to apply to Ambassador admin service{}
adminService.loadBalancerIPIP address to assign (if cloud provider supports it)""
adminService.loadBalancerSourceRangesPassed to cloud provider load balancer if created (e.g: AWS ELB)None
ambassadorConfigConfig thats mounted to /ambassador/ambassador-config""
crds.enabledIf true, enables CRD resources for the installation.true
crds.createIf true, Creates CRD resourcestrue
crds.keepIf true, if the ambassador CRDs should be kept when the chart is deletedtrue
daemonSetIf true, Create a DaemonSet. By default Deployment controller will be createdfalse
test.enabledIf true, Create test Pod to verify the Ambassador service works correctly (Only created on helm test)true
test.imageImage to use for the test Podbusybox
hostNetworkIf true, uses the host network, useful for on-premise setupsfalse
dnsPolicyDns policy, when hostNetwork set to ClusterFirstWithHostNetClusterFirst
envAny additional environment variables for ambassador pods{}
envRawAdditional environment variables in raw YAML format{}
image.pullPolicyAmbassador image pull policyIfNotPresent
image.repositoryAmbassador imagedocker.io/datawire/aes
image.tagAmbassador image tag1.14.4
imagePullSecretsImage pull secrets[]
namespace.nameSet the AMBASSADOR_NAMESPACE environment variablemetadata.namespace
scope.singleNamespaceSet the AMBASSADOR_SINGLE_NAMESPACE environment variable and create namespaced RBAC if rbac.enabled: truefalse
podAnnotationsAdditional annotations for ambassador pods{}
deploymentAnnotationsAdditional annotations for ambassador DaemonSet/Deployment{}
podLabelsAdditional 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartambassador is pinned at v6.9.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