Skip to content

Commit

Permalink
Valtimo backend: Enable extra volumes and environment variables. Valt…
Browse files Browse the repository at this point in the history
…imo frontend: update readme documentation
  • Loading branch information
antonionasritense committed Jan 2, 2024
1 parent ffb2b7a commit 56d29d9
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 45 deletions.
2 changes: 1 addition & 1 deletion charts/valtimo-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 0.1.0
description: A Helm chart for Kubernetes
name: valtimo-backend
type: application
version: 0.1.8
version: 0.1.9

dependencies:
- name: postgresql
Expand Down
20 changes: 15 additions & 5 deletions charts/valtimo-backend/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# valtimo-backend

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand All @@ -23,6 +23,10 @@ A Helm chart for Kubernetes
| autoscaling.targetCPUUtilizationPercentage | int | `80` | Valtimo-backend Deployment autoscaling target CPU percentage |
| autoscaling.targetMemoryUtilizationPercentage | int | `80` | Valtimo-backend Deployment autoscaling target Mem utilization percentage |
| existingSecret | string | `nil` | Refer to an existing secret to avoid managing secrets through Helm. |
| extraEnvVars | list | `[]` | Array with extra environment variables to add |
| extraEnvironmentVariables | list | `[]` | |
| extraVolumeMounts | list | `[]` | Optionally specify extra list of additional volumeMounts |
| extraVolumes | list | `[]` | Optionally specify extra list of additional volumes |
| fullnameOverride | string | `""` | String to fully override valitmo-backend.fullname |
| image.pullPolicy | string | `"IfNotPresent"` | Pull policy for the image |
| image.repository | string | `""` | Domain of the image repository |
Expand All @@ -35,19 +39,25 @@ A Helm chart for Kubernetes
| ingress.hosts[0].paths[0] | object | `{"path":"/","pathType":"ImplementationSpecific"}` | Ingress path |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | Ingress path type |
| ingress.tls | list | `[]` | Enable TLS for the Ingress |
| keycloak | string | `nil` | Keycloak subchart by Bitnami. See https://artifacthub.io/packages/helm/bitnami/keycloak?modal=values for all possible values |
| keycloak | object | `{"auth":{"adminPassword":"","adminUser":"user","existingSecret":""}}` | Keycloak subchart by Bitnami. See https://artifacthub.io/packages/helm/bitnami/keycloak?modal=values for all possible values |
| livenessProbe.failureThreshold | int | `6` | Failure threshold for livenessProbe |
| livenessProbe.initialDelaySeconds | int | `40` | Initial delay seconds for livenessProbe |
| livenessProbe.periodSeconds | int | `10` | Period seconds for livenessProbe |
| livenessProbe.successThreshold | int | `1` | Success threshold for livenessProbe |
| livenessProbe.timeoutSeconds | int | `1` | Timeout seconds for livenessProbe |
| mysql | string | `nil` | MySQL subchart by Bitnami. See https://artifacthub.io/packages/helm/bitnami/mysql?modal=values for all possible values |
| mysql | object | `{"auth":{"existingSecret":"","rootPassword":""}}` | MySQL subchart by Bitnami. See https://artifacthub.io/packages/helm/bitnami/mysql?modal=values for all possible values |
| nameOverride | string | `""` | Name override for Valtimo-Backend |
| nodeSelector | object | `{}` | Node labels for Valtimo-backend pods assignment |
| persistence.annotations | object | `{}` | |
| persistence.enabled | bool | `false` | Enable/disable persistent volumes for Valimo-backend |
| persistence.existingClaim | string | `nil` | persistence.existingClaim The name of an existing PVC to use for persistence |
| persistence.mountPath | string | `"/tmp"` | persistence.mountPath Path to mount the volume at. |
| persistence.size | string | `"1Gi"` | persistence.size Size of data volume |
| persistence.storageClass | string | `""` | |
| podAnnotations | object | `{}` | Annotations for Valtimo-backend pods |
| podLabels | object | `{}` | Labels for Valtimo-backend pods |
| podSecurityContext.fsGroup | int | `2000` | Set Valtimo-backend's pod security fsGroup |
| postgresql | string | `nil` | Postgresql subchart by Bitnami. See https://artifacthub.io/packages/helm/bitnami/postgresql?modal=values for all possible values |
| postgresql | object | `{"auth":{"existingSecret":"","postgresPassword":"","secretKeys":{"adminPasswordKey":"","replicationPasswordKey":"","userPasswordKey":""}}}` | Postgresql subchart by Bitnami. See https://artifacthub.io/packages/helm/bitnami/postgresql?modal=values for all possible values |
| readinessProbe.failureThreshold | int | `6` | Failure threshold for readinessProbe |
| readinessProbe.initialDelaySeconds | int | `20` | Initial delay seconds for readinessProbe |
| readinessProbe.periodSeconds | int | `10` | Period seconds for readinessProbe |
Expand Down Expand Up @@ -87,4 +97,4 @@ A Helm chart for Kubernetes
| tolerations | list | `[]` | Tolerations for Valtimo-backend pods assignment |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
14 changes: 14 additions & 0 deletions charts/valtimo-backend/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,17 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/* vim: set filetype=mustache: */}}
{{/*
Renders a value that contains template.
Usage:
{{ include "valtimo-backend.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "valtimo-backend.tplvalues.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
19 changes: 8 additions & 11 deletions charts/valtimo-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ spec:
name: {{ .Values.existingSecret | default (include "valtimo-backend.fullname" .) }}
- configMapRef:
name: {{ include "valtimo-backend.fullname" . }}
env:
{{- if .Values.extraEnvVars }}
{{- include "valtimo-backend.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: 8080
Expand All @@ -60,10 +64,8 @@ spec:
volumeMounts:
- name: media
mountPath: {{ .Values.persistence.mountPath }}
{{- if .Values.csi.enabled }}
- name: secrets-store-inline
mountPath: "/var/run/secrets/secrets-store"
readOnly: true
{{- if .Values.extraVolumeMounts }}
{{- include "valtimo-backend.tplvalues.render" ( dict "value" .Values.extraVolumeMounts "context" $ ) | nindent 12 }}
{{- end }}
volumes:
- name: media
Expand All @@ -72,13 +74,8 @@ spec:
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ include "valtimo-backend.fullname" . }}{{- end }}
{{- else }}
emptyDir: {}
{{- if .Values.csi.enabled }}
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "{{ .Values.csi.secretProviderClass }}"
{{- if .Values.extraVolumes }}
{{- include "valtimo-backend.tplvalues.render" ( dict "value" .Values.extraVolumes "context" $ ) | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
Expand Down
27 changes: 23 additions & 4 deletions charts/valtimo-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,32 @@ tolerations: []
# -- Affinity for Valtimo-backend pods assignment
affinity: {}

extraEnvironmentVariables: []

# -- Refer to an existing secret to avoid managing secrets through Helm.
existingSecret: null

# -- CSI Driver to enable secrets store manager
csi:
enabled: false
secretProviderClass: ""
# -- Array with extra environment variables to add
extraEnvVars: []
# e.g:
# extraEnvVars:
# - name: FOO
# value: "bar"

# -- Optionally specify extra list of additional volumes
extraVolumes: []
# e.g:
# extraVolumes:
# - name: verify-certs
# configMap:
# name: verify-certs

# -- Optionally specify extra list of additional volumeMounts
extraVolumeMounts: []
# e.g:
# extraVolumeMounts:
# - name: verify-certs
# mountPath: /etc/ssl/certs/extra-certs/

persistence:
# -- Enable/disable persistent volumes for Valimo-backend
Expand Down
2 changes: 1 addition & 1 deletion charts/valtimo-frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 0.1.0
description: A Helm chart for Kubernetes
name: valtimo-frontend
type: application
version: 0.1.4
version: 0.1.5
46 changes: 23 additions & 23 deletions charts/valtimo-frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# valtimo-frontend

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

A Helm chart for Kubernetes

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | Affinity for Valtimo-backend pods assignment |
| autoscaling.enabled | bool | `false` | Enable/disable autoscaling for the Valtimo-backend deployment |
| autoscaling.maxReplicas | int | `100` | Maximum replicas for the Valtimo-backend deployment |
| autoscaling.minReplicas | int | `1` | Minimum replicas for the Valtimo-backend deployment |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | Valtimo-backend Deployment autoscaling target CPU percentage |
| autoscaling.targetMemoryUtilizationPercentage | int | `80` | Valtimo-backend Deployment autoscaling target Mem utilization percentage |
| fullnameOverride | string | `""` | String to fully override valitmo-backend.fullname |
| affinity | object | `{}` | Affinity for Valtimo-frontend pods assignment |
| autoscaling.enabled | bool | `false` | Enable/disable autoscaling for the Valtimo-frontend deployment |
| autoscaling.maxReplicas | int | `100` | Maximum replicas for the Valtimo-frontend deployment |
| autoscaling.minReplicas | int | `1` | Minimum replicas for the Valtimo-frontend deployment |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | Valtimo-frontend Deployment autoscaling target CPU percentage |
| autoscaling.targetMemoryUtilizationPercentage | int | `80` | Valtimo-frontend Deployment autoscaling target Mem utilization percentage |
| fullnameOverride | string | `""` | String to fully override valitmo-frontend.fullname |
| image.pullPolicy | string | `"IfNotPresent"` | Pull policy for the image |
| image.repository | string | `""` | Domain of the image repository |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | Image pull secrets |
| ingress.annotations | object | `{}` | Ingress annotations |
| ingress.className | string | `""` | Ingress Class which will be used to implement the Ingress |
| ingress.enabled | bool | `false` | Expose the Valtimo-backend UI through an ingress |
| ingress.enabled | bool | `false` | Expose the Valtimo-frontend UI through an ingress |
| ingress.hosts[0] | object | `{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}` | Ingress hostname |
| ingress.hosts[0].paths[0] | object | `{"path":"/","pathType":"ImplementationSpecific"}` | Ingress path |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | Ingress path type |
Expand All @@ -31,24 +31,24 @@ A Helm chart for Kubernetes
| livenessProbe.periodSeconds | int | `10` | Period seconds for livenessProbe |
| livenessProbe.successThreshold | int | `1` | Success threshold for livenessProbe |
| livenessProbe.timeoutSeconds | int | `1` | Timeout seconds for livenessProbe |
| nameOverride | string | `""` | Name override for Valtimo-Backend |
| nodeSelector | object | `{}` | Node labels for Valtimo-backend pods assignment |
| podAnnotations | object | `{}` | Annotations for Valtimo-backend pods |
| podLabels | object | `{}` | Labels for Valtimo-backend pods |
| podSecurityContext.fsGroup | int | `2000` | Set Valtimo-backend's pod security fsGroup |
| nameOverride | string | `""` | Name override for Valtimo-frontend |
| nodeSelector | object | `{}` | Node labels for Valtimo-frontend pods assignment |
| podAnnotations | object | `{}` | Annotations for Valtimo-frontend pods |
| podLabels | object | `{}` | Labels for Valtimo-frontend pods |
| podSecurityContext.fsGroup | int | `2000` | Set Valtimo-frontend's pod security fsGroup |
| readinessProbe.failureThreshold | int | `6` | Failure threshold for readinessProbe |
| readinessProbe.initialDelaySeconds | int | `5` | Initial delay seconds for readinessProbe |
| readinessProbe.periodSeconds | int | `10` | Period seconds for readinessProbe |
| readinessProbe.successThreshold | int | `1` | Success threshold for readinessProbe |
| readinessProbe.timeoutSeconds | int | `1` | Timeout seconds for readinessProbe |
| replicaCount | int | `1` | Amount of replicas running the Valtimo-backend |
| replicaCount | int | `1` | Amount of replicas running the Valtimo-frontend |
| resources | object | `{}` | |
| securityContext.capabilities.drop | list | `["ALL"]` | Valtimo-backend's container security context capabilities to be dropped |
| securityContext.readOnlyRootFilesystem | bool | `false` | Valtimo-backend's container security context readOnlyRootFilesystem |
| securityContext.runAsNonRoot | bool | `true` | Run Valtimo-backend containers as non-root |
| securityContext.runAsUser | int | `1000` | Run Valtimo-backend containers under this user-ID |
| service.port | int | `80` | Valtimo-backend service port |
| service.type | string | `"ClusterIP"` | Valtimo-backend service type |
| securityContext.capabilities.drop | list | `["ALL"]` | Valtimo-frontend's container security context capabilities to be dropped |
| securityContext.readOnlyRootFilesystem | bool | `false` | Valtimo-frontend's container security context readOnlyRootFilesystem |
| securityContext.runAsNonRoot | bool | `true` | Run Valtimo-frontend containers as non-root |
| securityContext.runAsUser | int | `1000` | Run Valtimo-frontend containers under this user-ID |
| service.port | int | `80` | Valtimo-frontend service port |
| service.type | string | `"ClusterIP"` | Valtimo-frontend service type |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
Expand All @@ -59,7 +59,7 @@ A Helm chart for Kubernetes
| settings.keycloak.redirectURL | string | `""` | The URL to redirect to after a succesfull login |
| settings.keycloak.url | string | `""` | URL which exposes Keycloak |
| settings.whitelistedDomain | string | `""` | Domain on which the app can run |
| tolerations | list | `[]` | Tolerations for Valtimo-backend pods assignment |
| tolerations | list | `[]` | Tolerations for Valtimo-frontend pods assignment |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)

0 comments on commit 56d29d9

Please sign in to comment.