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

NameEmailUrl
KvalitetsIT[email protected]https://github.com/KvalitetsIT/helm-repo

Source Code

Values

Configuration

KeyTypeDefaultDescription
oauth2ProxyDefaultsobject{"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.imagestring"quay.io/oauth2-proxy/oauth2-proxy"Default oauth2-proxy image passed as OAUTH2_PROXY_IMAGE.
oauth2ProxyDefaults.tagstring"v7.15.0"Default oauth2-proxy tag passed as OAUTH2_PROXY_TAG.
oauth2ProxyDefaults.resourcesobject{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}Default resource requests and limits for the injected oauth2-proxy sidecar.

Other Values

KeyTypeDefaultDescription
nameOverridestring""Override the chart name. If empty, the release name is used.
injector.image.repositorystring"kvalitetsit/oauth2-proxy-injector"Container image repository for the webhook server.
injector.image.tagstring"1.5.0"Container image tag.
injector.image.pullPolicystring"IfNotPresent"Image pull policy.
injector.image.pullSecretslist[]Image pull secrets.
injector.replicaCountint2Number of replicas for the injector Deployment.
injector.podSecurityContextobject{"fsGroup":1000,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context for the injector pod.
injector.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}}Security context for the injector container.
injector.resources.limits.cpustring"100m"CPU resource limit for the injector pod.
injector.resources.limits.memorystring"128Mi"Memory resource limit for the injector pod.
injector.resources.requests.cpustring"20m"CPU resource request for the injector pod.
injector.resources.requests.memorystring"64Mi"Memory resource request for the injector pod.
injector.additionalEnvVarslist[]Extra environment variables to set on the injector container.
injector.configobject{"listenAddr":":8443","logLevel":"info","tlsCertPath":"/tls/tls.crt","tlsKeyPath":"/tls/tls.key"}Configuration for the oauth2-proxy-injector.
injector.config.listenAddrstring":8443"Listen address passed as LISTEN_ADDR.
injector.config.logLevelstring"info"Log level for the injector (LOG_LEVEL), e.g. debug, info, warn, error.
injector.config.tlsCertPathstring"/tls/tls.crt"Path to the TLS certificate file passed as TLS_CERT_PATH.
injector.config.tlsKeyPathstring"/tls/tls.key"Path to the TLS key file passed as TLS_KEY_PATH.
service.typestring"ClusterIP"Kubernetes Service type.
service.portint443Service port for HTTPS webhook traffic.
service.targetPortstring"https"Target port name on the container (must match containerPort name).
webhook.certManagerobject{"enabled":false}Enable cert-manager integration for automatic TLS certificate management.
webhook.failurePolicystring"Fail"Failure policy for the MutatingWebhookConfiguration. Fail: reject pod creation on webhook errors.
webhook.timeoutSecondsint5Timeout in seconds for the webhook call.
webhook.namespaceSelectorobject{}NamespaceSelector for the webhook. When empty, all namespaces are eligible (subject to additional labels).
webhook.objectSelectorobject{"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartoauth2-proxy-injector is pinned at v1.5.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