sesamy-gtm

by foomo

Helm chartv0.7.0App 4.7.0Verified publisher

Helm chart for the Sesamy GTM tagging & preview service.

About this chart

sesamy-gtm

Helm chart for the Sesamy GTM tagging & preview service.

Homepage: https://www.foomo.org

Resources

Values

Autoscaling

KeyTypeDefaultDescription
autoscaling.additionalMetricsobject{}Additional scaling metrics
autoscaling.behaviorobject{}Autoscaling behavior settings
autoscaling.enabledboolfalseEnable autoscaling
autoscaling.maxReplicasint9Maximum replication number
autoscaling.maxUnavailableint1Maximum unavailablity
autoscaling.minAvailablestring""Minimum availablity
autoscaling.minReplicasint1Minimum replication number
autoscaling.targetCPUint75Target CPU utilization
autoscaling.targetMemorystringnilTarget Memory utilization

Collect

KeyTypeDefaultDescription
collect.dnsConfigobject{}DNSConfig settings for pods
collect.enabledboolfalseEnable collect
collect.extraEnvlist[]Environment variables to add
collect.extraEnvFromlist[]Environment variables from secrets or configmaps to add
collect.extraPortslist[]Port definitions to add
collect.extraVolumeMountslist[]Volume mounts to add
collect.extraVolumeslist[]Volumes to add
collect.hostAliaseslist[]Host aliases to add
collect.image.pullPolicystring"IfNotPresent"The image pull policy
collect.image.recreateboolfalseForce recreation
collect.image.repositorystring""The image repository
collect.image.tagstring""The image tag
collect.imagePullSecretslist[]Image pull secrets
collect.livenessProbeobject{}Liveness probe settings for pods
collect.podAnnotationsobject{}Annotations for pods
collect.podLabelsobject{}Labels for pods
collect.podSecurityContext.fsGroupint1001File system group id
collect.podSecurityContext.runAsGroupint1001Run as group id
collect.podSecurityContext.runAsNonRootbooltrueIndicates wether to run as non root user
collect.podSecurityContext.runAsUserint1001Run as user id
collect.podSecurityContext.seccompProfileobject{"type":"RuntimeDefault"}Restrict a Container's Syscalls with seccomp
collect.readinessProbeobject{}Readiness probe settings for pods
collect.replicaCountint1Number of replicas
collect.resourcesobject{}Resource request & limits
collect.securityContext.allowPrivilegeEscalationboolfalseControls whether a process can gain more privileges than its parent process
collect.securityContext.capabilitiesobject{"drop":["ALL"]}Grant certain privileges to a process without granting all the privileges of the root user
collect.securityContext.readOnlyRootFilesystembooltrueMounts the container's root filesystem as read-only
collect.service.annotationsobject{}Annotations for the service
collect.service.labelsobject{}Labels for service
collect.service.portsobject{"gtag":8080,"mpv2":8081}Ports of the service
collect.service.typestring"ClusterIP"Type of the service
collect.startupProbeobject{}Startup probe settings for pods

Deprecated

KeyTypeDefaultDescription
fleetstring""Squadron fleet name
squadronstring""Squadron name
unitstring""Squadron unit name

Overrides

KeyTypeDefaultDescription
fullnameOverridestring""Overrides the chart's computed fullname
nameOverridestring""Overrides the chart's name
namespaceOverridestring""The name of the Namespace to deploy

Google Tag Manager

KeyTypeDefaultDescription
gtm.containerConfigstring""Base64-encoded container parameters in the URL query string format
gtm.containerRefreshSecondsint60Interval between container refreshes
gtm.googleApplicationCredentialsOptional""Base64-encoded service account credential that is authorized to access resources
gtm.googleCloudProjectOptional""Google Cloud project ID
gtm.image.pullPolicystring"IfNotPresent"Image tag
gtm.image.repositorystring"gcr.io/cloud-tagging-10302018/gtm-cloud-image"The image repository
gtm.image.tagstring"4.7.0"The image tag of the release

Ingress

KeyTypeDefaultDescription
ingress.annotationsobject{}Annotations
ingress.classNamestring""Ingress class name
ingress.enabledboolfalseEnable ingress
ingress.hostslist[]Hosts to listen to
ingress.pathsobject{"preview":[{"path":"/gtm","pathType":"ImplementationSpecific","port":8080}],"tagging":[{"path":"/gtm.js","pathType":"ImplementationSpecific","port":8080},{"path":"/_/set_cookie","pathType":"ImplementationSpecific","port":8080},{"path":"/gtag/js","pathType":"ImplementationSpecific","port":8080},{"path":"/_/service_worker","pathType":"ImplementationSpecific","port":8080},{"path":"/g/collect","pathType":"ImplementationSpecific","port":8080}]}Path settings
ingress.tlslist[]Tls setttings

Network Policy

KeyTypeDefaultDescription
networkPolicy.discovery.namespaceSelectorobject{}Specifies the namespace the discovery Pods are running in
networkPolicy.discovery.podSelectorobject{}Specifies the Pods labels used for discovery
networkPolicy.discovery.portstringnilSpecify the port used for discovery
networkPolicy.enabledboolfalseSpecifies whether Network Policies should be created
networkPolicy.externalStorage.cidrslist[]Specifies specific network CIDRs you want to limit access to
networkPolicy.externalStorage.portslist[]Specify the port used for external storage, e.g. AWS S3
networkPolicy.ingress.namespaceSelectorobject{}Specifies the namespaces which are allowed to access the http port
networkPolicy.ingress.podSelectorobject{}Specifies the Pods which are allowed to access the http port
networkPolicy.metrics.cidrslist[]Specifies specific network CIDRs which are allowed to access the metrics port
networkPolicy.metrics.namespaceSelectorobject{}Specifies the namespaces which are allowed to access the metrics port
networkPolicy.metrics.podSelectorobject{}Specifies the Pods which are allowed to access the metrics port

Preview

KeyTypeDefaultDescription
preview.dnsConfigobject{}DNSConfig settings for pods
preview.extraEnvlist[]Environment variables to add
preview.extraEnvFromlist[]Environment variables from secrets or configmaps to add
preview.extraVolumeMountslist[]Volume mounts to add
preview.extraVolumeslist[]Volumes to add
preview.hostAliaseslist[]Host aliases to add
preview.imagePullSecretslist[]Image pull secrets
preview.livenessProbeobject{"httpGet":{"path":"/healthz","port":"http"}}Liveness probe settings for pods
preview.podAnnotationsobject{}Annotations for pods
preview.podLabelsobject{}Labels for pods
preview.podSecurityContext.seccompProfileobject{"type":"RuntimeDefault"}Restrict a Container's Syscalls with seccomp
preview.readinessProbeobject{"httpGet":{"path":"/healthz","port":"http"}}Readiness probe settings for pods
preview.replicaCountint1Number of replicas
preview.resourcesobject{}Resource request & limits
preview.securityContext.allowPrivilegeEscalationboolfalseControls whether a process can gain more privileges than its parent process
preview.securityContext.capabilitiesobject{"drop":["ALL"]}Grant certain privileges to a process without granting all the privileges of the root user
preview.securityContext.readOnlyRootFilesystemboolfalseMounts the container's root filesystem as read-only
preview.service.annotationsobject{}Annotations for the service
preview.service.labelsobject{}Labels for service
preview.service.portint8080Port of the service
preview.service.typestring"ClusterIP"Type of the service
preview.startupProbeobject{"httpGet":{"path":"/healthz","port":"http"}}Startup probe settings for pods

HTTPS Proxy

KeyTypeDefaultDescription
proxy.configstring"server {\n listen 443 ssl;\n\n ssl_certificate /etc/nginx/ssl/tls.crt;\n ssl_certificate_key /etc/nginx/ssl/tls.key;\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 1h;\n ssl_buffer_size 8k;\n\n location / {\n proxy_pass http://0.0.0.0:{{ .Values.tagging.service.port }};\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $server_name;\n proxy_set_header Upgrade $http_upgrade;\n proxy_set_header Connection 'upgrade';\n proxy_cache_bypass $http_upgrade;\n }\n}\n"Nginx SSL Reverse Proxy config
proxy.image.pullPolicystring"IfNotPresent"The image pull policy
proxy.image.repositorystring"nginx"The image repository
proxy.image.tagstring"1.31.9-alpine"The image tag
proxy.resourcesobject{}Resource request & limits
proxy.securityContext.allowPrivilegeEscalationboolfalseControls whether a process can gain more privileges than its parent process
proxy.securityContext.capabilitiesobject{}Grant certain privileges to a process without granting all the privileges of the root user
proxy.securityContext.readOnlyRootFilesystemboolfalseMounts the container's root filesystem as read-only
proxy.tls.crtstring""Base64 encoded TLS cert
proxy.tls.keystring""Base64 encoded TLS key

General

KeyTypeDefaultDescription
revisionHistoryLimitint10Number of revisions to keep
updateStrategystring"RollingUpdate"Deployment update strategy

Routing

KeyTypeDefaultDescription
routing.enabledboolfalseIndicates wether routing is enabled or not
routing.hostnameslist[]Hostnames matched by the route; defaults to the listener hostname (supports tpl)
routing.parentRefslist[]Parent references
routing.pathsobject{"preview":[{"path":"/gtm","pathType":"PathPrefix","port":8080}],"tagging":[{"path":"/gtm.js","pathType":"Exact","port":8080},{"path":"/_set_cookie","pathType":"Exact","port":8080},{"path":"/gtag/js","pathType":"PathPrefix","port":8080},{"path":"/_/service_worker","pathType":"PathPrefix","port":8080},{"path":"/g/collect","pathType":"PathPrefix","port":8080}]}Path matches per service (preview, tagging, collect); set a service to null to drop its routes

Scheduling

KeyTypeDefaultDescription
scheduling.affinityobject{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"node-role.kubernetes.io/control-plane","operator":"In","values":[""]}]}]}}Affinity for pod assignment
scheduling.enabledboolfalseIndicates wether scheduling is enabled or not
scheduling.nodeSelectorobject{}Node labels for pod assignment
scheduling.priorityClassstringnilPriority class name
scheduling.tolerationslist[]Tolerations for pod assignment
scheduling.topologySpreadConstraintslist[{"matchLabelKeys":["pod-template-hash"],"maxSkew":1,"topologyKey":"kubernetes.io/hostname","whenUnsatisfiable":"DoNotSchedule"},{"maxSkew":1,"topologyKey":"topology.kubernetes.io/zone","whenUnsatisfiable":"ScheduleAnyway"}]Tolerations for pod assignment

Service Account

KeyTypeDefaultDescription
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountboolfalseAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createboolfalseSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use

Service Monitor

KeyTypeDefaultDescription
serviceMonitor.annotationsobject{}ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf enabled, ServiceM

Deploy sesamy-gtm with OpenTenant

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