odrl-pap

by FIWARE Foundation

Helm chartv2.11.8App 1.9.3

A Helm chart for running the odrl-pap on kubernetes.

About this chart

odrl-pap

A Helm chart for running the odrl-pap on kubernetes.

Maintainers

NameEmailUrl
Stefan Wiedemann[email protected]

Source Code

Requirements

Kubernetes: >= 1.19-0

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

Values

KeyTypeDefaultDescription
additionalMapping.enabledboolfalseshould an additional mapping.json be loaded
additionalMapping.jsonstring"{\n \"action\": {\n \"odrl\": {\n \"use\" : {\n \"regoPackage\": \"custom.action as custom_action\",\n \"regoMethod\": \"custom_action.is_use(helper.http_part)\"\n }\n }\n }\n}\n"mapping.json to merged with the defaults the example would overwrite the default odrl:use to be handled by a custom rego method provided with the additional rego
additionalRego.enabledboolfalseshould additional packages be loaded
additionalRego.packagesstring`"action.rego:\n package odrl.action\n\n import rego.v1\n\n ## odrl:use\n # checks if the given request is a usage - in constrast to the default, this example would only consider modifications a "use"\n is_use(request) if {\n methods := ["POST", "PUT", "PATCH"]\n request.method in methods\n }\n"`
additonalEnvVarslist[]a list of additional env vars to be set, check the til docu for all available options
autoscaling.apiVersionstring"v2"HPA apiVersion (e.g. v2beta2 for k8s <1.26, v2 for 1.26+)
autoscaling.enabledboolfalse
autoscaling.maxReplicasint10maximum number of running pods
autoscaling.metricslist[]metrics to react on
autoscaling.minReplicasint1minimum number of running pods
database.existingSecretobject{"enabled":false,"key":"password","name":"the-secret"}existing secret to retrieve the db password
database.existingSecret.enabledboolfalseshould an existing secret be used
database.existingSecret.keystring"password"key to retrieve the password from
database.existingSecret.namestring"the-secret"name of the secret
database.passwordstring"password"passowrd to connect the db - ignored if existing secret is configured
database.urlstring"jdbc:postgresql://localhost:5432/pap"host of the database to be connected - will be ignored if persistence is disabled
database.usernamestring"user"username to conncet the db - ignored if existing secret is configured
deployment.additionalAnnotationsobject{}additional annotations for the deployment, if required
deployment.additionalLabelsobject{}additional labels for the deployment, if required
deployment.additionalVolumeMountslist[]additional volume mounts
deployment.additionalVolumeslist[]additional volumes to be added for the containers
deployment.affinityobject{}affinity template ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
deployment.argslist[]arguments to be set for the container
deployment.commandlist[]command to be used for starting the container
deployment.image.pullPolicystring"IfNotPresent"specification of the image pull policy
deployment.image.repositorystring"quay.io/fiware/odrl-pap"til image name ref: https://quay.io/repository/wistefan/odrl-pap
deployment.image.tagstring""overrides the image tag whose default is the chart appVersion
deployment.imagePullSecretslist[]secrets for pulling images from a private repository ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
deployment.livenessProbe.failureThresholdint3
deployment.livenessProbe.initialDelaySecondsint30
deployment.livenessProbe.periodSecondsint10
deployment.livenessProbe.successThresholdint1
deployment.livenessProbe.timeoutSecondsint30
deployment.nodeSelectorobject{}selector template ref: https://kubernetes.io/docs/user-guide/node-selection/
deployment.portint8080port that the pap container uses
deployment.priorityClassNamestring""priority class to be assigned to the pods ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
deployment.readinessProbe.failureThresholdint3
deployment.readinessProbe.initialDelaySecondsint31
deployment.readinessProbe.periodSecondsint10
deployment.readinessProbe.successThresholdint1
deployment.readinessProbe.timeoutSecondsint30
deployment.replicaCountint1initial number of target replications, can be different if autoscaling is enabled
deployment.revisionHistoryLimitint3number of old replicas to be retained
deployment.tolerationslist[]tolerations template ref: ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
deployment.topologySpreadConstraintslist[]topology spread constraints template ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
deployment.updateStrategy.rollingUpdateobject{"maxSurge":1,"maxUnavailable":0}new pods will be added gradually
deployment.updateStrategy.rollingUpdate.maxSurgeint1number of pods that can be created above the desired amount while updating
deployment.updateStrategy.rollingUpdate.maxUnavailableint0number of pods that can be unavailable while updating
deployment.updateStrategy.typestring"RollingUpdate"type of the update
fullnameOverridestring""option to override the fullname config in the _helpers.tpl
ingress.annotationsobject{}annotations to be added to the ingress
ingress.enabledboolfalseshould there be an ingress to connect til with the public internet
ingress.hostslist[]all hosts to be provided
ingress.tlslist[]configure the ingress' tls
management.portint9090port to be used for health and prometheus
management.prometheus.enabledbooltrueshould prometheus scrape be enabled
management.prometheus.pathstring"/prometheus"path for prometheus scrape
nameOverridestring""option to override the name config in the _helpers.tpl
route.annotationsobject{}annotations to be added to the route
route.certificateobject{}
route.enabledboolfalse
route.tlsobject{}tls configuration for the route
service.annotationsobject{}additional annotations, if required
service.portint8080port to be used by the service
service.serviceNameOverridestring""define the name of the service and avoid generating one
service.typestring"ClusterIP"service type
serviceAccountobject{"create":false}if a til 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

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy odrl-pap with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has odrl-pap 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 chartodrl-pap is pinned at v2.11.8 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