openid
by KvalitetsIT
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.
| Parameter | Description | Example |
|---|---|---|
| Basics | ||
fullnameOverride | Name of the service | |
namespace | Namespace to deploy into | |
podSecurityContext | podSecurityContext | |
podAnnotations | Annotations for the pod fx prometheus | prometheus.io/path: actuator prometheus prometheus.io/scrape: "true" |
serviceAccountName | serviceAccountName | |
imagePullSecrets | imagePullSecrets | |
image.repository | Name of the web-service image | |
image.tag | Web-service image tag | |
autoscaling.enabled | Enable autoscaling | true or false |
replicaCount | Number of replicas - Not used if autoscaling is enabled | 1, 2, 3 .. |
deploymentStrategy | Enables to set deployment strategy | Recreate |
affinity | Affinity for pod assignment. | |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: ``, soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: ``,soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
| OpenID Connect | ||
openid.cookieSecret | secret value for cookie sessions | |
openid.cookieSecret.key | Key of the SecretKeyRef | |
openid.cookieSecret.name | Name of the SecretKeyRef | |
openid.oidcIssuerUrl | Path to the IdP | |
openid.ClientId | OpenID Client ID | |
openid.ClientSecret | OpenID Client Secret | |
openid.ClientSecret.key | Key of the SecretKeyRef | |
openid.ClientSecret.name | Name of the SecretKeyRef | |
openid.emailDomains | Allowed email domains | client_secret_basic or client_secret_post |
openid.upstream | Upstream address | true or false |
openid.extraArgs | Args 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.type | Session data storage backend; redis or cookie. Default: cookie | redis |
openid.sessionStorage.redis | Setting for using redis | |
openid.sessionStorage.redis.existingSecret | Existing secret name for redis password | "redis-password" |
openid.sessionStorage.redis.clientType | Type of redis standalone, sentinel or cluster | "sentinel" |
openid.sessionStorage.redis.sentinel | Settings for Redis Sentinel | |
openid.sessionStorage.redis.sentinel.masterName | Name of the Redis Sentinel Master | "mymaster" |
openid.sessionStorage.redis.sentinel.password | Is Redis Sentinel using password | true |
openid.sessionStorage.redis.sentinel.connectionUrls | Connection 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.enabled | Enables the deployment | true or false |
deployment.hostAliases | hostAliases | |
deployment.containerPort | Port on web-service | 8080 |
deployment.extraContainerPort | Extra port on deployment | Port1: 8051 |
deployment.configMapMountPaths | Set value if config map needs to mount on deployment | /config |
deplyment.extraVolumeMounts | Extra volume mounts | |
deplyment.readinessProbe | Set 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopenid is pinned at v1.7.2 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