oauth2-proxy-injector
by KvalitetsIT
Helm chartv1.5.0App 1.5.0Verified publisher
Mutating webhook that injects oauth2-proxy sidecars into pods
About this chart
oauth2-proxy-injector
Mutating webhook that injects oauth2-proxy sidecars into pods
Homepage: https://github.com/KvalitetsIT
Maintainers
| Name | Url | |
|---|---|---|
| KvalitetsIT | [email protected] | https://github.com/KvalitetsIT/helm-repo |
Source Code
- https://github.com/KvalitetsIT/cnpg-chart
- https://github.com/KvalitetsIT/cnpg-chart/tree/main/charts/cnpg-cluster
Values
Configuration
| Key | Type | Default | Description |
|---|---|---|---|
| oauth2ProxyDefaults | object | {"image":"quay.io/oauth2-proxy/oauth2-proxy","resources":{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"50m","memory":"64Mi"}},"tag":"v7.15.0"} | Default settings for the injected oauth2-proxy sidecar. |
| oauth2ProxyDefaults.image | string | "quay.io/oauth2-proxy/oauth2-proxy" | Default oauth2-proxy image passed as OAUTH2_PROXY_IMAGE. |
| oauth2ProxyDefaults.tag | string | "v7.15.0" | Default oauth2-proxy tag passed as OAUTH2_PROXY_TAG. |
| oauth2ProxyDefaults.resources | object | {"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"50m","memory":"64Mi"}} | Default resource requests and limits for the injected oauth2-proxy sidecar. |
Other Values
| Key | Type | Default | Description |
|---|---|---|---|
| nameOverride | string | "" | Override the chart name. If empty, the release name is used. |
| injector.image.repository | string | "kvalitetsit/oauth2-proxy-injector" | Container image repository for the webhook server. |
| injector.image.tag | string | "1.5.0" | Container image tag. |
| injector.image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| injector.image.pullSecrets | list | [] | Image pull secrets. |
| injector.replicaCount | int | 2 | Number of replicas for the injector Deployment. |
| injector.podSecurityContext | object | {"fsGroup":1000,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}} | Pod security context for the injector pod. |
| injector.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}} | Security context for the injector container. |
| injector.resources.limits.cpu | string | "100m" | CPU resource limit for the injector pod. |
| injector.resources.limits.memory | string | "128Mi" | Memory resource limit for the injector pod. |
| injector.resources.requests.cpu | string | "20m" | CPU resource request for the injector pod. |
| injector.resources.requests.memory | string | "64Mi" | Memory resource request for the injector pod. |
| injector.additionalEnvVars | list | [] | Extra environment variables to set on the injector container. |
| injector.config | object | {"listenAddr":":8443","logLevel":"info","tlsCertPath":"/tls/tls.crt","tlsKeyPath":"/tls/tls.key"} | Configuration for the oauth2-proxy-injector. |
| injector.config.listenAddr | string | ":8443" | Listen address passed as LISTEN_ADDR. |
| injector.config.logLevel | string | "info" | Log level for the injector (LOG_LEVEL), e.g. debug, info, warn, error. |
| injector.config.tlsCertPath | string | "/tls/tls.crt" | Path to the TLS certificate file passed as TLS_CERT_PATH. |
| injector.config.tlsKeyPath | string | "/tls/tls.key" | Path to the TLS key file passed as TLS_KEY_PATH. |
| service.type | string | "ClusterIP" | Kubernetes Service type. |
| service.port | int | 443 | Service port for HTTPS webhook traffic. |
| service.targetPort | string | "https" | Target port name on the container (must match containerPort name). |
| webhook.certManager | object | {"enabled":false} | Enable cert-manager integration for automatic TLS certificate management. |
| webhook.failurePolicy | string | "Fail" | Failure policy for the MutatingWebhookConfiguration. Fail: reject pod creation on webhook errors. |
| webhook.timeoutSeconds | int | 5 | Timeout in seconds for the webhook call. |
| webhook.namespaceSelector | object | {} | NamespaceSelector for the webhook. When empty, all namespaces are eligible (subject to additional labels). |
| webhook.objectSelector | object | {"matchExpressions":[{"key":"oauth2-proxy.kitkube.dk/inject","operator":"In","values":["true"]}]} | objectSelector matchExpressions to filter pods. Default requires label oauth2-proxy.kitkube.dk/inject: "true". |
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy oauth2-proxy-injector with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has oauth2-proxy-injector 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 chartoauth2-proxy-injector is pinned at v1.5.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