diff --git a/charts/dso-console/Chart.yaml b/charts/dso-console/Chart.yaml index 78ddf1d..b6037a2 100644 --- a/charts/dso-console/Chart.yaml +++ b/charts/dso-console/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: cpn-console description: A Helm chart to deploy Cloud Pi Native Console type: application -version: 2.3.0 +version: 2.3.1 appVersion: 9.13.2 keywords: [] home: https://cloud-pi-native.fr @@ -26,9 +26,6 @@ dependencies: deprecated: false annotations: {} maintainers: - - name: omiladi - email: cloudpinative-relations@interieur.gouv.fr - url: https://www.interieur.gouv.fr/ - - name: KepoParis - email: cloudpinative-relations@interieur.gouv.fr - url: https://www.interieur.gouv.fr/ + - name: this-is-tobi + email: thibault.colin@interieur.gouv.fr + url: https://this-is-tobi.com diff --git a/charts/dso-console/README.md b/charts/dso-console/README.md index fcdb36a..feda962 100644 --- a/charts/dso-console/README.md +++ b/charts/dso-console/README.md @@ -1,6 +1,6 @@ # cpn-console -![Version: 2.3.0](https://img.shields.io/badge/Version-2.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 9.13.2](https://img.shields.io/badge/AppVersion-9.13.2-informational?style=flat-square) +![Version: 2.3.1](https://img.shields.io/badge/Version-2.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 9.13.2](https://img.shields.io/badge/AppVersion-9.13.2-informational?style=flat-square) A Helm chart to deploy Cloud Pi Native Console @@ -10,8 +10,7 @@ A Helm chart to deploy Cloud Pi Native Console | Name | Email | Url | | ---- | ------ | --- | -| omiladi | | | -| KepoParis | | | +| this-is-tobi | | | ## Source Code @@ -30,72 +29,6 @@ A Helm chart to deploy Cloud Pi Native Console | Key | Type | Default | Description | |-----|------|---------|-------------| -| backend.affinity | object | `{}` | Default affinity for Console CPN backend. | -| backend.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Console CPN backend. | -| backend.autoscaling.maxReplicas | int | `3` | Maximum number of replicas for the Console CPN backend [HPA]. | -| backend.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the Console CPN backend [HPA]. | -| backend.autoscaling.targetCPUUtilizationPercentage | int | `80` | Average CPU utilization percentage for the Console CPN backend [HPA]. | -| backend.autoscaling.targetMemoryUtilizationPercentage | int | `80` | Average memory utilization percentage for the Console CPN backend [HPA]. | -| backend.container.args | list | `[]` | Console CPN backend container command args. | -| backend.container.command | list | `[]` | Console CPN backend container command. | -| backend.container.port | int | `8080` | Console CPN backend container port. | -| backend.container.securityContext | object | `{}` | Toggle and define container-level security context. | -| backend.dbDataCm | string | `""` | Name of the configmap with javascript data that need to be imported by the backend at start up. | -| backend.disabledPlugins | string | `""` | CSV list of plugins to disabled. | -| backend.env | object | `{}` | Console CPN backend container env variables, it will be injected into a configmap and loaded into the container. | -| backend.envFrom | list | `[]` | Console CPN backend container env variables loaded from configmap or secret reference. | -| backend.extraCa.key | string | `""` | The key to lookup. | -| backend.extraCa.mountSubPath | string | `"ca_certs"` | The path inside the container where the certificate file should be mount. This is a native Nodejs environment variable to extends certificates, see: https://nodejs.org/api/cli.html#node_extra_ca_certsfile. This mount path represent the subpath to use under the `/config` config root path. | -| backend.extraCa.name | string | `""` | The name of the configmap in namespace where certificates are stored. | -| backend.extraContainers | list | `[]` | Extra containers to add to the Console CPN backend pod as sidecars. | -| backend.extraVolumeMounts | list | `[]` | List of extra mounts to add (normally used with extraVolumes) | -| backend.extraVolumes | list | `[]` | List of extra volumes to add. | -| backend.fetchContainer.image | string | `"docker.io/wbitt/network-multitool:alpine-minimal"` | Image used to fetch plugins inside the initContainer. | -| backend.fetchContainer.pullPolicy | string | `"IfNotPresent"` | Image pull policy to fetch plugins inside the initContainer. | -| backend.healthcheckPath | string | `"/api/v1/healthz"` | Console CPN backend container healthcheck endpoint. | -| backend.hostAliases | list | `[]` | Host aliases that will be injected at pod-level into /etc/hosts. | -| backend.image.pullPolicy | string | `"Always"` | Image pull policy for the Console CPN backend. | -| backend.image.repository | string | `"ghcr.io/cloud-pi-native/console/backend"` | Repository to use for the Console CPN server. | -| backend.image.tag | string | `""` | Tag to use for the Console CPN backend. # Overrides the image tag whose default is the chart appVersion. | -| backend.initContainers | list | `[]` | Init containers to add to the Console CPN client pod. | -| backend.livenessProbe.enabled | bool | `true` | Whether or not enable the probe. | -| backend.livenessProbe.failureThreshold | int | `3` | Minimum consecutive successes for the probe to be considered successful after having failed. | -| backend.livenessProbe.initialDelaySeconds | int | `30` | Whether or not enable the probe. | -| backend.livenessProbe.periodSeconds | int | `30` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | -| backend.livenessProbe.successThreshold | int | `1` | Number of seconds after the container has started before probe is initiated. | -| backend.livenessProbe.timeoutSeconds | int | `5` | How often (in seconds) to perform the probe. | -| backend.nodeSelector | object | `{}` | Default node selector for Console CPN backend. | -| backend.plugins | list | `[]` | List of zips to download; basically curl url, unzip and stores it in plugins/external/. | -| backend.podAnnotations | object | `{}` | Annotations for the Console CPN backend deployed pods. | -| backend.podLabels | object | `{}` | Labels for the Console CPN backend deployed pods. | -| backend.podSecurityContext | object | `{}` | Toggle and define pod-level security context. | -| backend.proxy.enabled | bool | `false` | Enable Proxy configuration for the plugins initContainer. | -| backend.proxy.env | list | `[{"name":"http_proxy","value":"http://proxy.example.com:3128"},{"name":"https_proxy","value":"http://proxy.example.com:3128"},{"name":"no_proxy","value":".cluster.local,.svc.cluster.local,.svc"}]` | Map of environment variables to inject into the plugins initContainers. | -| backend.readinessProbe.enabled | bool | `true` | Whether or not enable the probe. | -| backend.readinessProbe.failureThreshold | int | `2` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | -| backend.readinessProbe.initialDelaySeconds | int | `15` | Number of seconds after the container has started before probe is initiated. | -| backend.readinessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the probe. | -| backend.readinessProbe.successThreshold | int | `2` | Minimum consecutive successes for the probe to be considered successful after having failed. | -| backend.readinessProbe.timeoutSeconds | int | `5` | Number of seconds after which the probe times out. | -| backend.replicaCount | int | `1` | The number of application controller pods to run. | -| backend.resources.limits.cpu | string | `"500m"` | CPU limit for the Console CPN backend. | -| backend.resources.limits.memory | string | `"512Mi"` | Memory limit for the Console CPN backend. | -| backend.resources.requests.cpu | string | `"250m"` | CPU request for the Console CPN backend. | -| backend.resources.requests.memory | string | `"128Mi"` | Memory request for the Console CPN backend. | -| backend.secrets | object | `{}` | Console CPN backend container env secrets, it will be injected into a secret and loaded into the container. | -| backend.service.port | int | `80` | Console CPN backend service port. | -| backend.service.type | string | `"ClusterIP"` | Console CPN backend service type. | -| backend.serviceAccount.annotations | object | `{}` | Annotations applied to created service account. | -| backend.serviceAccount.create | bool | `true` | Create a service account for the Console CPN backend. | -| backend.serviceAccount.name | string | `"cpn-console-backend"` | Service account name. | -| backend.startupProbe.enabled | bool | `true` | Whether or not enable the probe. | -| backend.startupProbe.failureThreshold | int | `10` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | -| backend.startupProbe.initialDelaySeconds | int | `0` | Number of seconds after the container has started before probe is initiated. | -| backend.startupProbe.periodSeconds | int | `10` | How often (in seconds) to perform the probe. | -| backend.startupProbe.successThreshold | int | `1` | Minimum consecutive successes for the probe to be considered successful after having failed. | -| backend.startupProbe.timeoutSeconds | int | `5` | Number of seconds after which the probe times out. | -| backend.strategy.type | string | `"RollingUpdate"` | Strategy type used to replace old Pods by new ones, can be "Recreate" or "RollingUpdate". | -| backend.tolerations | list | `[]` | Default tolerations for Console CPN backend. | | client.affinity | object | `{}` | Default affinity for Console CPN client. | | client.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Console CPN client. | | client.autoscaling.maxReplicas | int | `3` | Maximum number of replicas for the Console CPN client [HPA]. | @@ -185,21 +118,21 @@ A Helm chart to deploy Cloud Pi Native Console | cnpg.username | string | `"dso"` | Username of the database user. | | cnpg.walPvcSize | string | `nil` | Size of the WAL PVC used by each cnpg instance (if value is `null` then WAL files are stored within the data PVC). | | config.create | bool | `false` | Whether or not helm should create the console config. | -| config.name | string | `"dso-config"` | Name of the generated config. | +| config.name | string | `"dso-config"` | Name of the genrated config. | | config.projectsRootDir | string | `"forge"` | Projects root directory to use in other services such as Gitlab, etc. | -| config.secrets | object | `{}` | Secrets to inject into the configuration. It is needed for the backend to get services informations such as urls, admin username, admin password or token, etc. | +| config.secrets | object | `{}` | Secrets to inject into the configuration. It is needed for server to get services informations such as urls, admin username, admin password or token, etc. | | features | object | `{"vaultSecrets":{"enabled":true}}` | Set of feature settings - experimental | | features.vaultSecrets | object | `{"enabled":true}` | vault secrets support | | features.vaultSecrets.enabled | bool | `true` | enabling vault secret | | fullnameOverride | string | `""` | String to fully override the default application name. | | global.env | object | `{"NODE_ENV":"production"}` | Map of environment variables to inject into backend and frontend containers. | -| global.keycloak.clientIds.backend | string | `"console-backend"` | Keycloak clientId used for Console CPN backend. | +| global.keycloak.clientIds.backend | string | `"console-backend"` | Keycloak clientId used for Console CPN server. | | global.keycloak.clientIds.frontend | string | `"console-frontend"` | Keycloak clientId used for Console CPN client. | -| global.keycloak.clientSecrets.backend | string | `""` | Keycloak clientSecret used for Console CPN backend. | +| global.keycloak.clientSecrets.backend | string | `""` | Keycloak clientSecret used for Console CPN server. | | global.keycloak.devRealm | bool | `false` | Whether or not to deploy the keycloak dev realm into a configmap named `keycloak-realm-dev`. | -| global.keycloak.domain.backend | string | `"keycloak.namespace.svc.cluster.local"` | Keycloak domain used for Console CPN backend. | +| global.keycloak.domain.backend | string | `"keycloak.namespace.svc.cluster.local"` | Keycloak domain used for Console CPN server. | | global.keycloak.domain.frontend | string | `"keycloak.domain.com"` | Keycloak domain used for Console CPN client. | -| global.keycloak.protocol.backend | string | `"http"` | Keycloak protocol used for Console CPN backend. | +| global.keycloak.protocol.backend | string | `"http"` | Keycloak protocol used for Console CPN server. | | global.keycloak.protocol.frontend | string | `"https"` | Keycloak protocol used for Console CPN client. | | global.keycloak.realm | string | `"cloud-pi-native"` | Name of the keycloak realm used for authentication. | | global.keycloak.redirectUri | string | `"https://console.dso.local"` | Keycloak redirect uri used with keycloak. | @@ -266,34 +199,33 @@ A Helm chart to deploy Cloud Pi Native Console | postgresql.primary.service.ports.postgresql | int | `5432` | | | postgresql.primary.service.type | string | `"ClusterIP"` | | | postgresql.readReplicas.persistence.size | string | `"1Gi"` | | -| server | object | `{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":3,"minReplicas":1,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":80},"container":{"args":[],"command":[],"port":8080,"securityContext":{}},"dbDataCm":"","disabledPlugins":"","env":{},"envFrom":[],"extraCa":{"key":"","mountSubPath":"ca_certs","name":""},"extraContainers":[],"extraVolumeMounts":[],"extraVolumes":[],"fetchContainer":{"image":"docker.io/wbitt/network-multitool:alpine-minimal","pullPolicy":"IfNotPresent"},"healthcheckPath":"/api/v1/healthz","hostAliases":[],"image":{"pullPolicy":"Always","repository":"ghcr.io/cloud-pi-native/console/server","tag":""},"initContainers":[],"livenessProbe":{"enabled":true,"failureThreshold":3,"initialDelaySeconds":30,"periodSeconds":30,"successThreshold":1,"timeoutSeconds":5},"nodeSelector":{},"plugins":[],"podAnnotations":{},"podLabels":{},"podSecurityContext":{},"proxy":{"enabled":false,"env":[{"name":"http_proxy","value":"http://proxy.example.com:3128"},{"name":"https_proxy","value":"http://proxy.example.com:3128"},{"name":"no_proxy","value":".cluster.local,.svc.cluster.local,.svc"}]},"readinessProbe":{"enabled":true,"failureThreshold":2,"initialDelaySeconds":15,"periodSeconds":10,"successThreshold":2,"timeoutSeconds":5},"replicaCount":1,"resources":{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"250m","memory":"128Mi"}},"secrets":{},"service":{"port":80,"type":"ClusterIP"},"serviceAccount":{"annotations":{},"create":true,"name":"cpn-console-server"},"startupProbe":{"enabled":true,"failureThreshold":10,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5},"strategy":{"type":"RollingUpdate"},"tolerations":[]}` | DEPRECATED. Will be progressively replaced by `backend` | -| server.affinity | object | `{}` | Default affinity for Console CPN backend. | -| server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Console CPN backend. | -| server.autoscaling.maxReplicas | int | `3` | Maximum number of replicas for the Console CPN backend [HPA]. | -| server.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the Console CPN backend [HPA]. | -| server.autoscaling.targetCPUUtilizationPercentage | int | `80` | Average CPU utilization percentage for the Console CPN backend [HPA]. | -| server.autoscaling.targetMemoryUtilizationPercentage | int | `80` | Average memory utilization percentage for the Console CPN backend [HPA]. | -| server.container.args | list | `[]` | Console CPN backend container command args. | -| server.container.command | list | `[]` | Console CPN backend container command. | -| server.container.port | int | `8080` | Console CPN backend container port. | +| server.affinity | object | `{}` | Default affinity for Console CPN server. | +| server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Console CPN server. | +| server.autoscaling.maxReplicas | int | `3` | Maximum number of replicas for the Console CPN server [HPA]. | +| server.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the Console CPN server [HPA]. | +| server.autoscaling.targetCPUUtilizationPercentage | int | `80` | Average CPU utilization percentage for the Console CPN server [HPA]. | +| server.autoscaling.targetMemoryUtilizationPercentage | int | `80` | Average memory utilization percentage for the Console CPN server [HPA]. | +| server.container.args | list | `[]` | Console CPN server container command args. | +| server.container.command | list | `[]` | Console CPN server container command. | +| server.container.port | int | `8080` | Console CPN server container port. | | server.container.securityContext | object | `{}` | Toggle and define container-level security context. | -| server.dbDataCm | string | `""` | Name of the configmap with javascript data that need to be imported by the backend at start up. | +| server.dbDataCm | string | `""` | Name of the configmap with javascript data that need to be imported by the server at start up. | | server.disabledPlugins | string | `""` | CSV list of plugins to disabled. | -| server.env | object | `{}` | Console CPN backend container env variables, it will be injected into a configmap and loaded into the container. | -| server.envFrom | list | `[]` | Console CPN backend container env variables loaded from configmap or secret reference. | +| server.env | object | `{}` | Console CPN server container env variables, it will be injected into a configmap and loaded into the container. | +| server.envFrom | list | `[]` | Console CPN server container env variables loaded from configmap or secret reference. | | server.extraCa.key | string | `""` | The key to lookup. | | server.extraCa.mountSubPath | string | `"ca_certs"` | The path inside the container where the certificate file should be mount. This is a native Nodejs environment variable to extends certificates, see: https://nodejs.org/api/cli.html#node_extra_ca_certsfile. This mount path represent the subpath to use under the `/config` config root path. | | server.extraCa.name | string | `""` | The name of the configmap in namespace where certificates are stored. | -| server.extraContainers | list | `[]` | Extra containers to add to the Console CPN backend pod as sidecars. | +| server.extraContainers | list | `[]` | Extra containers to add to the Console CPN server pod as sidecars. | | server.extraVolumeMounts | list | `[]` | List of extra mounts to add (normally used with extraVolumes) | | server.extraVolumes | list | `[]` | List of extra volumes to add. | | server.fetchContainer.image | string | `"docker.io/wbitt/network-multitool:alpine-minimal"` | Image used to fetch plugins inside the initContainer. | | server.fetchContainer.pullPolicy | string | `"IfNotPresent"` | Image pull policy to fetch plugins inside the initContainer. | -| server.healthcheckPath | string | `"/api/v1/healthz"` | Console CPN backend container healthcheck endpoint. | +| server.healthcheckPath | string | `"/api/v1/healthz"` | Console CPN server container healthcheck endpoint. | | server.hostAliases | list | `[]` | Host aliases that will be injected at pod-level into /etc/hosts. | -| server.image.pullPolicy | string | `"Always"` | Image pull policy for the Console CPN backend. | -| server.image.repository | string | `"ghcr.io/cloud-pi-native/console/server"` | Repository to use for the Console CPN backend. | -| server.image.tag | string | `""` | Tag to use for the Console CPN backend. # Overrides the image tag whose default is the chart appVersion. | +| server.image.pullPolicy | string | `"Always"` | Image pull policy for the Console CPN server. | +| server.image.repository | string | `"ghcr.io/cloud-pi-native/console/server"` | Repository to use for the Console CPN server. | +| server.image.tag | string | `""` | Tag to use for the Console CPN server. # Overrides the image tag whose default is the chart appVersion. | | server.initContainers | list | `[]` | Init containers to add to the Console CPN client pod. | | server.livenessProbe.enabled | bool | `true` | Whether or not enable the probe. | | server.livenessProbe.failureThreshold | int | `3` | Minimum consecutive successes for the probe to be considered successful after having failed. | @@ -301,10 +233,10 @@ A Helm chart to deploy Cloud Pi Native Console | server.livenessProbe.periodSeconds | int | `30` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | | server.livenessProbe.successThreshold | int | `1` | Number of seconds after the container has started before probe is initiated. | | server.livenessProbe.timeoutSeconds | int | `5` | How often (in seconds) to perform the probe. | -| server.nodeSelector | object | `{}` | Default node selector for Console CPN backend. | +| server.nodeSelector | object | `{}` | Default node selector for Console CPN server. | | server.plugins | list | `[]` | List of zips to download; basically curl url, unzip and stores it in plugins/external/. | -| server.podAnnotations | object | `{}` | Annotations for the Console CPN backend deployed pods. | -| server.podLabels | object | `{}` | Labels for the Console CPN backend deployed pods. | +| server.podAnnotations | object | `{}` | Annotations for the Console CPN server deployed pods. | +| server.podLabels | object | `{}` | Labels for the Console CPN server deployed pods. | | server.podSecurityContext | object | `{}` | Toggle and define pod-level security context. | | server.proxy.enabled | bool | `false` | Enable Proxy configuration for the plugins initContainer. | | server.proxy.env | list | `[{"name":"http_proxy","value":"http://proxy.example.com:3128"},{"name":"https_proxy","value":"http://proxy.example.com:3128"},{"name":"no_proxy","value":".cluster.local,.svc.cluster.local,.svc"}]` | Map of environment variables to inject into the plugins initContainers. | @@ -315,15 +247,15 @@ A Helm chart to deploy Cloud Pi Native Console | server.readinessProbe.successThreshold | int | `2` | Minimum consecutive successes for the probe to be considered successful after having failed. | | server.readinessProbe.timeoutSeconds | int | `5` | Number of seconds after which the probe times out. | | server.replicaCount | int | `1` | The number of application controller pods to run. | -| server.resources.limits.cpu | string | `"500m"` | CPU limit for the Console CPN backend. | -| server.resources.limits.memory | string | `"512Mi"` | Memory limit for the Console CPN backend. | -| server.resources.requests.cpu | string | `"250m"` | CPU request for the Console CPN backend. | -| server.resources.requests.memory | string | `"128Mi"` | Memory request for the Console CPN backend. | -| server.secrets | object | `{}` | Console CPN backend container env secrets, it will be injected into a secret and loaded into the container. | -| server.service.port | int | `80` | Console CPN backend service port. | -| server.service.type | string | `"ClusterIP"` | Console CPN backend service type. | +| server.resources.limits.cpu | string | `"500m"` | CPU limit for the Console CPN server. | +| server.resources.limits.memory | string | `"512Mi"` | Memory limit for the Console CPN server. | +| server.resources.requests.cpu | string | `"250m"` | CPU request for the Console CPN server. | +| server.resources.requests.memory | string | `"128Mi"` | Memory request for the Console CPN server. | +| server.secrets | object | `{}` | Console CPN server container env secrets, it will be injected into a secret and loaded into the container. | +| server.service.port | int | `80` | Console CPN server service port. | +| server.service.type | string | `"ClusterIP"` | Console CPN server service type. | | server.serviceAccount.annotations | object | `{}` | Annotations applied to created service account. | -| server.serviceAccount.create | bool | `true` | Create a service account for the Console CPN backend. | +| server.serviceAccount.create | bool | `true` | Create a service account for the Console CPN server. | | server.serviceAccount.name | string | `"cpn-console-server"` | Service account name. | | server.startupProbe.enabled | bool | `true` | Whether or not enable the probe. | | server.startupProbe.failureThreshold | int | `10` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | @@ -332,7 +264,7 @@ A Helm chart to deploy Cloud Pi Native Console | server.startupProbe.successThreshold | int | `1` | Minimum consecutive successes for the probe to be considered successful after having failed. | | server.startupProbe.timeoutSeconds | int | `5` | Number of seconds after which the probe times out. | | server.strategy.type | string | `"RollingUpdate"` | Strategy type used to replace old Pods by new ones, can be "Recreate" or "RollingUpdate". | -| server.tolerations | list | `[]` | Default tolerations for Console CPN backend. | +| server.tolerations | list | `[]` | Default tolerations for Console CPN server. | ---------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/dso-console/templates/_helpers.tpl b/charts/dso-console/templates/_helpers.tpl index 63dc17c..f8db6fa 100644 --- a/charts/dso-console/templates/_helpers.tpl +++ b/charts/dso-console/templates/_helpers.tpl @@ -25,13 +25,6 @@ Create the name of the service account to use {{- end }} {{- end }} -{{- define "cpnConsole.backend.serviceAccountName" -}} -{{- if .Values.backend.serviceAccount.create }} -{{- default (include "cpnConsole.name" .) .Values.backend.serviceAccount.name }} -{{- else }} -{{- default "cpn-backend" .Values.backend.serviceAccount.name }} -{{- end }} -{{- end }} {{/* Create image pull secret @@ -128,11 +121,6 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} -{{- define "cpnConsole.backend.labels" -}} -{{ include "cpnConsole.common.labels" . }} -{{ include "cpnConsole.backend.selectorLabels" . }} -{{- end }} - {{/* Selector labels */}} @@ -145,8 +133,3 @@ app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/name: {{ include "cpnConsole.name" . }}-server app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} - -{{- define "cpnConsole.backend.selectorLabels" -}} -app.kubernetes.io/name: {{ include "cpnConsole.name" . }}-backend -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} diff --git a/charts/dso-console/templates/backend/clusterrole.yaml b/charts/dso-console/templates/backend/clusterrole.yaml deleted file mode 100644 index bd07002..0000000 --- a/charts/dso-console/templates/backend/clusterrole.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: {{ include "cpnConsole.fullname" . }}-backend - labels: {{- include "cpnConsole.backend.labels" . | nindent 4 }} -rules: -- apiGroups: - - "" - - user.openshift.io - - rbac.authorization.k8s.io - - argoproj.io - {{- if .Values.features.vaultSecrets.enabled }} - - secrets.hashicorp.com - {{- end }} - resources: - - '*' - verbs: - - '*' diff --git a/charts/dso-console/templates/backend/clusterrolebinding.yaml b/charts/dso-console/templates/backend/clusterrolebinding.yaml deleted file mode 100644 index 92f1478..0000000 --- a/charts/dso-console/templates/backend/clusterrolebinding.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: {{ include "cpnConsole.fullname" . }}-backend - labels: {{- include "cpnConsole.backend.labels" . | nindent 4 }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ include "cpnConsole.fullname" . }}-backend -subjects: -- kind: ServiceAccount - name: {{ include "cpnConsole.backend.serviceAccountName" . }} - namespace: {{ $.Release.Namespace }} diff --git a/charts/dso-console/templates/backend/configmap.yaml b/charts/dso-console/templates/backend/configmap.yaml deleted file mode 100644 index 7c6557f..0000000 --- a/charts/dso-console/templates/backend/configmap.yaml +++ /dev/null @@ -1,27 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: {{ include "cpnConsole.fullname" . }}-backend - labels: {{- include "cpnConsole.backend.labels" . | nindent 4 }} -data: - SERVER_PORT: {{ .Values.backend.container.port | quote }} - KEYCLOAK_PROTOCOL: {{ .Values.global.keycloak.protocol.backend }} - KEYCLOAK_DOMAIN: {{ .Values.global.keycloak.domain.backend }} - KEYCLOAK_REALM: {{ .Values.global.keycloak.realm }} - KEYCLOAK_REDIRECT_URI: {{ .Values.global.keycloak.redirectUri }} - KEYCLOAK_CLIENT_ID: {{ .Values.global.keycloak.clientIds.backend }} - {{- if .Values.backend.extraCa.name }} - NODE_EXTRA_CA_CERTS: {{ printf "%s/%s" "/config" .Values.backend.extraCa.mountSubPath }} - {{- end }} - {{- if .Values.backend.disabledPlugins -}} - DISABLED_PLUGINS: {{ .Values.backend.disabledPlugins }} - {{- end }} - {{- if .Values.global.env -}} - {{- include "cpnConsole.env" .Values.global | indent 2 }} - {{- end -}} - {{- if .Values.backend.env -}} - {{- include "cpnConsole.env" .Values.backend | indent 2 }} - {{- end -}} - {{- if not .Values.features.vaultSecrets.enabled }} - VAULT__DISABLE_VAULT_SECRETS: "true" - {{- end }} diff --git a/charts/dso-console/templates/backend/deployment.yaml b/charts/dso-console/templates/backend/deployment.yaml deleted file mode 100644 index dd8a1fe..0000000 --- a/charts/dso-console/templates/backend/deployment.yaml +++ /dev/null @@ -1,211 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "cpnConsole.fullname" . }}-backend - labels: - {{- include "cpnConsole.backend.labels" . | nindent 4 }} -spec: - {{- if not .Values.backend.autoscaling.enabled }} - replicas: {{ .Values.backend.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "cpnConsole.backend.selectorLabels" . | nindent 6 }} - strategy: - type: {{ .Values.backend.strategy.type }} - template: - metadata: - annotations: - {{- include "checksum" (list $ "/backend/configmap.yaml") | nindent 8 }} - {{- include "checksum" (list $ "/backend/secret.yaml") | nindent 8 }} - {{- include "checksum" (list $ "/backend/scripts.yaml") | nindent 8 }} - {{- if .Values.config.create }} - {{- include "checksum" (list $ "/config.yaml") | nindent 8 }} - {{- end }} - {{- with .Values.backend.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "cpnConsole.backend.selectorLabels" . | nindent 8 }} - {{- with .Values.backend.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - spec: - {{- if and .Values.imageCredentials.username .Values.imageCredentials.password }} - imagePullSecrets: - - name: {{ include "cpnConsole.name" . }}-pullsecret - {{- end }} - serviceAccountName: {{ include "cpnConsole.backend.serviceAccountName" . }} - securityContext: - {{- toYaml .Values.backend.podSecurityContext | nindent 8 }} - {{- if or .Values.backend.plugins .Values.backend.initContainers }} - initContainers: - {{- if and .Values.backend.plugins (len .Values.backend.plugins) }} - - image: {{ .Values.backend.fetchContainer.image }} - name: fetch-plugins - imagePullPolicy: {{ .Values.backend.fetchContainer.pullPolicy }} - {{- if .Values.backend.proxy.enabled }} - env: - {{- toYaml .Values.backend.proxy.env | nindent 8 }} - {{- end }} - envFrom: - - configMapRef: - name: {{ include "cpnConsole.fullname" . }}-backend - - secretRef: - name: {{ include "cpnConsole.fullname" . }}-backend - {{- if .Values.backend.envFrom }} - {{- toYaml .Values.backend.envFrom | nindent 8 }} - {{- end }} - command: - - sh - - /script/fetch - volumeMounts: - - name: fetch-script - mountPath: /script - - name: plugins - mountPath: /plugins - {{- end }} - {{- if .Values.backend.initContainers }} - {{- tpl (toYaml .Values.backend.initContainers) . | nindent 8 }} - {{- end }} - {{- end }} - containers: - - name: backend - securityContext: - {{- toYaml .Values.backend.container.securityContext | nindent 12 }} - image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.backend.image.pullPolicy }} - {{- if .Values.backend.container.command }} - command: - {{- range .Values.backend.container.command }} - - {{ . | quote }} - {{- end }} - {{- end }} - {{- if .Values.backend.container.args }} - args: - {{- range .Values.backend.container.args }} - - {{ . | quote }} - {{- end }} - {{- end }} - ports: - - containerPort: {{ .Values.backend.service.port }} - protocol: TCP - envFrom: - - configMapRef: - name: {{ include "cpnConsole.fullname" . }}-backend - - secretRef: - name: {{ include "cpnConsole.fullname" . }}-backend - {{- if .Values.backend.envFrom }} - {{- toYaml .Values.backend.envFrom | nindent 8 }} - {{- end }} - {{- if .Values.backend.startupProbe.enabled }} - {{- if .Values.global.postgresql.cnpgSecretName }} - env: - - name: DB_URL - valueFrom: - secretKeyRef: - name: {{ .Values.global.postgresql.cnpgSecretName }} - key: uri - {{- end }} - startupProbe: - httpGet: - path: {{ .Values.backend.healthcheckPath }} - port: {{ .Values.backend.container.port }} - initialDelaySeconds: {{ .Values.backend.startupProbe.initialDelaySeconds }} - successThreshold: {{ .Values.backend.startupProbe.successThreshold }} - failureThreshold: {{ .Values.backend.startupProbe.failureThreshold }} - periodSeconds: {{ .Values.backend.startupProbe.periodSeconds }} - timeoutSeconds: {{ .Values.backend.startupProbe.timeoutSeconds }} - {{- end }} - {{- if .Values.backend.readinessProbe.enabled }} - readinessProbe: - httpGet: - path: {{ .Values.backend.healthcheckPath }} - port: {{ .Values.backend.container.port }} - initialDelaySeconds: {{ .Values.backend.readinessProbe.initialDelaySeconds }} - successThreshold: {{ .Values.backend.readinessProbe.successThreshold }} - failureThreshold: {{ .Values.backend.readinessProbe.failureThreshold }} - periodSeconds: {{ .Values.backend.readinessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.backend.readinessProbe.timeoutSeconds }} - {{- end }} - {{- if .Values.backend.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.backend.healthcheckPath }} - port: {{ .Values.backend.container.port }} - initialDelaySeconds: {{ .Values.backend.livenessProbe.initialDelaySeconds }} - successThreshold: {{ .Values.backend.livenessProbe.successThreshold }} - failureThreshold: {{ .Values.backend.livenessProbe.failureThreshold }} - periodSeconds: {{ .Values.backend.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.backend.livenessProbe.timeoutSeconds }} - {{- end }} - {{- if .Values.backend.hostAliases }} - hostAliases: - {{- toYaml .Values.backend.hostAliases | nindent 8 }} - {{- end }} - resources: - {{- toYaml .Values.backend.resources | nindent 10 }} - volumeMounts: - - name: config - mountPath: /config - {{- if .Values.backend.dbDataCm }} - - name: imports - mountPath: /app/dist/init/db/imports - {{- end }} - {{- if and .Values.backend.plugins (len .Values.backend.plugins) }} - - name: plugins - mountPath: /plugins - {{- end }} - {{- range $volumeMount := .Values.backend.extraVolumeMounts }} - - name: {{ $volumeMount.name }} - mountPath: {{ $volumeMount.mountPath }} - {{- end }} - {{- if .Values.backend.extraContainers }} - {{- tpl (toYaml .Values.backend.extraContainers) . | nindent 8 }} - {{- end }} - {{- with .Values.backend.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.backend.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.backend.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - volumes: - - name: config - {{- if .Values.backend.extraCa.name }} - projected: - sources: - - configMap: - name: {{ .Values.backend.extraCa.name }} - items: - - key: {{ .Values.backend.extraCa.key }} - path: {{ .Values.backend.extraCa.mountSubPath }} - {{- end }} - {{- if .Values.backend.dbDataCm }} - - name: imports - configMap: - name: {{ .Values.backend.dbDataCm }} - {{- end }} - {{- if and .Values.backend.plugins (len .Values.backend.plugins) }} - - name: plugins - emptyDir: {} - - name: fetch-script - configMap: - name: {{ include "cpnConsole.fullname" . }}-fetch-script - {{- end }} - {{- range $volume := .Values.backend.extraVolumes }} - - name: {{ $volume.name }} - {{- if eq $volume.type "hostPath" }} - hostPath: - path: {{ $volume.path }} - {{- end }} - {{- if eq $volume.type "configMap" }} - configMap: - name: {{ $volume.name }} - {{- end }} - {{- end }} diff --git a/charts/dso-console/templates/backend/hpa.yaml b/charts/dso-console/templates/backend/hpa.yaml deleted file mode 100644 index 3b79ebd..0000000 --- a/charts/dso-console/templates/backend/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if .Values.backend.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "cpnConsole.fullname" . }}-backend - labels: - {{- include "cpnConsole.backend.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "cpnConsole.fullname" . }}-backend - minReplicas: {{ .Values.backend.autoscaling.minReplicas }} - maxReplicas: {{ .Values.backend.autoscaling.maxReplicas }} - metrics: - {{- if .Values.backend.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.backend.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.backend.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.backend.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/charts/dso-console/templates/backend/scripts.yaml b/charts/dso-console/templates/backend/scripts.yaml deleted file mode 100644 index 69f4093..0000000 --- a/charts/dso-console/templates/backend/scripts.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{- if .Values.backend.plugins }} -kind: ConfigMap -apiVersion: v1 -metadata: - name: {{ include "cpnConsole.fullname" . }}-fetch-script - labels: {{- include "cpnConsole.backend.labels" . | nindent 4 }} -data: - fetch: | - #!/bin/bash - cd /tmp -{{- range $i, $val := .Values.backend.plugins }} - wget {{ $val }} -O {{ $i }}.zip; - mkdir -p /plugins/{{ $i }} - unzip -o {{ $i }}.zip -d /plugins/{{ $i }} -{{- end }} -{{- end }} diff --git a/charts/dso-console/templates/backend/secret.yaml b/charts/dso-console/templates/backend/secret.yaml deleted file mode 100644 index 9117507..0000000 --- a/charts/dso-console/templates/backend/secret.yaml +++ /dev/null @@ -1,17 +0,0 @@ -kind: Secret -apiVersion: v1 -metadata: - name: {{ include "cpnConsole.fullname" . }}-backend - labels: {{- include "cpnConsole.backend.labels" . | nindent 4 }} -data: - SESSION_SECRET: {{ .Values.global.keycloak.sessionSecret | b64enc }} - KEYCLOAK_CLIENT_SECRET: {{ .Values.global.keycloak.clientSecrets.backend | b64enc }} - {{- if not .Values.global.postgresql.cnpgSecretName }} - DB_URL: {{ include "cpnConsole.dbUrlValue" . | b64enc }} - {{- end -}} - {{- if .Values.global.secrets -}} - {{- include "cpnConsole.secret" .Values.global | indent 2 }} - {{- end -}} - {{- if .Values.backend.secrets -}} - {{- include "cpnConsole.secret" .Values.backend | indent 2 }} - {{- end -}} diff --git a/charts/dso-console/templates/backend/service.yaml b/charts/dso-console/templates/backend/service.yaml deleted file mode 100644 index a1f938f..0000000 --- a/charts/dso-console/templates/backend/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "cpnConsole.fullname" . }}-backend - labels: - {{- include "cpnConsole.backend.labels" . | nindent 4 }} -spec: - type: {{ .Values.backend.service.type }} - ports: - - port: {{ .Values.backend.service.port }} - targetPort: {{ .Values.backend.container.port }} - protocol: TCP - selector: - {{- include "cpnConsole.backend.selectorLabels" . | nindent 4 }} diff --git a/charts/dso-console/templates/backend/serviceaccount.yaml b/charts/dso-console/templates/backend/serviceaccount.yaml deleted file mode 100644 index 7a905bc..0000000 --- a/charts/dso-console/templates/backend/serviceaccount.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if .Values.backend.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "cpnConsole.backend.serviceAccountName" . }} - labels: - {{- include "cpnConsole.backend.labels" . | nindent 4 }} - {{- with .Values.backend.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/dso-console/values.yaml b/charts/dso-console/values.yaml index 36fe4b2..54563b3 100644 --- a/charts/dso-console/values.yaml +++ b/charts/dso-console/values.yaml @@ -18,12 +18,12 @@ imageCredentials: config: # -- Whether or not helm should create the console config. create: false - # -- Name of the generated config. + # -- Name of the genrated config. name: "dso-config" # -- Projects root directory to use in other services such as Gitlab, etc. projectsRootDir: "forge" # -- Secrets to inject into the configuration. - # It is needed for the backend to get services informations such as urls, admin username, admin password or token, etc. + # It is needed for server to get services informations such as urls, admin username, admin password or token, etc. secrets: {} # ARGO_NAMESPACE: "dso-argocd" # ARGOCD_URL: "https://argocd.domain.local" @@ -50,11 +50,11 @@ global: NODE_ENV: "production" # -- Map of environment variables to inject into backend and frontend containers. secrets: {} - ## Global informations about the Keycloak instance that will be shared to the backend and client. + ## Global informations about the Keycloak instance that will be shared to the server and client. keycloak: # Keycloak domain used for authentication. domain: - # -- Keycloak domain used for Console CPN backend. + # -- Keycloak domain used for Console CPN server. backend: "keycloak.namespace.svc.cluster.local" # -- Keycloak domain used for Console CPN client. frontend: "keycloak.domain.com" @@ -62,18 +62,18 @@ global: realm: "cloud-pi-native" # Protocol used to communicate with keycloak for authentication. protocol: - # -- Keycloak protocol used for Console CPN backend. + # -- Keycloak protocol used for Console CPN server. backend: "http" # -- Keycloak protocol used for Console CPN client. frontend: "https" ## Keycloak client ids. clientIds: - # -- Keycloak clientId used for Console CPN backend. + # -- Keycloak clientId used for Console CPN server. backend: "console-backend" # -- Keycloak clientId used for Console CPN client. frontend: "console-frontend" clientSecrets: - # -- Keycloak clientSecret used for Console CPN backend. + # -- Keycloak clientSecret used for Console CPN server. backend: "" # -- Keycloak redirect uri used with keycloak. redirectUri: "https://console.dso.local" @@ -278,23 +278,22 @@ client: # -- Default affinity for Console CPN client. affinity: {} -# Console CPN backend configuration. -# -- DEPRECATED. Will be progressively replaced by `server-nestjs` +# Console CPN server configuration. server: # -- The number of application controller pods to run. replicaCount: 1 - ## Console CPN backend image. + ## Console CPN server image. image: - # -- Repository to use for the Console CPN backend. + # -- Repository to use for the Console CPN server. repository: "ghcr.io/cloud-pi-native/console/server" - # -- Image pull policy for the Console CPN backend. + # -- Image pull policy for the Console CPN server. pullPolicy: "Always" - # -- Tag to use for the Console CPN backend. + # -- Tag to use for the Console CPN server. ## Overrides the image tag whose default is the chart appVersion. tag: "" - # -- Annotations for the Console CPN backend deployed pods. + # -- Annotations for the Console CPN server deployed pods. podAnnotations: {} - # -- Labels for the Console CPN backend deployed pods. + # -- Labels for the Console CPN server deployed pods. podLabels: {} # -- Toggle and define pod-level security context. podSecurityContext: {} @@ -312,11 +311,11 @@ server: # - mountPath: /custom-volume # name: custom-volume container: - # -- Console CPN backend container port. + # -- Console CPN server container port. port: 8080 - # -- Console CPN backend container command. + # -- Console CPN server container command. command: [] - # -- Console CPN backend container command args. + # -- Console CPN server container command args. args: [] # -- Toggle and define container-level security context. securityContext: {} @@ -326,34 +325,34 @@ server: # readOnlyRootFilesystem: true # runAsNonRoot: true # runAsUser: 1000 - # -- Extra containers to add to the Console CPN backend pod as sidecars. + # -- Extra containers to add to the Console CPN server pod as sidecars. extraContainers: [] # - name: fluentd # image: "fluentd" # volumeMounts: # - mountPath: /my-volume/config # name: config - # -- Console CPN backend container env variables loaded from configmap or secret reference. + # -- Console CPN server container env variables loaded from configmap or secret reference. envFrom: [] # - configMapRef: # name: my-config # - secretRef: # name: my-secret - # -- Console CPN backend container env variables, it will be injected into a configmap and loaded into the container. + # -- Console CPN server container env variables, it will be injected into a configmap and loaded into the container. env: {} ## csv list of plugins to disabled # DISABLED_PLUGINS: "" - # -- Console CPN backend container env secrets, it will be injected into a secret and loaded into the container. + # -- Console CPN server container env secrets, it will be injected into a secret and loaded into the container. secrets: {} - # -- Name of the configmap with javascript data that need to be imported by the backend at start up. + # -- Name of the configmap with javascript data that need to be imported by the server at start up. dbDataCm: "" - # -- Console CPN backend container healthcheck endpoint. + # -- Console CPN server container healthcheck endpoint. healthcheckPath: "/api/v1/healthz" - ## Deployment strategy for CPN backend deployment. + ## Deployment strategy for CPN server deployment. strategy: # -- Strategy type used to replace old Pods by new ones, can be "Recreate" or "RollingUpdate". type: "RollingUpdate" - ## Startup probe for Console CPN backend. + ## Startup probe for Console CPN server. startupProbe: # -- Whether or not enable the probe. enabled: true @@ -367,7 +366,7 @@ server: periodSeconds: 10 # -- Number of seconds after which the probe times out. timeoutSeconds: 5 - ## Readiness probe for Console CPN backend. + ## Readiness probe for Console CPN server. readinessProbe: # -- Whether or not enable the probe. enabled: true @@ -381,7 +380,7 @@ server: periodSeconds: 10 # -- Number of seconds after which the probe times out. timeoutSeconds: 5 - ## Liveness probe for Console CPN backend. + ## Liveness probe for Console CPN server. livenessProbe: # -- Whether or not enable the probe. enabled: true @@ -429,9 +428,9 @@ server: # - name: extra-vol-cm # mountPath: /volume/cm/path service: - # -- Console CPN backend service type. + # -- Console CPN server service type. type: "ClusterIP" - # -- Console CPN backend service port. + # -- Console CPN server service port. port: 80 fetchContainer: # -- Image used to fetch plugins inside the initContainer. @@ -455,250 +454,40 @@ server: value: ".cluster.local,.svc.cluster.local,.svc" resources: requests: - # -- Memory request for the Console CPN backend. + # -- Memory request for the Console CPN server. memory: "128Mi" - # -- CPU request for the Console CPN backend. + # -- CPU request for the Console CPN server. cpu: "250m" limits: - # -- Memory limit for the Console CPN backend. + # -- Memory limit for the Console CPN server. memory: "512Mi" - # -- CPU limit for the Console CPN backend. + # -- CPU limit for the Console CPN server. cpu: "500m" autoscaling: - # -- Enable Horizontal Pod Autoscaler ([HPA]) for the Console CPN backend. + # -- Enable Horizontal Pod Autoscaler ([HPA]) for the Console CPN server. enabled: false - # -- Minimum number of replicas for the Console CPN backend [HPA]. + # -- Minimum number of replicas for the Console CPN server [HPA]. minReplicas: 1 - # -- Maximum number of replicas for the Console CPN backend [HPA]. + # -- Maximum number of replicas for the Console CPN server [HPA]. maxReplicas: 3 - # -- Average CPU utilization percentage for the Console CPN backend [HPA]. + # -- Average CPU utilization percentage for the Console CPN server [HPA]. targetCPUUtilizationPercentage: 80 - # -- Average memory utilization percentage for the Console CPN backend [HPA]. + # -- Average memory utilization percentage for the Console CPN server [HPA]. targetMemoryUtilizationPercentage: 80 - # -- Default node selector for Console CPN backend. + # -- Default node selector for Console CPN server. nodeSelector: {} - # -- Default tolerations for Console CPN backend. + # -- Default tolerations for Console CPN server. tolerations: [] - # -- Default affinity for Console CPN backend. + # -- Default affinity for Console CPN server. affinity: {} serviceAccount: - # -- Create a service account for the Console CPN backend. + # -- Create a service account for the Console CPN server. create: true # -- Annotations applied to created service account. annotations: {} # -- Service account name. name: "cpn-console-server" -# Console CPN backend configuration, for the new backend written in NestJS -server-nestjs: - # -- The number of application controller pods to run. - replicaCount: 1 - ## Console CPN backend image. - image: - # -- Repository to use for the Console CPN server. - repository: "ghcr.io/cloud-pi-native/console/server-nestjs" - # -- Image pull policy for the Console CPN backend. - pullPolicy: "Always" - # -- Tag to use for the Console CPN backend. - ## Overrides the image tag whose default is the chart appVersion. - tag: "" - # -- Annotations for the Console CPN backend deployed pods. - podAnnotations: {} - # -- Labels for the Console CPN backend deployed pods. - podLabels: {} - # -- Toggle and define pod-level security context. - podSecurityContext: {} - # fsGroup: 2000 - # -- Init containers to add to the Console CPN client pod. - initContainers: [] - # - name: wait-for-keycloak - # image: docker.io/curlimages/curl:latest - # command: - # - "/bin/sh" - # - "-c" - # args: - # - "while [ $(curl -sw '%{http_code}' http://webserver.svc.cluster.local -o /dev/null) -ne 200 ]; do sleep 5; echo 'Waiting for the webserver...'; done" - # volumeMounts: - # - mountPath: /custom-volume - # name: custom-volume - container: - # -- Console CPN backend container port. - port: 8080 - # -- Console CPN backend container command. - command: [] - # -- Console CPN backend container command args. - args: [] - # -- Toggle and define container-level security context. - securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - # -- Extra containers to add to the Console CPN backend pod as sidecars. - extraContainers: [] - # - name: fluentd - # image: "fluentd" - # volumeMounts: - # - mountPath: /my-volume/config - # name: config - # -- Console CPN backend container env variables loaded from configmap or secret reference. - envFrom: [] - # - configMapRef: - # name: my-config - # - secretRef: - # name: my-secret - # -- Console CPN backend container env variables, it will be injected into a configmap and loaded into the container. - env: {} - ## csv list of plugins to disabled - # DISABLED_PLUGINS: "" - # -- Console CPN backend container env secrets, it will be injected into a secret and loaded into the container. - secrets: {} - # -- Name of the configmap with javascript data that need to be imported by the backend at start up. - dbDataCm: "" - # -- Console CPN backend container healthcheck endpoint. - healthcheckPath: "/api/v1/healthz" - ## Deployment strategy for CPN backend deployment. - strategy: - # -- Strategy type used to replace old Pods by new ones, can be "Recreate" or "RollingUpdate". - type: "RollingUpdate" - ## Startup probe for Console CPN backend. - startupProbe: - # -- Whether or not enable the probe. - enabled: true - # -- Number of seconds after the container has started before probe is initiated. - initialDelaySeconds: 0 - # -- Minimum consecutive successes for the probe to be considered successful after having failed. - successThreshold: 1 - # -- Minimum consecutive failures for the probe to be considered failed after having succeeded. - failureThreshold: 10 - # -- How often (in seconds) to perform the probe. - periodSeconds: 10 - # -- Number of seconds after which the probe times out. - timeoutSeconds: 5 - ## Readiness probe for Console CPN backend. - readinessProbe: - # -- Whether or not enable the probe. - enabled: true - # -- Number of seconds after the container has started before probe is initiated. - initialDelaySeconds: 15 - # -- Minimum consecutive successes for the probe to be considered successful after having failed. - successThreshold: 2 - # -- Minimum consecutive failures for the probe to be considered failed after having succeeded. - failureThreshold: 2 - # -- How often (in seconds) to perform the probe. - periodSeconds: 10 - # -- Number of seconds after which the probe times out. - timeoutSeconds: 5 - ## Liveness probe for Console CPN backend. - livenessProbe: - # -- Whether or not enable the probe. - enabled: true - # -- Whether or not enable the probe. - initialDelaySeconds: 30 - # -- Number of seconds after the container has started before probe is initiated. - successThreshold: 1 - # -- Minimum consecutive successes for the probe to be considered successful after having failed. - failureThreshold: 3 - # -- Minimum consecutive failures for the probe to be considered failed after having succeeded. - periodSeconds: 30 - # -- How often (in seconds) to perform the probe. - timeoutSeconds: 5 - # -- Host aliases that will be injected at pod-level into /etc/hosts. - hostAliases: [] - # - ip: "127.0.0.1" - # hostnames: - # - "foo.local" - # - "bar.local" - # - ip: "10.1.2.3" - # hostnames: - # - "foo.remote" - # - "bar.remote" - ## Extra certificate to add to the container, it should be provide as a configmap. - extraCa: - # -- The name of the configmap in namespace where certificates are stored. - name: "" - # -- The key to lookup. - key: "" - # -- The path inside the container where the certificate file should be mount. - # This is a native Nodejs environment variable to extends certificates, see: https://nodejs.org/api/cli.html#node_extra_ca_certsfile. - # This mount path represent the subpath to use under the `/config` config root path. - mountSubPath: "ca_certs" - # -- List of extra volumes to add. - extraVolumes: [] - # - name: extra-vol - # path: /host/path - # type: hostPath - # - name: extra-vol-cm - # type: configMap - # -- List of extra mounts to add (normally used with extraVolumes) - extraVolumeMounts: [] - # - name: extra-vol - # mountPath: /volume/path - # - name: extra-vol-cm - # mountPath: /volume/cm/path - service: - # -- Console CPN backend service type. - type: "ClusterIP" - # -- Console CPN backend service port. - port: 80 - fetchContainer: - # -- Image used to fetch plugins inside the initContainer. - image: docker.io/wbitt/network-multitool:alpine-minimal - # -- Image pull policy to fetch plugins inside the initContainer. - pullPolicy: "IfNotPresent" - # -- List of zips to download; basically curl url, unzip and stores it in plugins/external/. - plugins: [] - # -- CSV list of plugins to disabled. - disabledPlugins: "" - proxy: - # -- Enable Proxy configuration for the plugins initContainer. - enabled: false - # -- Map of environment variables to inject into the plugins initContainers. - env: - - name: http_proxy - value: "http://proxy.example.com:3128" - - name: https_proxy - value: "http://proxy.example.com:3128" - - name: no_proxy - value: ".cluster.local,.svc.cluster.local,.svc" - resources: - requests: - # -- Memory request for the Console CPN backend. - memory: "128Mi" - # -- CPU request for the Console CPN backend. - cpu: "250m" - limits: - # -- Memory limit for the Console CPN backend. - memory: "512Mi" - # -- CPU limit for the Console CPN backend. - cpu: "500m" - autoscaling: - # -- Enable Horizontal Pod Autoscaler ([HPA]) for the Console CPN backend. - enabled: false - # -- Minimum number of replicas for the Console CPN backend [HPA]. - minReplicas: 1 - # -- Maximum number of replicas for the Console CPN backend [HPA]. - maxReplicas: 3 - # -- Average CPU utilization percentage for the Console CPN backend [HPA]. - targetCPUUtilizationPercentage: 80 - # -- Average memory utilization percentage for the Console CPN backend [HPA]. - targetMemoryUtilizationPercentage: 80 - # -- Default node selector for Console CPN backend. - nodeSelector: {} - # -- Default tolerations for Console CPN backend. - tolerations: [] - # -- Default affinity for Console CPN backend. - affinity: {} - serviceAccount: - # -- Create a service account for the Console CPN backend. - create: true - # -- Annotations applied to created service account. - annotations: {} - # -- Service account name. - name: "cpn-console-server-nestjs" - # CNPG operator configuration cnpg-operator: # -- Whether or not cnpg operator should be deployed.