keyrock

by FIWARE Foundation

Helm chartv0.9.0App 8.3.3

A Helm chart for running the fiware idm keyrock on kubernetes.

About this chart

keyrock

A Helm chart for running the fiware idm keyrock on kubernetes.

Homepage: https://fiware-idm.readthedocs.io/en/latest/

Maintainers

NameEmailUrl
wistefan[email protected]

Source Code

Requirements

Kubernetes: >= 1.19-0

RepositoryNameVersion
https://fiware.github.io/helm-chartscommon0.1.2

Values

KeyTypeDefaultDescription
additionalEnvVarslist[]a list of additional env vars to be set, check the keyrock docu for all available options ref: https://fiware-idm.readthedocs.io/en/latest/installation_and_administration_guide/environment_variables/index.html
admin.emailstring"[email protected]"email address of the admin user
admin.passwordstring"admin"password of the initial admin, leave empty to get a generated one
admin.userstring"admin"username of the initial keyrock admin
authorisationRegistry.delegationEndpointstring"https://my-ar.com/delegation"Delegation endpoint of AR
authorisationRegistry.enabledboolfalseEnable usage of authorisation registry
authorisationRegistry.identifierstring""Identifier (EORI) of AR
authorisationRegistry.tokenEndpointstring"https://my-ar.com/connect/token"Token endpoint of AR
authorisationRegistry.urlstring"https://my-ar.com"URL of AR
autoscaling.apiVersionstring"v2"version of the autoscaling API
autoscaling.enabledboolfalse
autoscaling.maxReplicasint10maximum number of running pods
autoscaling.metricslist[]metrics to react on
autoscaling.minReplicasint1minimum number of running pods
certsobject{"oidcJwtAlgorithm":"HS256","pvc":{"annotations":{},"enabled":false,"size":"1Gi"}}use an already existing secret, if provided the other secrets are ignored. Expected keys are dbPassword and adminPassword existingSecret: # Certificates configuration
certs.oidcJwtAlgorithmstring"HS256"Algorithm to firm ID tokens for OIDC
certs.pvc.annotationsobject{}Annotations of the PVC for certs/ directory
certs.pvc.enabledboolfalseCreate PVC mounted at certs/ directory for persistance of HTTPS and application certificates/keys
certs.pvc.sizestring"1Gi"Size of the PVC for certs/ directory
db.hoststring"mysql"host of the database to be used
db.passwordstring"pass"password for connecting the database
db.userstring"root"user for connecting the database
extraEnvVarsSecretstring""Name of existing Secret containing extra env vars (in case of sensitive data)
fullnameOverridestring""option to override the fullname config in the _helpers.tpl
hoststring"http://localhost"host where keyrock is available at
ingress.annotationsobject{}annotations to be added to the ingress
ingress.enabledboolfalseshould there be an ingress to connect keyrock with the public internet
ingress.hostslist[]all hosts to be provided
ingress.tlslist[]configure the ingress' tls
initDataobject{"backoffLimit":1,"command":["/bin/sh","/scripts/create.sh"],"env":[],"existingConfigMap":"","hook":"post-install,post-upgrade","image":"mysql:5.7","initEnabled":false,"scriptData":{},"volumeMount":{"mountPath":"/scripts","name":"scripts"}}Configuration for initial data created during deployment
initData.backoffLimitint1Number of retries before considering a Job as failed
initData.commandlist["/bin/sh","/scripts/create.sh"]Command to be executed
initData.envlist[]Environment variables for job
initData.existingConfigMapstring""Use existing ConfigMap
initData.hookstring"post-install,post-upgrade"Annotation value for the Hook
initData.imagestring"mysql:5.7"Image to be used for post-hook job
initData.initEnabledboolfalseshould the creation of initial data be enabled
initData.scriptDataobject{}Script data for ConfigMap to be created (mandatory when no 'existingConfigMap' is set)
initData.volumeMountobject{"mountPath":"/scripts","name":"scripts"}Volume where ConfigMap is mounted
nameOverridestring""option to override the name config in the _helpers.tpl
portint8080port that the keyrock container uses
route.enabledboolfalse
route.routeslist[{"annotations":{},"certificate":{},"tls":{}}]Routes that should be created
route.routes[0]object{"annotations":{},"certificate":{},"tls":{}}annotations to be added to the route
route.routes[0].certificateobject{}see: https://github.com/FIWARE-Ops/fiware-gitops/blob/master/doc/ROUTES.md
route.routes[0].tlsobject{}tls configuration for the route
satellite.enabledboolfalseEnable usage of satellite
satellite.identifierstring""Identifier (EORI) of satellite
satellite.partiesEndpointstring"https://my-satellite.com/parties"Parties endpoint of satellite
satellite.tokenEndpointstring"https://my-satellite.com/connect/token"Token endpoint of satellite
satellite.urlstring"https://my-satellite.com"URL of satellite
service.annotationsobject{}addtional annotations, if required
service.portint8080port to be used by the service
service.typestring"ClusterIP"service type
serviceAccountobject{"create":false}if a keyrock specific service account should be used, it can be configured here ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
serviceAccount.createboolfalsespecifies if the account should be created
statefulset.additionalAnnotationsobject{}additional annotations for the deployment, if required
statefulset.additionalLabelsobject{}additional labels for the deployment, if required
statefulset.affinityobject{}affinity template ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
statefulset.image.pullPolicystring"IfNotPresent"specification of the image pull policy
statefulset.image.repositorystring"fiware/idm"keyrock image name ref: https://hub.docker.com/r/fiware/idm
statefulset.image.tagstring"8.3.3"tag of the image to be used
statefulset.livenessProbe.failureThresholdint3
statefulset.livenessProbe.initialDelaySecondsint30
statefulset.livenessProbe.periodSecondsint10
statefulset.livenessProbe.successThresholdint1
statefulset.livenessProbe.timeoutSecondsint30
statefulset.nodeSelectorobject{}selector template ref: https://kubernetes.io/docs/user-guide/node-selection/
statefulset.priorityClassNamestring""priority class to be assigned to the pods ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
statefulset.readinessProbe.failureThresholdint3
statefulset.readinessProbe.initialDelaySecondsint31
statefulset.readinessProbe.periodSecondsint10
statefulset.readinessProbe.successThresholdint1
statefulset.readinessProbe.timeoutSecondsint30
statefulset.replicaCountint1initial number of target replications, can be different if autoscaling is enabled
statefulset.revisionHistoryLimitint3number of old replicas to be retained
statefulset.startupProbe.failureThresholdint5
statefulset.startupProbe.initialDelaySecondsint5
statefulset.startupProbe.periodSecondsint5
statefulset.startupProbe.timeoutSecondsint30
statefulset.tolerationslist[]tolerations template ref: ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
statefulset.topologySpreadConstraintslist[]topology spread constraints template ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
statefulset.updateStrategy.typestring"RollingUpdate"type of the update
theme.enabledboolfalseEnable theme
theme.imagestring"my-theme-image:latest"Image which holds the theme files
theme.imagePullPolicystring"IfNotPresent"specification of the image pull policy
theme.mountFaviconstring"/opt/fiware-idm/public/favicon.ico"Mount path for the source favicon
theme.mountFontsstring"/opt/fiware-idm/public/fonts/my-fonts"Mount path for the source fonts files
theme.mountImgstring"/opt/fiware-idm/public/img/my-theme"Mount path for the source image files
theme.mountJavascriptstring"/opt/fiware-idm/public/javascripts/my-theme"Mount path for the source javascript files
theme.mountThemestring"/opt/fiware-idm/themes/my-theme"Mount path for the source theme files
theme.namestring"default"Name of the theme
theme.sourceImgstring"/img/my-theme"Path to the source image files inside the container
theme.sourceThemestring"/themes/my-theme"Path to the source theme files inside the container
token.certstring""String with certificate (chain) in PEM format
token.enabledboolfalseEnable storage of local key and certificate
token.identifierstring""Identifier (EORI) of local organisation
token.keystring""String with private key in PEM format

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy keyrock with OpenTenant

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