envoy

by slamdev

Helm chartv0.0.17App v1.18.2

Helm chart to deploy [envoy](https://www.envoyproxy.io/).

About this chart

envoy

Helm chart to deploy envoy.

Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/envoy

Maintainers

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
additionalResourceslist[]list of additional resources to create (are processed via tpl function)
affinityobject{}affinity for scheduler pod assignment
argslist[]extra args to pass to container
configYamlstring"admin:\n access_log_path: /tmp/admin_access.log\n address:\n socket_address:\n protocol: TCP\n address: 0.0.0.0\n port_value: 9901\nstatic_resources:\n listeners:\n - name: listener_0\n address:\n socket_address:\n protocol: TCP\n address: 0.0.0.0\n port_value: 10000\n filter_chains:\n - filters:\n - name: envoy.filters.network.http_connection_manager\n typed_config:\n \"@type\": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager\n stat_prefix: ingress_http\n access_log:\n - name: envoy.access_loggers.file\n typed_config:\n \"@type\": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog\n # For the demo config in the Docker container we use:\n # - system logs -> /dev/stderr\n # - (listener) access_logs -> /dev/stdout\n path: /dev/stdout\n route_config:\n name: local_route\n virtual_hosts:\n - name: local_service\n domains: [\"*\"]\n routes:\n - match:\n prefix: \"/\"\n route:\n host_rewrite_literal: www.envoyproxy.io\n cluster: service_envoyproxy_io\n http_filters:\n - name: envoy.filters.http.router\n clusters:\n - name: service_envoyproxy_io\n connect_timeout: 30s\n type: LOGICAL_DNS\n # Comment out the following line to test on v6 networks\n dns_lookup_family: V4_ONLY\n lb_policy: ROUND_ROBIN\n load_assignment:\n cluster_name: service_envoyproxy_io\n endpoints:\n - lb_endpoints:\n - endpoint:\n address:\n socket_address:\n address: www.envoyproxy.io\n port_value: 443\n transport_socket:\n name: envoy.transport_sockets.tls\n typed_config:\n \"@type\": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext\n sni: www.envoyproxy.io"config yaml
containerAdminPortint9901
containerPortslist[{"containerPort":10000,"name":"http","protocol":"TCP"}]list of container ports, should match static port_value 's from config.yaml
envstringnilenvironment variables for the deployment
fullnameOverridestring""full name of the chart.
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"envoyproxy/envoy"image repository
image.tagstring""image tag (chart's appVersion value will be used if not set)
imagePullSecretslist[]image pull secret for private images
ingress.annotationsobject{}ingress annotations
ingress.enabledboolfalseenables Ingress for envoy
ingress.hostslist[]ingress accepted hostnames
ingress.tlslist[]ingress TLS configuration
initContainer.commandstring"apk add perl && cp /opt/envoy.yaml.tpl /config/envoy.yaml && perl -pi -e 's/ENV_([_A-Z0-9]+)_ENV/$ENV{$1}/g' /config/envoy.yaml"
initContainer.enabledbooltrue
initContainer.image.pullPolicystring"IfNotPresent"initContainer image pull policy
initContainer.image.repositorystring"alpine"initContainer image repository
initContainer.image.tagstring"3.12.4"initContainer image tag
livenessProbe.httpGet.pathstring"/ready"path for liveness probe
livenessProbe.httpGet.portstring"http-admin"port for liveness probe
nameOverridestring""override name of the chart
nodeSelectorobject{}node for scheduler pod assignment
podSecurityContextobject{}specifies security settings for a pod
readinessProbe.httpGet.pathstring"/ready"path for readiness probe
readinessProbe.httpGet.portstring"http-admin"port for readiness probe
replicaCountint1number of replicas for haproxy deployment.
resourcesobject{}custom resource configuration
secretstringnilsecret
service.annotationsobject{}annotations to add to the service
service.loadBalancerIPstring""IP of service load balancer
service.portslist[{"name":"http","port":80,"protocol":"TCP","targetPort":"http"}]list of service ports
service.typestring"ClusterIP"service type
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createboolfalsespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
serviceAdmin.portint80port of envoy admin service
serviceMonitor.additionalLabelsobject{}additional labels for service monitor
serviceMonitor.enabledboolfalseServiceMonitor CRD is created for a prometheus operator
tolerationslist[]tolerations for scheduler pod assignment
volumeMountsstringnilvolume mounts
volumesstringnilvolumes

Deploy envoy with OpenTenant

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