telepresence
by Helm
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.
| Parameter | Description | Default |
|---|---|---|
| image.registry | The repository to download the image from. Set TELEPRESENCE_REGISTRY=image.registry locally if changing this value. | ghcr.io/telepresenceio |
| image.name | The name of the image to use for the traffic-manager | tel2 |
| image.pullPolicy | How the Pod will attempt to pull the image. | IfNotPresent |
| image.tag | Override the version of the Traffic Manager to be installed. | "" (Defined in appVersion Chart.yaml) |
| image.imagePullSecrets | The Secret storing any credentials needed to access the image in a private registry. | [] |
| apiPort | The port used by the Traffic Manager gRPC API | 8081 |
| podLabels | Labels for the Traffic Manager Pod | {} |
| podAnnotations | Annotations for the Traffic Manager Pod | {} |
| podCIDRs | Verbatim list of CIDRs that the cluster uses for pods. Only valid together with podCIDRStrategy: environment | [] |
| podCIDRStrategy | Define the strategy that the traffic-manager uses to discover what CIDRs the cluster uses for pods | auto |
| podSecurityContext | The Kubernetes SecurityContext for the Pod | {} |
| securityContext | The Kubernetes SecurityContext for the Deployment | {"readOnlyRootFilesystem": true, "runAsNonRoot": true, "runAsUser": 1000} |
| schedulerName | Specify a scheduler for Traffic Manager Pod and hooks Pod. | |
| nodeSelector | Define which Nodes you want to the Traffic Manager to be deployed to. | {} |
| tolerations | Define tolerations for the Traffic Manager to ignore Node taints. | [] |
| affinity | Define the Node Affinity and Anti-Affinity for the Traffic Manager. | {} |
| priorityClassName | Name of the existing priority class to be used | "" |
| service.type | The type of Service for the Traffic Manager. | ClusterIP |
| livenessProbe | Define livenessProbe for the Traffic Manger. | {} |
| readinessProbe | Define readinessProbe for the Traffic Manger. | {} |
| resources | Define resource requests and limits for the Traffic Manger. | {} |
| logLevel | Define the logging level of the Traffic Manager | debug |
| timeouts.agentArrival | The time that the traffic-manager will wait for the traffic-agent to arrive | 30s |
| agent.appProtocolStrategy | The strategy to use when determining the application protocol to use for intercepts | http2Probe |
| agent.logLevel | The logging level for the traffic-agent | defaults to logLevel |
| agent.resources | The resources for the injected agent container | |
| agent.initResources | The resources for the injected init container | |
| agent.securityContext | The security context to use for the injected agent container | defaults to the securityContext of the first container of the app |
| agent.image.registry | The registry for the injected agent image | ghcr.io/telepresenceio |
| agent.image.name | The name of the injected agent image | "" |
| agent.image.tag | The tag for the injected agent image | "" (Defined in appVersion Chart.yaml) |
| agent.image.pullPolicy | Pull policy in the webhook for the traffic agent image | IfNotPresent |
| agentInjector.name | Name to use with objects associated with the agent-injector. | agent-injector |
| agentInjector.enabled | Enable/Disable the agent-injector and its webhook. | true |
| agentInjector.certificate.regenerate | Whether the certificate used for the mutating webhook should be regenerated. | false |
| agentInjector.certificate.accessMethod | Method used by the agent injector to access the certificate (watch or mount). | watch |
| agentInjector.certificate.method | Method used when generating the certificate used for mutating webhook (helm, supplied, or certmanager). | helm |
| agentInjector.certificate.certmanager.commonName | The common name of the generated Certmanager certificate. | agent-injector |
| agentInjector.certificate.certmanager.duration | The certificate validity duration. (optional value) | 2160h0m0s |
| agentInjector.certificate.certmanager.issuerRef.name | The Issuer name to use to generate the self signed certificate. | telepresence |
| agentInjector.certificate.certmanager.issuerRef.kind | The Issuer kind to use to generate the self signed certificate. (Issuer of ClusterIssuer) | Issuer |
| agentInjector.injectPolicy | Determines when an agent is injected, possible values are OnDemand and WhenEnabled | OnDemand |
| agentInjector.service.type | Type of service for the agent-injector. | ClusterIP |
| agentInjector.secret.name | The name of the secret the agent-injector webhook uses for authorization with the kubernetes api will expose. | mutator-webhook-tls |
| agentInjector.webhook.name | The name of the agent-injector webhook | agent-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 webhook | 443 |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttelepresence is pinned at v2.20.3-test.0 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