openid

by KvalitetsIT

Helm chartv1.7.2App 1.7.2Verified publisher

A Helm chart for deploying services with OpenID Connect (OIDC) sidecar

About this chart

Service Helm Chart

Deploys a service with OpenID Connect (OIDC) sidecar

Automatic generated readme.md

The readme.md file is automatic generated from the documentation-folder using github actions.

Installing

First add KvalitetsIT Helm repo to Helm

$ helm repo add KvalitetsIT https://raw.githubusercontent.com/KvalitetsIT/helm-repo/master/
$ helm repo update

CokkieSecret generate: https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/overview

Create values.yaml file with the parameters specified

Run Helm command:

$ helm install web-service KvalitetsIT/openid -f myValues.yaml --version 1.0.3

Configuration

The following table, lists the configurable parameters.

ParameterDescriptionExample
Basics
fullnameOverrideName of the service
namespaceNamespace to deploy into
podSecurityContextpodSecurityContext
podAnnotationsAnnotations for the pod fx prometheusprometheus.io/path: actuator prometheus prometheus.io/scrape: "true"
serviceAccountNameserviceAccountName
imagePullSecretsimagePullSecrets
image.repositoryName of the web-service image
image.tagWeb-service image tag
autoscaling.enabledEnable autoscalingtrue or false
replicaCountNumber of replicas - Not used if autoscaling is enabled1, 2, 3 ..
deploymentStrategyEnables to set deployment strategyRecreate
affinityAffinity for pod assignment.
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: ``, soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: ``,soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
 
OpenID Connect
openid.cookieSecretsecret value for cookie sessions
openid.cookieSecret.keyKey of the SecretKeyRef
openid.cookieSecret.nameName of the SecretKeyRef
openid.oidcIssuerUrlPath to the IdP
openid.ClientIdOpenID Client ID
openid.ClientSecretOpenID Client Secret
openid.ClientSecret.keyKey of the SecretKeyRef
openid.ClientSecret.nameName of the SecretKeyRef
openid.emailDomainsAllowed email domainsclient_secret_basic or client_secret_post
openid.upstreamUpstream addresstrue or false
openid.extraArgsArgs for openid https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/overview#command-line-options- '--set-xauthrequest'
openid.image.repository
openid.image.tag
openid.sessionStorage.typeSession data storage backend; redis or cookie. Default: cookieredis
openid.sessionStorage.redisSetting for using redis
openid.sessionStorage.redis.existingSecretExisting secret name for redis password"redis-password"
openid.sessionStorage.redis.clientTypeType of redis standalone, sentinel or cluster"sentinel"
openid.sessionStorage.redis.sentinelSettings for Redis Sentinel
openid.sessionStorage.redis.sentinel.masterNameName of the Redis Sentinel Master"mymaster"
openid.sessionStorage.redis.sentinel.passwordIs Redis Sentinel using passwordtrue
openid.sessionStorage.redis.sentinel.connectionUrlsConnection URLs for Redis Sentinel"redis://redis-node-0.redis-headless:26379,redis://redis-node-1.redis-headless:26379,redis://redis-node-2.redis-headless:26379"
 
Deployment
deployment.enabledEnables the deploymenttrue or false
deployment.hostAliaseshostAliases
deployment.containerPortPort on web-service8080
deployment.extraContainerPortExtra port on deploymentPort1: 8051
deployment.configMapMountPathsSet value if config map needs to mount on deployment/config
deplyment.extraVolumeMountsExtra volume mounts
deplyment.readinessProbeSet values under this to config readiness probe

Deploy openid with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openid 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 chartopenid is pinned at v1.7.2 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