telepresence

by Helm

Helm chartv2.20.3-test.0App 2.20.3-test.0

A chart for deploying the server-side components of Telepresence

About this chart

Telepresence

Telepresence is a tool that allows for local development of microservices running in a remote Kubernetes cluster.

This chart manages the server-side components of Telepresence so that an operations team can give limited access to the cluster for developers to work on their services.

Install

The telepresence binary embeds the helm chart, so the easiest way to install is:

$ telepresence helm install [--set x=y | --values <values file>]

Configuration

The following tables lists the configurable parameters of the Telepresence chart and their default values.

ParameterDescriptionDefault
image.registryThe repository to download the image from. Set TELEPRESENCE_REGISTRY=image.registry locally if changing this value.ghcr.io/telepresenceio
image.nameThe name of the image to use for the traffic-managertel2
image.pullPolicyHow the Pod will attempt to pull the image.IfNotPresent
image.tagOverride the version of the Traffic Manager to be installed."" (Defined in appVersion Chart.yaml)
image.imagePullSecretsThe Secret storing any credentials needed to access the image in a private registry.[]
apiPortThe port used by the Traffic Manager gRPC API8081
podLabelsLabels for the Traffic Manager Pod{}
podAnnotationsAnnotations for the Traffic Manager Pod{}
podCIDRsVerbatim list of CIDRs that the cluster uses for pods. Only valid together with podCIDRStrategy: environment[]
podCIDRStrategyDefine the strategy that the traffic-manager uses to discover what CIDRs the cluster uses for podsauto
podSecurityContextThe Kubernetes SecurityContext for the Pod{}
securityContextThe Kubernetes SecurityContext for the Deployment{"readOnlyRootFilesystem": true, "runAsNonRoot": true, "runAsUser": 1000}
schedulerNameSpecify a scheduler for Traffic Manager Pod and hooks Pod.
nodeSelectorDefine which Nodes you want to the Traffic Manager to be deployed to.{}
tolerationsDefine tolerations for the Traffic Manager to ignore Node taints.[]
affinityDefine the Node Affinity and Anti-Affinity for the Traffic Manager.{}
priorityClassNameName of the existing priority class to be used""
service.typeThe type of Service for the Traffic Manager.ClusterIP
livenessProbeDefine livenessProbe for the Traffic Manger.{}
readinessProbeDefine readinessProbe for the Traffic Manger.{}
resourcesDefine resource requests and limits for the Traffic Manger.{}
logLevelDefine the logging level of the Traffic Managerdebug
timeouts.agentArrivalThe time that the traffic-manager will wait for the traffic-agent to arrive30s
agent.appProtocolStrategyThe strategy to use when determining the application protocol to use for interceptshttp2Probe
agent.logLevelThe logging level for the traffic-agentdefaults to logLevel
agent.resourcesThe resources for the injected agent container
agent.initResourcesThe resources for the injected init container
agent.securityContextThe security context to use for the injected agent containerdefaults to the securityContext of the first container of the app
agent.image.registryThe registry for the injected agent imageghcr.io/telepresenceio
agent.image.nameThe name of the injected agent image""
agent.image.tagThe tag for the injected agent image"" (Defined in appVersion Chart.yaml)
agent.image.pullPolicyPull policy in the webhook for the traffic agent imageIfNotPresent
agentInjector.nameName to use with objects associated with the agent-injector.agent-injector
agentInjector.enabledEnable/Disable the agent-injector and its webhook.true
agentInjector.certificate.regenerateWhether the certificate used for the mutating webhook should be regenerated.false
agentInjector.certificate.accessMethodMethod used by the agent injector to access the certificate (watch or mount).watch
agentInjector.certificate.methodMethod used when generating the certificate used for mutating webhook (helm, supplied, or certmanager).helm
agentInjector.certificate.certmanager.commonNameThe common name of the generated Certmanager certificate.agent-injector
agentInjector.certificate.certmanager.durationThe certificate validity duration. (optional value)2160h0m0s
agentInjector.certificate.certmanager.issuerRef.nameThe Issuer name to use to generate the self signed certificate.telepresence
agentInjector.certificate.certmanager.issuerRef.kindThe Issuer kind to use to generate the self signed certificate. (Issuer of ClusterIssuer)Issuer
agentInjector.injectPolicyDetermines when an agent is injected, possible values are OnDemand and WhenEnabledOnDemand
agentInjector.service.typeType of service for the agent-injector.ClusterIP
agentInjector.secret.nameThe name of the secret the agent-injector webhook uses for authorization with the kubernetes api will expose.mutator-webhook-tls
agentInjector.webhook.nameThe name of the agent-injector webhookagent-injector-webhook
agentInjector.webhook.admissionReviewVersions:List of supported admissionReviewVersions.["v1"]
agentInjector.webhook.namespaceSelector:The namespaceSelector used by the agent-injector webhook when the traffic-manager is not namespaced.namespaceSelector
agentInjector.webhook.servicePath:Path to the service that provides the admission webhook/traffic-agent
agentInjector.webhook.port:Port for the service that provides the admission webhook443

Deploy telepresence with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has telepresence 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 charttelepresence is pinned at v2.20.3-test.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