kube-auth-proxy

by AppsCode Inc.

Helm chartv2023.11.14App v0.0.1Verified publisher

A Helm chart for Kubernetes Auth Proxy by AppsCode

About this chart

Kubernetes Auth Proxy

Kubernetes Auth Proxy by AppsCode - Kubernetes Auth Proxy for Kubernetes

TL;DR;

$ helm repo add appscode https://charts.appscode.com/stable
$ helm repo update
$ helm search repo appscode/kube-auth-proxy --version=v2023.11.14
$ helm upgrade -i kube-auth-proxy appscode/kube-auth-proxy -n kubeops --create-namespace --version=v2023.11.14

Introduction

This chart deploys a Kubernetes Auth Proxy on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.21+

Installing the Chart

To install/upgrade the chart with the release name kube-auth-proxy:

$ helm upgrade -i kube-auth-proxy appscode/kube-auth-proxy -n kubeops --create-namespace --version=v2023.11.14

The command deploys a Kubernetes Auth Proxy on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the kube-auth-proxy:

$ helm uninstall kube-auth-proxy -n kubeops

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the kube-auth-proxy chart and their default values.

ParameterDescriptionDefault
nameOverrideOverrides name template""
fullnameOverrideOverrides fullname template""
replicaCount1
registryFQDNDocker registry fqdn used to pull docker images Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image}ghcr.io
image.registryDocker registry used to pull operator imageappscode
image.repositoryName of operator container imagekube-auth-manager
image.tagOverrides the image tag whose default is the chart appVersion.""
image.resourcesCompute Resources required by the operator container{}
image.securityContextSecurity options this container should run with{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}
imagePullSecretsSpecify an array of imagePullSecrets. Secrets must be manually created in the namespace. Example: helm template charts/stash \ --set imagePullSecrets[0].name=sec0 \ --set imagePullSecrets[1].name=sec1[]
imagePullPolicyContainer image pull policyAlways
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use. If not set and create is true, a name is generated using the fullname template""
podAnnotations{}
podSecurityContext{}
nodeSelector{}
tolerations[]
affinity{}
monitoring.agentName of monitoring agent (one of "prometheus.io", "prometheus.io/operator", "prometheus.io/builtin")""
monitoring.serviceMonitor.labelsSpecify the labels for ServiceMonitor. Prometheus crd will select ServiceMonitor using these labels. Only usable when monitoring agent is prometheus.io/operator.{}

Specify each parameter using the --set key=value[,key=value] argument to helm upgrade -i. For example:

$ helm upgrade -i kube-auth-proxy appscode/kube-auth-proxy -n kubeops --create-namespace --version=v2023.11.14 --set replicaCount=1

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:

$ helm upgrade -i kube-auth-proxy appscode/kube-auth-proxy -n kubeops --create-namespace --version=v2023.11.14 --values values.yaml

Deploy kube-auth-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-auth-proxy 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 chartkube-auth-proxy is pinned at v2023.11.14 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