diff --git a/K8s-deployment/Charts/resource-server/Chart.yaml b/K8s-deployment/Charts/resource-server/Chart.yaml index 89aeda842..9c2ccded7 100644 --- a/K8s-deployment/Charts/resource-server/Chart.yaml +++ b/K8s-deployment/Charts/resource-server/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: resourceServer +name: resource-server description: A Helm chart for Resource Server # A chart can be either an 'application' or a 'library' chart. @@ -15,9 +15,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.32 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "5.0.0-alpha" +appVersion: "5.5.0-ef36360" diff --git a/K8s-deployment/Charts/resource-server/README.md b/K8s-deployment/Charts/resource-server/README.md index 786d3da0b..f8bcf96a6 100644 --- a/K8s-deployment/Charts/resource-server/README.md +++ b/K8s-deployment/Charts/resource-server/README.md @@ -4,8 +4,8 @@ Helm Chart for IUDX Resource Server Deployment -## Pre-requisites -Deploy [Delete-script](../../misc/rs-delete-subs-script) before resource-server +## Pre-requisites +Deploy [Delete-script](../../misc/rs-delete-subs-script) before resourceServer ## Create secret files @@ -27,8 +27,8 @@ secrets/ ## Define Appropriate values of resources Define Appropriate values of resources - -- CPU of all resource-server verticles -- RAM of all resource-server verticles +- CPU of all resourceServer verticles +- RAM of all resourceServer verticles - ingress.hostname - cert-manager issuer @@ -36,19 +36,19 @@ in `resource-values.yaml` as shown in sample resource-values file for [`aws`](./ ## Installing the Chart -To install the `resource-server`chart: +To install the `resourceServer`chart: ```console ./install.sh ``` -The command deploys resource-server on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation. +The command deploys resourceServer on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation. Following script will create : 1. create a namespace `rs` 2. create required configmaps 3. create corresponding K8s secrets from the secret files -4. deploy all resource-server verticles +4. deploy all resourceServer verticles ### To create ingress redirect to cos url: ```console @@ -57,10 +57,10 @@ kubectl apply -f ../../misc/redirect-rs-ingress.yaml -n rs ## Uninstalling the Chart -To uninstall/delete the `resource-server` deployment: +To uninstall/delete the `resourceServer` deployment: ```console - helm delete resource-server -n rs + helm delete resourceServer -n rs ``` The command removes all the Kubernetes components associated with the chart and deletes the release. @@ -98,7 +98,7 @@ The command removes all the Kubernetes components associated with the chart and | --------------------------- | ------------------------------------------------------------- | -------------------- | | `image.registry` | %%MAIN_CONTAINER%% image registry | `ghcr.io` | | `image.repository` | %%MAIN_CONTAINER%% image repository | `datakaveri/rs-depl` | -| `image.tag` | %%MAIN_CONTAINER%% image tag (immutable tags are recommended) | `3.0-476b9fd` | +| `image.tag` | %%MAIN_CONTAINER%% image tag (immutable tags are recommended) | `5.5.0-ef36360` | | `image.pullPolicy` | %%MAIN_CONTAINER%% image pull policy | `IfNotPresent` | | `image.pullSecrets` | %%MAIN_CONTAINER%% image pull secrets | `nil` | | `image.debug` | Enable %%MAIN_CONTAINER%% image debug mode | `false` | @@ -109,544 +109,93 @@ The command removes all the Kubernetes components associated with the chart and | `podAnnotations` | Annotations for pods | `nil` | -### ApiServer Parameters +### resourceServer Parameters | Name | Description | Value | | ------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `apiServer.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `apiServer.livenessProbe.enabled` | Enable livenessProbe on apiServer containers | `true` | -| `apiServer.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `apiServer.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `apiServer.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `apiServer.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `apiServer.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `apiServer.livenessProbe.path` | Path for httpGet | `/metrics` | -| `apiServer.readinessProbe.enabled` | Enable readinessProbe on apiServer containers | `false` | -| `apiServer.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `apiServer.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `apiServer.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `apiServer.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `apiServer.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `apiServer.startupProbe.enabled` | Enable startupProbe on apiServer containers | `false` | -| `apiServer.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `apiServer.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `apiServer.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `apiServer.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `apiServer.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `apiServer.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `apiServer.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `apiServer.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `apiServer.resources.limits` | The resources limits for the apiServer containers | `nil` | -| `apiServer.resources.requests` | The requested resources for the apiServer containers | `nil` | -| `apiServer.podSecurityContext.enabled` | Enabled apiServer pods' Security Context | `false` | -| `apiServer.podSecurityContext.fsGroup` | Set apiServer pod's Security Context fsGroup | `1001` | -| `apiServer.containerSecurityContext.enabled` | Enabled apiServer containers' Security Context | `false` | -| `apiServer.containerSecurityContext.runAsUser` | Set apiServer containers' Security Context runAsUser | `1001` | -| `apiServer.containerSecurityContext.runAsNonRoot` | Set apiServer containers' Security Context runAsNonRoot | `true` | -| `apiServer.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for apiServer | `nil` | -| `apiServer.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `apiServer.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-apiserver.json"]` | -| `apiServer.hostAliases` | apiServer pods host aliases | `[]` | -| `apiServer.podLabels` | Extra labels for apiServer pods | `{}` | -| `apiServer.podAffinityPreset` | Pod affinity preset. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `apiServer.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `apiServer.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `apiServer.nodeAffinityPreset.key` | Node label key to match. Ignored if `apiServer.affinity` is set | `""` | -| `apiServer.nodeAffinityPreset.values` | Node label values to match. Ignored if `apiServer.affinity` is set | `[]` | -| `apiServer.affinity` | Affinity for apiServer pods assignment | `{}` | -| `apiServer.nodeSelector` | Node labels for apiServer pods assignment | `nil` | -| `apiServer.tolerations` | Tolerations for apiServer pods assignment | `[]` | -| `apiServer.updateStrategy.type` | apiServer statefulset strategy type | `RollingUpdate` | -| `apiServer.priorityClassName` | apiServer pods' priorityClassName | `""` | -| `apiServer.schedulerName` | Name of the k8s scheduler (other than default) for apiServer pods | `""` | -| `apiServer.lifecycleHooks` | for the apiServer container(s) to automate configuration before or after startup | `{}` | -| `apiServer.extraEnvVars` | Array with extra environment variables to add to apiServer nodes | `[]` | -| `apiServer.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for apiServer nodes | `rs-env` | -| `apiServer.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for apiServer nodes | `nil` | -| `apiServer.extraVolumes` | Optionally specify extra list of additional volumes for the apiServer pod(s) | `nil` | -| `apiServer.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the apiServer container(s) | `nil` | -| `apiServer.sidecars` | Add additional sidecar containers to the apiServer pod(s) | `{}` | -| `apiServer.initContainers` | Add additional init containers to the apiServer pod(s) | `{}` | -| `apiServer.autoscaling.enabled` | Enable Horizontal POD autoscaling for apiServer | `true` | -| `apiServer.autoscaling.minReplicas` | Minimum number of databroker replicas | `1` | -| `apiServer.autoscaling.maxReplicas` | Maximum number of databroker replicas | `7` | -| `apiServer.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `apiServer.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | - - -### ArchivesDatabase Parameters - -| Name | Description | Value | -| -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `archivesDatabase.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `archivesDatabase.livenessProbe.enabled` | Enable livenessProbe on archivesDatabase containers | `true` | -| `archivesDatabase.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `archivesDatabase.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `archivesDatabase.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `archivesDatabase.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `archivesDatabase.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `archivesDatabase.livenessProbe.path` | Path for httpGet | `/metrics` | -| `archivesDatabase.readinessProbe.enabled` | Enable readinessProbe on archivesDatabase containers | `false` | -| `archivesDatabase.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `archivesDatabase.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `archivesDatabase.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `archivesDatabase.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `archivesDatabase.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `archivesDatabase.startupProbe.enabled` | Enable startupProbe on archivesDatabase containers | `false` | -| `archivesDatabase.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `archivesDatabase.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `archivesDatabase.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `archivesDatabase.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `archivesDatabase.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `archivesDatabase.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `archivesDatabase.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `archivesDatabase.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `archivesDatabase.resources.limits` | The resources limits for the archivesDatabase containers | `nil` | -| `archivesDatabase.resources.requests` | The requested resources for the archivesDatabase containers | `nil` | -| `archivesDatabase.podSecurityContext.enabled` | Enabled archivesDatabase pods' Security Context | `false` | -| `archivesDatabase.podSecurityContext.fsGroup` | Set archivesDatabase pod's Security Context fsGroup | `1001` | -| `archivesDatabase.containerSecurityContext.enabled` | Enabled archivesDatabase containers' Security Context | `false` | -| `archivesDatabase.containerSecurityContext.runAsUser` | Set archivesDatabase containers' Security Context runAsUser | `1001` | -| `archivesDatabase.containerSecurityContext.runAsNonRoot` | Set archivesDatabase containers' Security Context runAsNonRoot | `true` | -| `archivesDatabase.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for archivesDatabase | `nil` | -| `archivesDatabase.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `archivesDatabase.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-archives-database.json"]` | -| `archivesDatabase.hostAliases` | archivesDatabase pods host aliases | `[]` | -| `archivesDatabase.podLabels` | Extra labels for archivesDatabase pods | `{}` | -| `archivesDatabase.podAffinityPreset` | Pod affinity preset. Ignored if `archivesDatabase.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `archivesDatabase.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `archivesDatabase.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `archivesDatabase.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `archivesDatabase.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `archivesDatabase.nodeAffinityPreset.key` | Node label key to match. Ignored if `archivesDatabase.affinity` is set | `""` | -| `archivesDatabase.nodeAffinityPreset.values` | Node label values to match. Ignored if `archivesDatabase.affinity` is set | `[]` | -| `archivesDatabase.affinity` | Affinity for archivesDatabase pods assignment | `{}` | -| `archivesDatabase.nodeSelector` | Node labels for archivesDatabase pods assignment | `nil` | -| `archivesDatabase.tolerations` | Tolerations for archivesDatabase pods assignment | `[]` | -| `archivesDatabase.updateStrategy.type` | archivesDatabase statefulset strategy type | `RollingUpdate` | -| `archivesDatabase.priorityClassName` | archivesDatabase pods' priorityClassName | `""` | -| `archivesDatabase.schedulerName` | Name of the k8s scheduler (other than default) for archivesDatabase pods | `""` | -| `archivesDatabase.lifecycleHooks` | for the archivesDatabase container(s) to automate configuration before or after startup | `{}` | -| `archivesDatabase.extraEnvVars` | Array with extra environment variables to add to archivesDatabase nodes | `[]` | -| `archivesDatabase.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for archivesDatabase nodes | `rs-env` | -| `archivesDatabase.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for archivesDatabase nodes | `nil` | -| `archivesDatabase.extraVolumes` | Optionally specify extra list of additional volumes for the archivesDatabase pod(s) | `nil` | -| `archivesDatabase.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the archivesDatabase container(s) | `nil` | -| `archivesDatabase.sidecars` | Add additional sidecar containers to the archivesDatabase pod(s) | `{}` | -| `archivesDatabase.initContainers` | Add additional init containers to the archivesDatabase pod(s) | `{}` | -| `archivesDatabase.autoscaling.enabled` | Enable Horizontal POD autoscaling for archivesDatabase | `true` | -| `archivesDatabase.autoscaling.minReplicas` | Minimum number of archive Database replicas | `1` | -| `archivesDatabase.autoscaling.maxReplicas` | Maximum number of archive Database replicas | `5` | -| `archivesDatabase.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `archivesDatabase.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | - - -### Authenticator Parameters - -| Name | Description | Value | -| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authenticator.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `authenticator.livenessProbe.enabled` | Enable livenessProbe on authenticator containers | `true` | -| `authenticator.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `authenticator.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `authenticator.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `authenticator.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `authenticator.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `authenticator.livenessProbe.path` | Path for httpGet | `/metrics` | -| `authenticator.readinessProbe.enabled` | Enable readinessProbe on authenticator containers | `false` | -| `authenticator.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `authenticator.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `authenticator.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `authenticator.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `authenticator.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `authenticator.startupProbe.enabled` | Enable startupProbe on authenticator containers | `false` | -| `authenticator.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `authenticator.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `authenticator.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `authenticator.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `authenticator.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `authenticator.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `authenticator.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `authenticator.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `authenticator.resources.limits` | The resources limits for the authenticator containers | `nil` | -| `authenticator.resources.requests` | The requested resources for the authenticator containers | `nil` | -| `authenticator.podSecurityContext.enabled` | Enabled authenticator pods' Security Context | `false` | -| `authenticator.podSecurityContext.fsGroup` | Set authenticator pod's Security Context fsGroup | `1001` | -| `authenticator.containerSecurityContext.enabled` | Enabled authenticator containers' Security Context | `false` | -| `authenticator.containerSecurityContext.runAsUser` | Set authenticator containers' Security Context runAsUser | `1001` | -| `authenticator.containerSecurityContext.runAsNonRoot` | Set authenticator containers' Security Context runAsNonRoot | `true` | -| `authenticator.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for authenticator | `nil` | -| `authenticator.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `authenticator.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-authenticator.json"]` | -| `authenticator.hostAliases` | apiServer pods host aliases | `[]` | -| `authenticator.podLabels` | Extra labels for authenticator pods | `{}` | -| `authenticator.podAffinityPreset` | Pod affinity preset. Ignored if `authenticator.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `authenticator.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `authenticator.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `authenticator.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `authenticator.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `authenticator.nodeAffinityPreset.key` | Node label key to match. Ignored if `authenticator.affinity` is set | `""` | -| `authenticator.nodeAffinityPreset.values` | Node label values to match. Ignored if `authenticator.affinity` is set | `[]` | -| `authenticator.affinity` | Affinity for authenticator pods assignment | `{}` | -| `authenticator.nodeSelector` | Node labels for authenticator pods assignment | `nil` | -| `authenticator.tolerations` | Tolerations for authenticator pods assignment | `[]` | -| `authenticator.updateStrategy.type` | authenticator statefulset strategy type | `RollingUpdate` | -| `authenticator.priorityClassName` | authenticator pods' priorityClassName | `""` | -| `authenticator.schedulerName` | Name of the k8s scheduler (other than default) for authenticator pods | `""` | -| `authenticator.lifecycleHooks` | for the authenticator container(s) to automate configuration before or after startup | `{}` | -| `authenticator.extraEnvVars` | Array with extra environment variables to add to authenticator nodes | `[]` | -| `authenticator.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for authenticator nodes | `rs-env` | -| `authenticator.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for authenticator nodes | `nil` | -| `authenticator.extraVolumes` | Optionally specify extra list of additional volumes for the authenticator pod(s) | `nil` | -| `authenticator.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the authenticator container(s) | `nil` | -| `authenticator.sidecars` | Add additional sidecar containers to the authenticator pod(s) | `{}` | -| `authenticator.initContainers` | Add additional init containers to the authenticator pod(s) | `{}` | -| `authenticator.autoscaling.enabled` | Enable Horizontal POD autoscaling for authenticator | `true` | -| `authenticator.autoscaling.minReplicas` | Minimum number of authenticator replicas | `1` | -| `authenticator.autoscaling.maxReplicas` | Maximum number of authenticator replicas | `5` | -| `authenticator.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `authenticator.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | - - -### Databroker Parameters - -| Name | Description | Value | -| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `databroker.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `databroker.livenessProbe.enabled` | Enable livenessProbe on databroker containers | `true` | -| `databroker.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `databroker.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `databroker.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `databroker.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `databroker.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `databroker.livenessProbe.path` | Path for httpGet | `/metrics` | -| `databroker.readinessProbe.enabled` | Enable readinessProbe on databroker containers | `false` | -| `databroker.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `databroker.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `databroker.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `databroker.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `databroker.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `databroker.startupProbe.enabled` | Enable startupProbe on databroker containers | `false` | -| `databroker.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `databroker.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `databroker.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `databroker.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `databroker.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `databroker.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `databroker.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `databroker.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `databroker.resources.limits` | The resources limits for the databroker containers | `nil` | -| `databroker.resources.requests` | The requested resources for the databroker containers | `nil` | -| `databroker.podSecurityContext.enabled` | Enabled databroker pods' Security Context | `false` | -| `databroker.podSecurityContext.fsGroup` | Set databroker pod's Security Context fsGroup | `1001` | -| `databroker.containerSecurityContext.enabled` | Enabled databroker containers' Security Context | `false` | -| `databroker.containerSecurityContext.runAsUser` | Set databroker containers' Security Context runAsUser | `1001` | -| `databroker.containerSecurityContext.runAsNonRoot` | Set databroker containers' Security Context runAsNonRoot | `true` | -| `databroker.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for databroker | `nil` | -| `databroker.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `databroker.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-databroker.json"]` | -| `databroker.hostAliases` | apiServer pods host aliases | `[]` | -| `databroker.podLabels` | Extra labels for databroker pods | `{}` | -| `databroker.podAffinityPreset` | Pod affinity preset. Ignored if `databroker.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `databroker.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `databroker.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `databroker.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `databroker.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `databroker.nodeAffinityPreset.key` | Node label key to match. Ignored if `databroker.affinity` is set | `""` | -| `databroker.nodeAffinityPreset.values` | Node label values to match. Ignored if `databroker.affinity` is set | `[]` | -| `databroker.affinity` | Affinity for databroker pods assignment | `{}` | -| `databroker.nodeSelector` | Node labels for databroker pods assignment | `nil` | -| `databroker.tolerations` | Tolerations for databroker pods assignment | `[]` | -| `databroker.updateStrategy.type` | databroker statefulset strategy type | `RollingUpdate` | -| `databroker.priorityClassName` | databroker pods' priorityClassName | `""` | -| `databroker.schedulerName` | Name of the k8s scheduler (other than default) for databroker pods | `""` | -| `databroker.lifecycleHooks` | for the databroker container(s) to automate configuration before or after startup | `{}` | -| `databroker.extraEnvVars` | Array with extra environment variables to add to databroker nodes | `[]` | -| `databroker.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for databroker nodes | `rs-env` | -| `databroker.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for databroker nodes | `nil` | -| `databroker.extraVolumes` | Optionally specify extra list of additional volumes for the databroker pod(s) | `nil` | -| `databroker.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the databroker container(s) | `nil` | -| `databroker.sidecars` | Add additional sidecar containers to the databroker pod(s) | `{}` | -| `databroker.initContainers` | Add additional init containers to the databroker pod(s) | `{}` | -| `databroker.autoscaling.enabled` | Enable Horizontal POD autoscaling for databroker | `true` | -| `databroker.autoscaling.minReplicas` | Minimum number of databroker replicas | `1` | -| `databroker.autoscaling.maxReplicas` | Maximum number of databroker replicas | `5` | -| `databroker.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `databroker.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | - -### encryption Parameters - -| Name | Description | Value | -| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `encryption.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `encryption.livenessProbe.enabled` | Enable livenessProbe on encryption containers | `true` | -| `encryption.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `encryption.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `encryption.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `encryption.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `encryption.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `encryption.livenessProbe.path` | Path for httpGet | `/metrics` | -| `encryption.readinessProbe.enabled` | Enable readinessProbe on encryption containers | `false` | -| `encryption.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `encryption.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `encryption.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `encryption.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `encryption.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `encryption.startupProbe.enabled` | Enable startupProbe on encryption containers | `false` | -| `encryption.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `encryption.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `encryption.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `encryption.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `encryption.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `encryption.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `encryption.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `encryption.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `encryption.resources.limits` | The resources limits for the encryption containers | `nil` | -| `encryption.resources.requests` | The requested resources for the encryption containers | `nil` | -| `encryption.podSecurityContext.enabled` | Enabled encryption pods' Security Context | `false` | -| `encryption.podSecurityContext.fsGroup` | Set encryption pod's Security Context fsGroup | `1001` | -| `encryption.containerSecurityContext.enabled` | Enabled encryption containers' Security Context | `false` | -| `encryption.containerSecurityContext.runAsUser` | Set encryption containers' Security Context runAsUser | `1001` | -| `encryption.containerSecurityContext.runAsNonRoot` | Set encryption containers' Security Context runAsNonRoot | `true` | -| `encryption.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for encryption | `nil` | -| `encryption.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `encryption.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-encryption.json"]` | -| `encryption.hostAliases` | apiServer pods host aliases | `[]` | -| `encryption.podLabels` | Extra labels for encryption pods | `{}` | -| `encryption.podAffinityPreset` | Pod affinity preset. Ignored if `encryption.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `encryption.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `encryption.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `encryption.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `encryption.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `encryption.nodeAffinityPreset.key` | Node label key to match. Ignored if `encryption.affinity` is set | `""` | -| `encryption.nodeAffinityPreset.values` | Node label values to match. Ignored if `encryption.affinity` is set | `[]` | -| `encryption.affinity` | Affinity for encryption pods assignment | `{}` | -| `encryption.nodeSelector` | Node labels for encryption pods assignment | `nil` | -| `encryption.tolerations` | Tolerations for encryption pods assignment | `[]` | -| `encryption.updateStrategy.type` | encryption statefulset strategy type | `RollingUpdate` | -| `encryption.priorityClassName` | encryption pods' priorityClassName | `""` | -| `encryption.schedulerName` | Name of the k8s scheduler (other than default) for encryption pods | `""` | -| `encryption.lifecycleHooks` | for the encryption container(s) to automate configuration before or after startup | `{}` | -| `encryption.extraEnvVars` | Array with extra environment variables to add to encryption nodes | `[]` | -| `encryption.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for encryption nodes | `rs-env` | -| `encryption.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for encryption nodes | `nil` | -| `encryption.extraVolumes` | Optionally specify extra list of additional volumes for the encryption pod(s) | `nil` | -| `encryption.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the encryption container(s) | `nil` | -| `encryption.sidecars` | Add additional sidecar containers to the encryption pod(s) | `{}` | -| `encryption.initContainers` | Add additional init containers to the encryption pod(s) | `{}` | -| `encryption.autoscaling.enabled` | Enable Horizontal POD autoscaling for encryption | `true` | -| `encryption.autoscaling.minReplicas` | Minimum number of encryption replicas | `1` | -| `encryption.autoscaling.maxReplicas` | Maximum number of encryption replicas | `5` | -| `encryption.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `encryption.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | - -### aysnc Parameters - -| Name | Description | Value | -| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `aysnc.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `aysnc.livenessProbe.enabled` | Enable livenessProbe on aysnc containers | `true` | -| `aysnc.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `aysnc.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `aysnc.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `aysnc.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `aysnc.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `aysnc.livenessProbe.path` | Path for httpGet | `/metrics` | -| `aysnc.readinessProbe.enabled` | Enable readinessProbe on aysnc containers | `false` | -| `aysnc.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `aysnc.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `aysnc.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `aysnc.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `aysnc.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `aysnc.startupProbe.enabled` | Enable startupProbe on aysnc containers | `false` | -| `aysnc.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `aysnc.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `aysnc.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `aysnc.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `aysnc.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `aysnc.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `aysnc.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `aysnc.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `aysnc.resources.limits` | The resources limits for the aysnc containers | `nil` | -| `aysnc.resources.requests` | The requested resources for the aysnc containers | `nil` | -| `aysnc.podSecurityContext.enabled` | Enabled aysnc pods' Security Context | `false` | -| `aysnc.podSecurityContext.fsGroup` | Set aysnc pod's Security Context fsGroup | `1001` | -| `aysnc.containerSecurityContext.enabled` | Enabled aysnc containers' Security Context | `false` | -| `aysnc.containerSecurityContext.runAsUser` | Set aysnc containers' Security Context runAsUser | `1001` | -| `aysnc.containerSecurityContext.runAsNonRoot` | Set aysnc containers' Security Context runAsNonRoot | `true` | -| `aysnc.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for aysnc | `nil` | -| `aysnc.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `aysnc.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-async.json"]` | -| `aysnc.hostAliases` | apiServer pods host aliases | `[]` | -| `aysnc.podLabels` | Extra labels for aysnc pods | `{}` | -| `aysnc.podAffinityPreset` | Pod affinity preset. Ignored if `aysnc.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `aysnc.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `aysnc.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `aysnc.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `aysnc.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `aysnc.nodeAffinityPreset.key` | Node label key to match. Ignored if `aysnc.affinity` is set | `""` | -| `aysnc.nodeAffinityPreset.values` | Node label values to match. Ignored if `aysnc.affinity` is set | `[]` | -| `aysnc.affinity` | Affinity for aysnc pods assignment | `{}` | -| `aysnc.nodeSelector` | Node labels for aysnc pods assignment | `nil` | -| `aysnc.tolerations` | Tolerations for aysnc pods assignment | `[]` | -| `aysnc.updateStrategy.type` | aysnc statefulset strategy type | `RollingUpdate` | -| `aysnc.priorityClassName` | aysnc pods' priorityClassName | `""` | -| `aysnc.schedulerName` | Name of the k8s scheduler (other than default) for aysnc pods | `""` | -| `aysnc.lifecycleHooks` | for the aysnc container(s) to automate configuration before or after startup | `{}` | -| `aysnc.extraEnvVars` | Array with extra environment variables to add to aysnc nodes | `[]` | -| `aysnc.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for aysnc nodes | `rs-env` | -| `aysnc.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for aysnc nodes | `nil` | -| `aysnc.extraVolumes` | Optionally specify extra list of additional volumes for the aysnc pod(s) | `nil` | -| `aysnc.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the aysnc container(s) | `nil` | -| `aysnc.sidecars` | Add additional sidecar containers to the aysnc pod(s) | `{}` | -| `aysnc.initContainers` | Add additional init containers to the aysnc pod(s) | `{}` | -| `aysnc.autoscaling.enabled` | Enable Horizontal POD autoscaling for aysnc | `true` | -| `aysnc.autoscaling.minReplicas` | Minimum number of async replicas | `1` | -| `aysnc.autoscaling.maxReplicas` | Maximum number of async replicas | `5` | -| `aysnc.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `aysnc.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` - - -### LatestDatabase Parameters - -| Name | Description | Value | -| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `latestDatabase.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `latestDatabase.livenessProbe.enabled` | Enable livenessProbe on latestDatabase containers | `true` | -| `latestDatabase.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `latestDatabase.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `latestDatabase.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `latestDatabase.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `latestDatabase.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `latestDatabase.livenessProbe.path` | Path for httpGet | `/metrics` | -| `latestDatabase.readinessProbe.enabled` | Enable readinessProbe on latestDatabase containers | `false` | -| `latestDatabase.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `latestDatabase.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `latestDatabase.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `latestDatabase.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `latestDatabase.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `latestDatabase.startupProbe.enabled` | Enable startupProbe on latestDatabase containers | `false` | -| `latestDatabase.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `latestDatabase.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `latestDatabase.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `latestDatabase.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `latestDatabase.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `latestDatabase.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `latestDatabase.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `latestDatabase.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `latestDatabase.resources.limits` | The resources limits for the latestDatabase containers | `nil` | -| `latestDatabase.resources.requests` | The requested resources for the latestDatabase containers | `nil` | -| `latestDatabase.podSecurityContext.enabled` | Enabled latestDatabase pods' Security Context | `false` | -| `latestDatabase.podSecurityContext.fsGroup` | Set latestDatabase pod's Security Context fsGroup | `1001` | -| `latestDatabase.containerSecurityContext.enabled` | Enabled latestDatabase containers' Security Context | `false` | -| `latestDatabase.containerSecurityContext.runAsUser` | Set latestDatabase containers' Security Context runAsUser | `1001` | -| `latestDatabase.containerSecurityContext.runAsNonRoot` | Set latestDatabase containers' Security Context runAsNonRoot | `true` | -| `latestDatabase.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for latestDatabase | `nil` | -| `latestDatabase.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `latestDatabase.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-latest-database.json"]` | -| `latestDatabase.hostAliases` | apiServer pods host aliases | `[]` | -| `latestDatabase.podLabels` | Extra labels for latestDatabase pods | `{}` | -| `latestDatabase.podAffinityPreset` | Pod affinity preset. Ignored if `latestDatabase.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `latestDatabase.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `latestDatabase.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `latestDatabase.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `latestDatabase.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `latestDatabase.nodeAffinityPreset.key` | Node label key to match. Ignored if `latestDatabase.affinity` is set | `""` | -| `latestDatabase.nodeAffinityPreset.values` | Node label values to match. Ignored if `latestDatabase.affinity` is set | `[]` | -| `latestDatabase.affinity` | Affinity for latestDatabase pods assignment | `{}` | -| `latestDatabase.nodeSelector` | Node labels for latestDatabase pods assignment | `nil` | -| `latestDatabase.tolerations` | Tolerations for latestDatabase pods assignment | `[]` | -| `latestDatabase.updateStrategy.type` | latestDatabase statefulset strategy type | `RollingUpdate` | -| `latestDatabase.priorityClassName` | latestDatabase pods' priorityClassName | `""` | -| `latestDatabase.schedulerName` | Name of the k8s scheduler (other than default) for latestDatabase pods | `""` | -| `latestDatabase.lifecycleHooks` | for the latestDatabase container(s) to automate configuration before or after startup | `{}` | -| `latestDatabase.extraEnvVars` | Array with extra environment variables to add to latestDatabase nodes | `[]` | -| `latestDatabase.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for latestDatabase nodes | `rs-env` | -| `latestDatabase.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for latestDatabase nodes | `nil` | -| `latestDatabase.extraVolumes` | Optionally specify extra list of additional volumes for the latestDatabase pod(s) | `nil` | -| `latestDatabase.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the latestDatabase container(s) | `nil` | -| `latestDatabase.sidecars` | Add additional sidecar containers to the latestDatabase pod(s) | `{}` | -| `latestDatabase.initContainers` | Add additional init containers to the latestDatabase pod(s) | `{}` | -| `latestDatabase.autoscaling.enabled` | Enable Horizontal POD autoscaling for latestDatabase | `true` | -| `latestDatabase.autoscaling.minReplicas` | Minimum number of latest Database replicas | `1` | -| `latestDatabase.autoscaling.maxReplicas` | Maximum number of latest Database replicas | `5` | -| `latestDatabase.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `latestDatabase.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | - - -### Metering Parameters - -| Name | Description | Value | -| ------------------------------------------------ | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `metering.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `metering.livenessProbe.enabled` | Enable livenessProbe on metering containers | `true` | -| `metering.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `metering.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `metering.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `metering.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `metering.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `metering.livenessProbe.path` | Path for httpGet | `/metrics` | -| `metering.readinessProbe.enabled` | Enable readinessProbe on metering containers | `false` | -| `metering.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `metering.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `metering.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `metering.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `metering.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `metering.startupProbe.enabled` | Enable startupProbe on metering containers | `false` | -| `metering.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `metering.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `metering.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `metering.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `metering.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `metering.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `metering.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `metering.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `metering.resources.limits` | The resources limits for the metering containers | `nil` | -| `metering.resources.requests` | The requested resources for the metering containers | `nil` | -| `metering.podSecurityContext.enabled` | Enabled metering pods' Security Context | `false` | -| `metering.podSecurityContext.fsGroup` | Set metering pod's Security Context fsGroup | `1001` | -| `metering.containerSecurityContext.enabled` | Enabled metering containers' Security Context | `false` | -| `metering.containerSecurityContext.runAsUser` | Set metering containers' Security Context runAsUser | `1001` | -| `metering.containerSecurityContext.runAsNonRoot` | Set metering containers' Security Context runAsNonRoot | `true` | -| `metering.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for metering | `nil` | -| `metering.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `metering.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-metering.json"]` | -| `metering.hostAliases` | apiServer pods host aliases | `[]` | -| `metering.podLabels` | Extra labels for metering pods | `{}` | -| `metering.podAffinityPreset` | Pod affinity preset. Ignored if `metering.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `metering.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `metering.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `metering.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `metering.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `metering.nodeAffinityPreset.key` | Node label key to match. Ignored if `metering.affinity` is set | `""` | -| `metering.nodeAffinityPreset.values` | Node label values to match. Ignored if `metering.affinity` is set | `[]` | -| `metering.affinity` | Affinity for metering pods assignment | `{}` | -| `metering.nodeSelector` | Node labels for metering pods assignment | `nil` | -| `metering.tolerations` | Tolerations for metering pods assignment | `[]` | -| `metering.updateStrategy.type` | metering statefulset strategy type | `RollingUpdate` | -| `metering.priorityClassName` | metering pods' priorityClassName | `""` | -| `metering.schedulerName` | Name of the k8s scheduler (other than default) for metering pods | `""` | -| `metering.lifecycleHooks` | for the metering container(s) to automate configuration before or after startup | `{}` | -| `metering.extraEnvVars` | Array with extra environment variables to add to metering nodes | `[]` | -| `metering.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for metering nodes | `rs-env` | -| `metering.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for metering nodes | `nil` | -| `metering.extraVolumes` | Optionally specify extra list of additional volumes for the metering pod(s) | `nil` | -| `metering.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the metering container(s) | `nil` | -| `metering.sidecars` | Add additional sidecar containers to the metering pod(s) | `{}` | -| `metering.initContainers` | Add additional init containers to the metering pod(s) | `{}` | -| `metering.autoscaling.enabled` | Enable Horizontal POD autoscaling for metering | `true` | -| `metering.autoscaling.minReplicas` | Minimum number of metering replicas | `1` | -| `metering.autoscaling.maxReplicas` | Maximum number of metering replicas | `5` | -| `metering.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `metering.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | +| `resourceServer.replicaCount` | Number of resourceServer replicas to deploy | `1` | +| `resourceServer.livenessProbe.enabled` | Enable livenessProbe on resourceServer containers | `true` | +| `resourceServer.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | +| `resourceServer.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | +| `resourceServer.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | +| `resourceServer.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | +| `resourceServer.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | +| `resourceServer.livenessProbe.path` | Path for httpGet | `/metrics` | +| `resourceServer.readinessProbe.enabled` | Enable readinessProbe on resourceServer containers | `false` | +| `resourceServer.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | +| `resourceServer.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | +| `resourceServer.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | +| `resourceServer.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | +| `resourceServer.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | +| `resourceServer.startupProbe.enabled` | Enable startupProbe on resourceServer containers | `false` | +| `resourceServer.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | +| `resourceServer.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | +| `resourceServer.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | +| `resourceServer.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | +| `resourceServer.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | +| `resourceServer.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | +| `resourceServer.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | +| `resourceServer.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | +| `resourceServer.resources.limits` | The resources limits for the resourceServer containers | `nil` | +| `resourceServer.resources.requests` | The requested resources for the resourceServer containers | `nil` | +| `resourceServer.podSecurityContext.enabled` | Enabled resourceServer pods' Security Context | `false` | +| `resourceServer.podSecurityContext.fsGroup` | Set resourceServer pod's Security Context fsGroup | `1001` | +| `resourceServer.containerSecurityContext.enabled` | Enabled resourceServer containers' Security Context | `false` | +| `resourceServer.containerSecurityContext.runAsUser` | Set resourceServer containers' Security Context runAsUser | `1001` | +| `resourceServer.containerSecurityContext.runAsNonRoot` | Set resourceServer containers' Security Context runAsNonRoot | `true` | +| `resourceServer.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for resourceServer | `nil` | +| `resourceServer.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | +| `resourceServer.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-resourceServer.json"]` | +| `resourceServer.hostAliases` | resourceServer pods host aliases | `[]` | +| `resourceServer.podLabels` | Extra labels for resourceServer pods | `{}` | +| `resourceServer.podAffinityPreset` | Pod affinity preset. Ignored if `resourceServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `resourceServer.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `resourceServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `resourceServer.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `resourceServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `resourceServer.nodeAffinityPreset.key` | Node label key to match. Ignored if `resourceServer.affinity` is set | `""` | +| `resourceServer.nodeAffinityPreset.values` | Node label values to match. Ignored if `resourceServer.affinity` is set | `[]` | +| `resourceServer.affinity` | Affinity for resourceServer pods assignment | `{}` | +| `resourceServer.nodeSelector` | Node labels for resourceServer pods assignment | `nil` | +| `resourceServer.tolerations` | Tolerations for resourceServer pods assignment | `[]` | +| `resourceServer.updateStrategy.type` | resourceServer statefulset strategy type | `RollingUpdate` | +| `resourceServer.priorityClassName` | resourceServer pods' priorityClassName | `""` | +| `resourceServer.schedulerName` | Name of the k8s scheduler (other than default) for resourceServer pods | `""` | +| `resourceServer.lifecycleHooks` | for the resourceServer container(s) to automate configuration before or after startup | `{}` | +| `resourceServer.extraEnvVars` | Array with extra environment variables to add to resourceServer nodes | `[]` | +| `resourceServer.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for resourceServer nodes | `rs-env` | +| `resourceServer.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for resourceServer nodes | `nil` | +| `resourceServer.extraVolumes` | Optionally specify extra list of additional volumes for the resourceServer pod(s) | `nil` | +| `resourceServer.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the resourceServer container(s) | `nil` | +| `resourceServer.sidecars` | Add additional sidecar containers to the resourceServer pod(s) | `{}` | +| `resourceServer.initContainers` | Add additional init containers to the resourceServer pod(s) | `{}` | +| `resourceServer.autoscaling.enabled` | Enable Horizontal POD autoscaling for resourceServer | `true` | +| `resourceServer.autoscaling.minReplicas` | Minimum number of databroker replicas | `1` | +| `resourceServer.autoscaling.maxReplicas` | Maximum number of databroker replicas | `7` | +| `resourceServer.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | +| `resourceServer.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` | + + ### Traffic Exposure Parameters | Name | Description | Value | | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | -| `service.type` | ApiServers ervice type | `ClusterIP` | -| `service.ports` | ApiServer service port | `80` | -| `service.targetPorts` | ApiServer service TargetPorts port | `80` | -| `service.clusterIP` | ApiServer service Cluster IP | `nil` | -| `service.loadBalancerIP` | apiServer service Load Balancer IP | `nil` | -| `service.loadBalancerSourceRanges` | apiServer service Load Balancer sources | `[]` | -| `service.externalTrafficPolicy` | apiServer service external traffic policy | `Cluster` | -| `service.annotations` | Additional custom annotations for apiServer service | `{}` | -| `service.extraPorts` | Extra ports to expose in apiServer service (normally used with the `sidecars` value) | `[]` | -| `ingress.enabled` | Enable ingress record generation for apiServer | `true` | +| `service.type` | resourceServer service type | `ClusterIP` | +| `service.ports` | resourceServer service port | `80` | +| `service.targetPorts` | resourceServer service TargetPorts port | `80` | +| `service.clusterIP` | resourceServer service Cluster IP | `nil` | +| `service.loadBalancerIP` | resourceServer service Load Balancer IP | `nil` | +| `service.loadBalancerSourceRanges` | resourceServer service Load Balancer sources | `[]` | +| `service.externalTrafficPolicy` | resourceServer service external traffic policy | `Cluster` | +| `service.annotations` | Additional custom annotations for resourceServer service | `{}` | +| `service.extraPorts` | Extra ports to expose in resourceServer service (normally used with the `sidecars` value) | `[]` | +| `ingress.enabled` | Enable ingress record generation for resourceServer | `true` | | `ingress.pathType` | Ingress path type | `ImplementationSpecific` | | `ingress.apiVersion` | Force Ingress API version (automatically detected if not set) | `nil` | | `ingress.hostname` | Default host for the ingress record | `rs.iudx.org.in` | | `ingress.path` | Default path for the ingress record | `/` | | `ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | -| `ingress.serviceName` | Backend ingress Service Name | `rs-api-server` | +| `ingress.serviceName` | Backend ingress Service Name | `resource-server` | | `ingress.tls.secretName` | TLS secret name, if certmanager is used, no need to create that secret with tls certificates else create secret using the command ```kubectl create secret tls rs-tls-secret --key ./secrets/pki/privkey.pem --cert ./secrets/pki/fullchain.pem -n rs``` | `rs-tls-secret` | | `ingress.selfSigned` | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | `false` | | `ingress.extraHosts` | An array with additional hostname(s) to be covered with the ingress record | `[]` | @@ -682,14 +231,14 @@ The command removes all the Kubernetes components associated with the chart and Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, ```console - helm install resource-server resource-server \ + helm install resourceServer resourceServer \ --set=slack.channel="#bots",slack.token="XXXX-XXXX-XXXX" ``` Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, ```console - helm install resource-server -f values.yaml resource-server/ + helm install resourceServer -f values.yaml resourceServer/ ``` > **Tip**: You can use the default [values.yaml](values.yaml) diff --git a/K8s-deployment/Charts/resource-server/example-aws-resource-values.yaml b/K8s-deployment/Charts/resource-server/example-aws-resource-values.yaml index ca72a8b16..d4badfbd1 100644 --- a/K8s-deployment/Charts/resource-server/example-aws-resource-values.yaml +++ b/K8s-deployment/Charts/resource-server/example-aws-resource-values.yaml @@ -9,171 +9,17 @@ ingress: ## @param apiServer.resources.limits The resources limits for the apiServer containers ## @param apiServer.resources.requests The requested resources for the apiServer containers ## -apiServer: +resourceServer: enabled: true nodeSelector: node.kubernetes.io/instance-type: t3a.medium resources: limits: - cpu: 1000m - memory: 1200Mi - requests: - cpu: 700m - memory: 1200Mi - -## archivesDatabase resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param archivesDatabase.resources.limits The resources limits for the archivesDatabase containers -## @param archivesDatabase.resources.requests The requested resources for the archivesDatabase containers -## -archivesDatabase: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 1000m - memory: 1.5Gi - requests: - cpu: 700m - memory: 1.5Gi - -## authenticator resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param authenticator.resources.limits The resources limits for the authenticator containers -## @param authenticator.resources.requests The requested resources for the authenticator containers -## -authenticator: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 500m - memory: 500Mi - -## databroker resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param databroker.resources.limits The resources limits for the databroker containers -## @param databroker.resources.requests The requested resources for the databroker containers -## -databroker: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 500m - memory: 512Mi - requests: - cpu: 400m - memory: 400Mi - -## encryption resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param encryption.resources.limits The resources limits for the encryption containers -## @param encryption.resources.requests The requested resources for the encryption containers -## -encryption: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 600m - memory: 900Mi - requests: - cpu: 500m - memory: 700Mi - -## latestDatabase resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param latestDatabase.resources.limits The resources limits for the latestDatabase containers -## @param latestDatabase.resources.requests The requested resources for the latestDatabase containers -## -latestDatabase: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 800m - memory: 800Mi - -## metering resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param metering.resources.limits The resources limits for the metering containers -## @param metering.resources.requests The requested resources for the metering containers -## -metering: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 700m - memory: 1Gi - requests: - cpu: 500m - memory: 800Mi - -## postgres resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param postgres.resources.limits The resources limits for the postgres containers -## @param postgres.resources.requests The requested resources for the postgres containers -## -postgres: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 600m - memory: 600Mi - requests: - cpu: 400m - memory: 400Mi - -## cache resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param cache.resources.limits The resources limits for the cache containers -## @param cache.resources.requests The requested resources for the cache containers -## -cache: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 400m - memory: 750Mi + cpu: 2000m + memory: 3000Mi requests: cpu: 200m - memory: 600Mi - -## async resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param async.resources.limits The resources limits for the async containers -## @param async.resources.requests The requested resources for the async containers -## -async: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 800m - memory: 800Mi - + memory: 512Mi extraVolumes: - name: rs-config secret: @@ -196,4 +42,6 @@ async: storageClassName: efs-csi-storage-class resources: requests: - storage: 50Gi + storage: 5Gi + + diff --git a/K8s-deployment/Charts/resource-server/example-azure-resource-values.yaml b/K8s-deployment/Charts/resource-server/example-azure-resource-values.yaml index 59235adc1..5a0ecffef 100644 --- a/K8s-deployment/Charts/resource-server/example-azure-resource-values.yaml +++ b/K8s-deployment/Charts/resource-server/example-azure-resource-values.yaml @@ -9,171 +9,17 @@ ingress: ## @param apiServer.resources.limits The resources limits for the apiServer containers ## @param apiServer.resources.requests The requested resources for the apiServer containers ## -apiServer: +resourceServer: enabled: true nodeSelector: node.kubernetes.io/instance-type: Standard_B2s resources: limits: - cpu: 1000m - memory: 1.2Gi - requests: - cpu: 700m - memory: 1.2Gi - -## archivesDatabase resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param archivesDatabase.resources.limits The resources limits for the archivesDatabase containers -## @param archivesDatabase.resources.requests The requested resources for the archivesDatabase containers -## -archivesDatabase: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 1000m - memory: 1.5Gi - requests: - cpu: 700m - memory: 1.5Gi - -## authenticator resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param authenticator.resources.limits The resources limits for the authenticator containers -## @param authenticator.resources.requests The requested resources for the authenticator containers -## -authenticator: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 500m - memory: 500Mi - -## databroker resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param databroker.resources.limits The resources limits for the databroker containers -## @param databroker.resources.requests The requested resources for the databroker containers -## -databroker: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 500m - memory: 512Mi - requests: - cpu: 400m - memory: 400Mi - -## encryption resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param encryption.resources.limits The resources limits for the encryption containers -## @param encryption.resources.requests The requested resources for the encryption containers -## -encryption: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 500m - memory: 512Mi - requests: - cpu: 400m - memory: 400Mi - -## latestDatabase resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param latestDatabase.resources.limits The resources limits for the latestDatabase containers -## @param latestDatabase.resources.requests The requested resources for the latestDatabase containers -## -latestDatabase: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 800m - memory: 800Mi - -## metering resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param metering.resources.limits The resources limits for the metering containers -## @param metering.resources.requests The requested resources for the metering containers -## -metering: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 700m - memory: 1Gi - requests: - cpu: 500m - memory: 800Mi - -## postgres resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param postgres.resources.limits The resources limits for the postgres containers -## @param postgres.resources.requests The requested resources for the postgres containers -## -postgres: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 600m - memory: 600Mi - requests: - cpu: 400m - memory: 400Mi - -## cache resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param cache.resources.limits The resources limits for the cache containers -## @param cache.resources.requests The requested resources for the cache containers -## -cache: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 400m - memory: 750Mi + cpu: 2000m + memory: 3Gi requests: cpu: 200m - memory: 600Mi - -## async resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param async.resources.limits The resources limits for the async containers -## @param async.resources.requests The requested resources for the async containers -## -async: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 800m - memory: 800Mi - + memory: 512Mi extraVolumes: - name: rs-config secret: @@ -184,7 +30,7 @@ async: - name: rs-tmp emptyDir: medium: Memory - extraVolumeMounts: + extraVolumeMounts: - name: rs-config mountPath: /usr/share/app/secrets/configs - name: async-dir @@ -192,8 +38,9 @@ async: - name: rs-tmp mountPath: /tmp persistentVolumeClaim: - name: azurefile-pvc - storageClassName: azurefile-csi-storage-class + name: efs-pvc + storageClassName: efs-csi-storage-class resources: requests: - storage: 10Gi + storage: 5Gi + diff --git a/K8s-deployment/Charts/resource-server/templates/apiServer/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/apiServer/deployment.yaml deleted file mode 100644 index f5e9e562b..000000000 --- a/K8s-deployment/Charts/resource-server/templates/apiServer/deployment.yaml +++ /dev/null @@ -1,163 +0,0 @@ -{{- if .Values.apiServer.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-api-server - labels: - app.kubernetes.io/component: apiServer - app: rs-api-server - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.apiServer.replicaCount }} - {{- if .Values.apiServer.updateStrategy }} - strategy: {{- toYaml .Values.apiServer.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-api-server - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-api-server - app.kubernetes.io/component: apiServer - {{- if .Values.apiServer.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.apiServer.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.apiServer.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.apiServer.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.apiServer.priorityClassName }} - priorityClassName: {{ .Values.apiServer.priorityClassName | quote }} - {{- end }} - {{- if .Values.apiServer.schedulerName }} - schedulerName: {{ .Values.apiServer.schedulerName | quote }} - {{- end }} - {{- if .Values.apiServer.podSecurityContext.enabled }} - securityContext: {{- omit .Values.apiServer.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.apiServer.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-api-server - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.apiServer.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.apiServer.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.apiServer.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.apiServer.args }} - args: [{{- range $index, $str := .Values.apiServer.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.apiServer.resources }} - resources: {{- toYaml .Values.apiServer.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.apiServer.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.apiServer.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.apiServer.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: http - containerPort: {{ .Values.containerPorts.http }} - protocol: TCP - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.apiServer.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.apiServer.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.apiServer.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.apiServer.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.apiServer.livenessProbe.timeoutSeconds }} - - {{- else if .Values.apiServer.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.apiServer.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.apiServer.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.apiServer.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.apiServer.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.apiServer.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.apiServer.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.apiServer.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.apiServer.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.apiServer.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.apiServer.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.apiServer.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.apiServer.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.apiServer.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.apiServer.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.apiServer.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.apiServer.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.apiServer.podAffinityPreset "component" "apiServer" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.apiServer.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "apiServer" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.apiServer.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.apiServer.nodeAffinityPreset.type "key" .Values.apiServer.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.apiServer.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/apiServer/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/apiServer/hpa.yaml deleted file mode 100644 index fc561a61b..000000000 --- a/K8s-deployment/Charts/resource-server/templates/apiServer/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.apiServer.enabled .Values.apiServer.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-api-server - labels: - app: rs-api-server - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-api-server - minReplicas: {{ .Values.apiServer.autoscaling.minReplicas }} - maxReplicas: {{ .Values.apiServer.autoscaling.maxReplicas }} - metrics: - {{- if .Values.apiServer.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.apiServer.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.apiServer.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.apiServer.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/archivesDatabase/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/archivesDatabase/deployment.yaml deleted file mode 100644 index 6504fd57a..000000000 --- a/K8s-deployment/Charts/resource-server/templates/archivesDatabase/deployment.yaml +++ /dev/null @@ -1,160 +0,0 @@ -{{- if .Values.archivesDatabase.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-archives-database - labels: - app.kubernetes.io/component: archivesDatabase - app: rs-archives-database - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.archivesDatabase.replicaCount }} - {{- if .Values.archivesDatabase.updateStrategy }} - strategy: {{- toYaml .Values.archivesDatabase.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-archives-database - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-archives-database - app.kubernetes.io/component: archivesDatabase - {{- if .Values.archivesDatabase.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.archivesDatabase.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.archivesDatabase.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.archivesDatabase.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.archivesDatabase.priorityClassName }} - priorityClassName: {{ .Values.archivesDatabase.priorityClassName | quote }} - {{- end }} - {{- if .Values.archivesDatabase.schedulerName }} - schedulerName: {{ .Values.archivesDatabase.schedulerName | quote }} - {{- end }} - {{- if .Values.archivesDatabase.podSecurityContext.enabled }} - securityContext: {{- omit .Values.archivesDatabase.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.archivesDatabase.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-archives-database - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.archivesDatabase.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.archivesDatabase.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.archivesDatabase.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.archivesDatabase.args }} - args: [{{- range $index, $str := .Values.archivesDatabase.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.archivesDatabase.resources }} - resources: {{- toYaml .Values.archivesDatabase.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.archivesDatabase.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.archivesDatabase.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.archivesDatabase.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.archivesDatabase.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.archivesDatabase.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.archivesDatabase.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.archivesDatabase.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.archivesDatabase.livenessProbe.timeoutSeconds }} - - {{- else if .Values.archivesDatabase.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.archivesDatabase.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.archivesDatabase.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.archivesDatabase.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.archivesDatabase.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.archivesDatabase.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.archivesDatabase.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.archivesDatabase.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.archivesDatabase.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.archivesDatabase.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.archivesDatabase.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.archivesDatabase.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.archivesDatabase.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.archivesDatabase.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.archivesDatabase.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.archivesDatabase.podAffinityPreset "component" "archivesDatabase" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.archivesDatabase.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "archivesDatabase" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.archivesDatabase.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.archivesDatabase.nodeAffinityPreset.type "key" .Values.archivesDatabase.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.archivesDatabase.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.archivesDatabase.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/archivesDatabase/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/archivesDatabase/hpa.yaml deleted file mode 100644 index 286f0f860..000000000 --- a/K8s-deployment/Charts/resource-server/templates/archivesDatabase/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.archivesDatabase.enabled .Values.archivesDatabase.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-archives-database - labels: - app: rs-archives-database - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-archives-database - minReplicas: {{ .Values.archivesDatabase.autoscaling.minReplicas }} - maxReplicas: {{ .Values.archivesDatabase.autoscaling.maxReplicas }} - metrics: - {{- if .Values.archivesDatabase.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.archivesDatabase.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.archivesDatabase.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.archivesDatabase.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/async/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/async/hpa.yaml deleted file mode 100644 index 8f102299e..000000000 --- a/K8s-deployment/Charts/resource-server/templates/async/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.async.autoscaling.enabled .Values.async.enabled}} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-async - labels: - app: rs-async - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-async - minReplicas: {{ .Values.async.autoscaling.minReplicas }} - maxReplicas: {{ .Values.async.autoscaling.maxReplicas }} - metrics: - {{- if .Values.async.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.async.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.async.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.async.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/async/pvc.yaml b/K8s-deployment/Charts/resource-server/templates/async/pvc.yaml deleted file mode 100644 index c75b93644..000000000 --- a/K8s-deployment/Charts/resource-server/templates/async/pvc.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{- if .Values.async.enabled -}} -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: {{ .Values.async.persistentVolumeClaim.name }} -spec: - accessModes: - - ReadWriteMany - storageClassName: {{ .Values.async.persistentVolumeClaim.storageClassName }} - resources: - requests: - storage: {{ .Values.async.persistentVolumeClaim.resources.requests.storage }} -{{- end}} diff --git a/K8s-deployment/Charts/resource-server/templates/authenticator/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/authenticator/deployment.yaml deleted file mode 100644 index 4d7c3d689..000000000 --- a/K8s-deployment/Charts/resource-server/templates/authenticator/deployment.yaml +++ /dev/null @@ -1,160 +0,0 @@ -{{- if .Values.authenticator.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-authenticator - labels: - app.kubernetes.io/component: authenticator - app: rs-authenticator - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.authenticator.replicaCount }} - {{- if .Values.authenticator.updateStrategy }} - strategy: {{- toYaml .Values.authenticator.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-authenticator - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-authenticator - app.kubernetes.io/component: authenticator - {{- if .Values.authenticator.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.authenticator.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.authenticator.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.authenticator.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.authenticator.priorityClassName }} - priorityClassName: {{ .Values.authenticator.priorityClassName | quote }} - {{- end }} - {{- if .Values.authenticator.schedulerName }} - schedulerName: {{ .Values.authenticator.schedulerName | quote }} - {{- end }} - {{- if .Values.authenticator.podSecurityContext.enabled }} - securityContext: {{- omit .Values.authenticator.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.authenticator.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-authenticator - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.authenticator.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.authenticator.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.authenticator.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.authenticator.args }} - args: [{{- range $index, $str := .Values.authenticator.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.authenticator.resources }} - resources: {{- toYaml .Values.authenticator.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.authenticator.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.authenticator.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.authenticator.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.authenticator.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.authenticator.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.authenticator.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.authenticator.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.authenticator.livenessProbe.timeoutSeconds }} - - {{- else if .Values.authenticator.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.authenticator.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.authenticator.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.authenticator.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.authenticator.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.authenticator.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.authenticator.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.authenticator.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.authenticator.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.authenticator.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.authenticator.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.authenticator.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.authenticator.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.authenticator.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.authenticator.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.authenticator.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.authenticator.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.authenticator.podAffinityPreset "component" "authenticator" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.authenticator.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "authenticator" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.authenticator.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.authenticator.nodeAffinityPreset.type "key" .Values.authenticator.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.authenticator.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.authenticator.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/authenticator/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/authenticator/hpa.yaml deleted file mode 100644 index 31596a5d5..000000000 --- a/K8s-deployment/Charts/resource-server/templates/authenticator/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.authenticator.enabled .Values.authenticator.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-authenticator - labels: - app: rs-authenticator - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-authenticator - minReplicas: {{ .Values.authenticator.autoscaling.minReplicas }} - maxReplicas: {{ .Values.authenticator.autoscaling.maxReplicas }} - metrics: - {{- if .Values.authenticator.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.authenticator.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.authenticator.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.authenticator.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/cache/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/cache/deployment.yaml deleted file mode 100644 index ba34c6ade..000000000 --- a/K8s-deployment/Charts/resource-server/templates/cache/deployment.yaml +++ /dev/null @@ -1,174 +0,0 @@ -{{- if .Values.cache.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-cache - labels: - app.kubernetes.io/component: cache - app: rs-cache - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.cache.replicaCount }} - {{- if .Values.cache.updateStrategy }} - strategy: {{- toYaml .Values.cache.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-cache - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-cache - app.kubernetes.io/component: cache - {{- if .Values.cache.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.cache.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.cache.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.cache.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.cache.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.cache.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.cache.priorityClassName }} - priorityClassName: {{ .Values.cache.priorityClassName | quote }} - {{- end }} - {{- if .Values.cache.schedulerName }} - schedulerName: {{ .Values.cache.schedulerName | quote }} - {{- end }} - {{- if .Values.cache.podSecurityContext.enabled }} - securityContext: {{- omit .Values.cache.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.volumePermissions.enabled }} - - name: volume-permissions - image: {{ include "catalogue.volumePermissions.image" . }} - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} - command: {} - - securityContext: {{- include "common.tplvalues.render" (dict "value" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }} - {{- if .Values.volumePermissions.resources }} - resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }} - {{- end }} - volumeMounts: - - name: foo - mountPath: bar - {{- end }} - {{- if .Values.cache.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.cache.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-cache - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.cache.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.cache.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.cache.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.cache.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.cache.args }} - args: [{{- range $index, $str := .Values.cache.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.cache.resources }} - resources: {{- toYaml .Values.cache.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.cache.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.cache.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.cache.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.cache.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.cache.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.cache.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.cache.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.cache.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.cache.livenessProbe.timeoutSeconds }} - - {{- else if .Values.cache.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.cache.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.cache.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.cache.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.cache.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.cache.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.cache.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.cache.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.cache.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.cache.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.cache.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.cache.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.cache.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.cache.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.cache.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.cache.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.cache.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.cache.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.cache.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.cache.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.cache.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.cache.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.cache.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.cache.podAffinityPreset "component" "cache" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.cache.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "cache" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.cache.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.cache.nodeAffinityPreset.type "key" .Values.cache.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.cache.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.cache.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/cache/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/cache/hpa.yaml deleted file mode 100644 index 997a1c2aa..000000000 --- a/K8s-deployment/Charts/resource-server/templates/cache/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.cache.enabled .Values.cache.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-cache - labels: - app: rs-cache - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-cache - minReplicas: {{ .Values.cache.autoscaling.minReplicas }} - maxReplicas: {{ .Values.cache.autoscaling.maxReplicas }} - metrics: - {{- if .Values.cache.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.cache.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.cache.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.cache.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/databroker/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/databroker/deployment.yaml deleted file mode 100644 index 6c63fb086..000000000 --- a/K8s-deployment/Charts/resource-server/templates/databroker/deployment.yaml +++ /dev/null @@ -1,160 +0,0 @@ -{{- if .Values.databroker.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-databroker - labels: - app.kubernetes.io/component: databroker - app: rs-databroker - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.databroker.replicaCount }} - {{- if .Values.databroker.updateStrategy }} - strategy: {{- toYaml .Values.databroker.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-databroker - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-databroker - app.kubernetes.io/component: databroker - {{- if .Values.databroker.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.databroker.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.databroker.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.databroker.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.databroker.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.databroker.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.databroker.priorityClassName }} - priorityClassName: {{ .Values.databroker.priorityClassName | quote }} - {{- end }} - {{- if .Values.databroker.schedulerName }} - schedulerName: {{ .Values.databroker.schedulerName | quote }} - {{- end }} - {{- if .Values.databroker.podSecurityContext.enabled }} - securityContext: {{- omit .Values.databroker.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.databroker.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.databroker.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-databroker - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.databroker.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.databroker.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.databroker.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.databroker.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.databroker.args }} - args: [{{- range $index, $str := .Values.databroker.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.databroker.resources }} - resources: {{- toYaml .Values.databroker.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.databroker.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.databroker.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.databroker.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.databroker.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.databroker.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.databroker.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.databroker.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.databroker.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.databroker.livenessProbe.timeoutSeconds }} - - {{- else if .Values.databroker.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.databroker.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.databroker.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.databroker.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.databroker.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.databroker.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.databroker.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.databroker.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.databroker.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.databroker.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.databroker.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.databroker.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.databroker.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.databroker.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.databroker.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.databroker.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.databroker.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.databroker.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.databroker.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.databroker.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.databroker.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.databroker.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.databroker.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.databroker.podAffinityPreset "component" "databroker" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.databroker.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "databroker" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.databroker.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.databroker.nodeAffinityPreset.type "key" .Values.databroker.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.databroker.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.databroker.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/databroker/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/databroker/hpa.yaml deleted file mode 100644 index f7fab1a64..000000000 --- a/K8s-deployment/Charts/resource-server/templates/databroker/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.databroker.enabled .Values.databroker.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-databroker - labels: - app: rs-databroker - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-databroker - minReplicas: {{ .Values.databroker.autoscaling.minReplicas }} - maxReplicas: {{ .Values.databroker.autoscaling.maxReplicas }} - metrics: - {{- if .Values.databroker.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.databroker.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.databroker.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.databroker.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/async/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/deployment.yaml similarity index 50% rename from K8s-deployment/Charts/resource-server/templates/async/deployment.yaml rename to K8s-deployment/Charts/resource-server/templates/deployment.yaml index 405f7a83e..ae4813b55 100644 --- a/K8s-deployment/Charts/resource-server/templates/async/deployment.yaml +++ b/K8s-deployment/Charts/resource-server/templates/deployment.yaml @@ -1,11 +1,11 @@ -{{- if .Values.async.enabled -}} +{{- if .Values.resourceServer.enabled -}} apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} kind: Deployment metadata: - name: rs-async + name: resource-server labels: - app.kubernetes.io/component: async - app: rs-async + app.kubernetes.io/component: resource-server + app: resource-server {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} @@ -13,39 +13,39 @@ metadata: annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} spec: - replicas: {{ .Values.async.replicaCount }} - {{- if .Values.async.updateStrategy }} - strategy: {{- toYaml .Values.async.updateStrategy | nindent 4 }} + replicas: {{ .Values.resourceServer.replicaCount }} + {{- if .Values.resourceServer.updateStrategy }} + strategy: {{- toYaml .Values.resourceServer.updateStrategy | nindent 4 }} {{- end }} selector: matchLabels: - app: rs-async + app: resource-server template: metadata: {{- if .Values.podAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} {{- end }} labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-async - app.kubernetes.io/component: async - {{- if .Values.async.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.async.podLabels "context" $) | nindent 8 }} + app: resource-server + app.kubernetes.io/component: resource-server + {{- if .Values.resourceServer.podLabels }} + {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.podLabels "context" $) | nindent 8 }} {{- end }} spec: - {{- if .Values.async.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.async.nodeSelector "context" $) | nindent 8 }} + {{- if .Values.resourceServer.nodeSelector }} + nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.resourceServer.nodeSelector "context" $) | nindent 8 }} {{- end }} - {{- if .Values.async.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.async.tolerations "context" .) | nindent 8 }} + {{- if .Values.resourceServer.tolerations }} + tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.tolerations "context" .) | nindent 8 }} {{- end }} - {{- if .Values.async.priorityClassName }} - priorityClassName: {{ .Values.async.priorityClassName | quote }} + {{- if .Values.resourceServer.priorityClassName }} + priorityClassName: {{ .Values.resourceServer.priorityClassName | quote }} {{- end }} - {{- if .Values.async.schedulerName }} - schedulerName: {{ .Values.async.schedulerName | quote }} + {{- if .Values.resourceServer.schedulerName }} + schedulerName: {{ .Values.resourceServer.schedulerName | quote }} {{- end }} - {{- if .Values.async.podSecurityContext.enabled }} - securityContext: {{- omit .Values.async.podSecurityContext "enabled" | toYaml | nindent 8 }} + {{- if .Values.resourceServer.podSecurityContext.enabled }} + securityContext: {{- omit .Values.resourceServer.podSecurityContext "enabled" | toYaml | nindent 8 }} {{- end }} initContainers: {{- if .Values.volumePermissions.enabled }} @@ -62,37 +62,37 @@ spec: - name: foo mountPath: bar {{- end }} - {{- if .Values.async.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.async.initContainers "context" $) | nindent 8 }} + {{- if .Values.resourceServer.initContainers }} + {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.initContainers "context" $) | nindent 8 }} {{- end }} containers: - - name: rs-async + - name: resource-server image: {{ template "catalogue.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.async.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.async.containerSecurityContext "enabled" | toYaml | nindent 12 }} + {{- if .Values.resourceServer.containerSecurityContext.enabled }} + securityContext: {{- omit .Values.resourceServer.containerSecurityContext "enabled" | toYaml | nindent 12 }} {{- end }} {{- if .Values.diagnosticMode.enabled }} command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.async.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.async.command "context" $) | nindent 12 }} + {{- else if .Values.resourceServer.command }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.command "context" $) | nindent 12 }} {{- end }} {{- if .Values.diagnosticMode.enabled }} args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.async.args }} - args: [{{- range $index, $str := .Values.async.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] + {{- else if .Values.resourceServer.args }} + args: [{{- range $index, $str := .Values.resourceServer.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] {{- end }} - {{- if .Values.async.resources }} - resources: {{- toYaml .Values.async.resources | nindent 12 }} + {{- if .Values.resourceServer.resources }} + resources: {{- toYaml .Values.resourceServer.resources | nindent 12 }} {{- end }} volumeMounts: - {{- if .Values.async.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.async.extraVolumeMounts "context" $) | nindent 12 }} + {{- if .Values.resourceServer.extraVolumeMounts }} + {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraVolumeMounts "context" $) | nindent 12 }} {{- end }} - {{- if .Values.async.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.async.sidecars "context" $) | nindent 8 }} + {{- if .Values.resourceServer.sidecars }} + {{- include "common.tplvalues.render" ( dict "value" .Values.resourceServer.sidecars "context" $) | nindent 8 }} {{- end }} ports: - name: hazelcast @@ -102,31 +102,31 @@ spec: containerPort: {{ .Values.containerPorts.prometheus }} protocol: TCP {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.async.livenessProbe.enabled }} + {{- if .Values.resourceServer.livenessProbe.enabled }} livenessProbe: httpGet: - path: {{ .Values.async.livenessProbe.path }} + path: {{ .Values.resourceServer.livenessProbe.path }} port: 9000 - initialDelaySeconds: {{ .Values.async.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.async.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.async.livenessProbe.timeoutSeconds }} + initialDelaySeconds: {{ .Values.resourceServer.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.resourceServer.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.resourceServer.livenessProbe.timeoutSeconds }} - {{- else if .Values.async.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.async.customLivenessProbe "context" $) | nindent 12 }} + {{- else if .Values.resourceServer.customLivenessProbe }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.customLivenessProbe "context" $) | nindent 12 }} {{- end }} - {{- if .Values.async.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.async.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.async.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.async.customReadinessProbe "context" $) | nindent 12 }} + {{- if .Values.resourceServer.readinessProbe.enabled }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.resourceServer.readinessProbe "enabled") "context" $) | nindent 12 }} + {{- else if .Values.resourceServer.customReadinessProbe }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.customReadinessProbe "context" $) | nindent 12 }} {{- end }} - {{- if .Values.async.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.async.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.async.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.async.customStartupProbe "context" $) | nindent 12 }} + {{- if .Values.resourceServer.startupProbe.enabled }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.resourceServer.startupProbe "enabled") "context" $) | nindent 12 }} + {{- else if .Values.resourceServer.customStartupProbe }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.customStartupProbe "context" $) | nindent 12 }} {{- end }} {{- end }} - {{- if .Values.async.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.async.lifecycleHooks "context" $) | nindent 12 }} + {{- if .Values.resourceServer.lifecycleHooks }} + lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.lifecycleHooks "context" $) | nindent 12 }} {{- end }} env: - name: MY_POD_IP @@ -134,41 +134,41 @@ spec: fieldRef: fieldPath: status.podIP envFrom: - {{- if .Values.async.extraEnvVarsCM }} + {{- if .Values.resourceServer.extraEnvVarsCM }} - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.async.extraEnvVarsCM "context" $) }} + name: {{ include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraEnvVarsCM "context" $) }} {{- end }} - {{- if .Values.async.extraEnvVarsSecret }} + {{- if .Values.resourceServer.extraEnvVarsSecret }} - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.async.extraEnvVarsSecret "context" $) }} + name: {{ include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraEnvVarsSecret "context" $) }} {{- end }} - {{- if .Values.async.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.async.extraEnvVars "context" $) | nindent 12 }} + {{- if .Values.resourceServer.extraEnvVars }} + {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraEnvVars "context" $) | nindent 12 }} {{- end }} {{- if .Values.serviceAccount.create }} serviceAccountName: {{ template "catalogue.serviceAccountName" . }} {{- end }} {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - {{- if .Values.async.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.async.hostAliases "context" $) | nindent 8 }} + {{- if .Values.resourceServer.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.hostAliases "context" $) | nindent 8 }} {{- end }} - {{- if .Values.async.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.async.affinity "context" $) | nindent 8 }} + {{- if .Values.resourceServer.affinity }} + affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.resourceServer.affinity "context" $) | nindent 8 }} {{- else }} affinity: - {{- if .Values.async.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.async.podAffinityPreset "component" "async" "context" $) | nindent 10 }} + {{- if .Values.resourceServer.podAffinityPreset}} + podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.resourceServer.podAffinityPreset "component" "resourceServer" "context" $) | nindent 10 }} {{- end}} - {{- if .Values.async.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "async" "context" $) | nindent 10 }} + {{- if .Values.resourceServer.podAntiAffinityPreset }} + podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "resourceServer" "context" $) | nindent 10 }} {{- end}} - {{- if .Values.async.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.async.nodeAffinityPreset.type "key" .Values.async.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} + {{- if .Values.resourceServer.nodeAffinityPreset.type }} + nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.resourceServer.nodeAffinityPreset.type "key" .Values.resourceServer.nodeAffinityPreset.key "values" .Values.resourceServer.nodeAffinityPreset.values) | nindent 10 }} {{- end }} {{- end }} volumes: - {{- if .Values.async.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.async.extraVolumes "context" $) | nindent 8 }} + {{- if .Values.resourceServer.extraVolumes }} + {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraVolumes "context" $) | nindent 8 }} {{- end }} -{{- end}} +{{- end}} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/encryption/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/encryption/deployment.yaml deleted file mode 100644 index 2d3a53393..000000000 --- a/K8s-deployment/Charts/resource-server/templates/encryption/deployment.yaml +++ /dev/null @@ -1,160 +0,0 @@ -{{- if .Values.encryption.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-encryption - labels: - app.kubernetes.io/component: encryption - app: rs-encryption - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.encryption.replicaCount }} - {{- if .Values.encryption.updateStrategy }} - strategy: {{- toYaml .Values.encryption.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-encryption - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-encryption - app.kubernetes.io/component: encryption - {{- if .Values.encryption.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.encryption.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.encryption.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.encryption.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.encryption.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.encryption.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.encryption.priorityClassName }} - priorityClassName: {{ .Values.encryption.priorityClassName | quote }} - {{- end }} - {{- if .Values.encryption.schedulerName }} - schedulerName: {{ .Values.encryption.schedulerName | quote }} - {{- end }} - {{- if .Values.encryption.podSecurityContext.enabled }} - securityContext: {{- omit .Values.encryption.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.encryption.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.encryption.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-encryption - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.encryption.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.encryption.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.encryption.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.encryption.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.encryption.args }} - args: [{{- range $index, $str := .Values.encryption.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.encryption.resources }} - resources: {{- toYaml .Values.encryption.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.encryption.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.encryption.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.encryption.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.encryption.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.encryption.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.encryption.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.encryption.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.encryption.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.encryption.livenessProbe.timeoutSeconds }} - - {{- else if .Values.encryption.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.encryption.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.encryption.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.encryption.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.encryption.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.encryption.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.encryption.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.encryption.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.encryption.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.encryption.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.encryption.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.encryption.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.encryption.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.encryption.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.encryption.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.encryption.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.encryption.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.encryption.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.encryption.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.encryption.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.encryption.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.encryption.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.encryption.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.encryption.podAffinityPreset "component" "encryption" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.encryption.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "encryption" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.encryption.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.encryption.nodeAffinityPreset.type "key" .Values.encryption.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.encryption.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.encryption.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/encryption/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/encryption/hpa.yaml deleted file mode 100644 index fd3a1bda8..000000000 --- a/K8s-deployment/Charts/resource-server/templates/encryption/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.encryption.enabled .Values.encryption.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-encryption - labels: - app: rs-encryption - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-encryption - minReplicas: {{ .Values.encryption.autoscaling.minReplicas }} - maxReplicas: {{ .Values.encryption.autoscaling.maxReplicas }} - metrics: - {{- if .Values.encryption.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.encryption.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.encryption.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.encryption.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/latestDatabase/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/hpa.yaml similarity index 63% rename from K8s-deployment/Charts/resource-server/templates/latestDatabase/hpa.yaml rename to K8s-deployment/Charts/resource-server/templates/hpa.yaml index 8a4f3c3ab..f07e40f6c 100644 --- a/K8s-deployment/Charts/resource-server/templates/latestDatabase/hpa.yaml +++ b/K8s-deployment/Charts/resource-server/templates/hpa.yaml @@ -1,10 +1,10 @@ -{{- if and .Values.latestDatabase.enabled .Values.latestDatabase.autoscaling.enabled }} +{{- if and .Values.resourceServer.enabled .Values.resourceServer.autoscaling.enabled }} apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: - name: rs-latest-database + name: resource-server labels: - app: rs-latest-database + app: resource-server {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} @@ -17,24 +17,24 @@ spec: scaleTargetRef: apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} kind: Deployment - name: rs-latest-database - minReplicas: {{ .Values.latestDatabase.autoscaling.minReplicas }} - maxReplicas: {{ .Values.latestDatabase.autoscaling.maxReplicas }} + name: resource-server + minReplicas: {{ .Values.resourceServer.autoscaling.minReplicas }} + maxReplicas: {{ .Values.resourceServer.autoscaling.maxReplicas }} metrics: - {{- if .Values.latestDatabase.autoscaling.targetCPU }} + {{- if .Values.resourceServer.autoscaling.targetCPU }} - type: Resource resource: name: cpu target: type: Utilization - averageUtilization: {{ .Values.latestDatabase.autoscaling.targetCPU }} + averageUtilization: {{ .Values.resourceServer.autoscaling.targetCPU }} {{- end }} - {{- if .Values.latestDatabase.autoscaling.targetMemory }} + {{- if .Values.resourceServer.autoscaling.targetMemory }} - type: Resource resource: name: memory target: type: Utilization - averageUtilization: {{ .Values.latestDatabase.autoscaling.targetMemory }} + averageUtilization: {{ .Values.resourceServer.autoscaling.targetMemory }} {{- end }} {{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/ingress/ingress.yaml b/K8s-deployment/Charts/resource-server/templates/ingress.yaml similarity index 100% rename from K8s-deployment/Charts/resource-server/templates/ingress/ingress.yaml rename to K8s-deployment/Charts/resource-server/templates/ingress.yaml diff --git a/K8s-deployment/Charts/resource-server/templates/latestDatabase/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/latestDatabase/deployment.yaml deleted file mode 100644 index 19464cce8..000000000 --- a/K8s-deployment/Charts/resource-server/templates/latestDatabase/deployment.yaml +++ /dev/null @@ -1,160 +0,0 @@ -{{- if .Values.latestDatabase.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-latest-database - labels: - app.kubernetes.io/component: latestDatabase - app: rs-latest-database - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.latestDatabase.replicaCount }} - {{- if .Values.latestDatabase.updateStrategy }} - strategy: {{- toYaml .Values.latestDatabase.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-latest-database - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-latest-database - app.kubernetes.io/component: latestDatabase - {{- if .Values.latestDatabase.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.latestDatabase.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.latestDatabase.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.latestDatabase.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.latestDatabase.priorityClassName }} - priorityClassName: {{ .Values.latestDatabase.priorityClassName | quote }} - {{- end }} - {{- if .Values.latestDatabase.schedulerName }} - schedulerName: {{ .Values.latestDatabase.schedulerName | quote }} - {{- end }} - {{- if .Values.latestDatabase.podSecurityContext.enabled }} - securityContext: {{- omit .Values.latestDatabase.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.latestDatabase.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-latest-database - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.latestDatabase.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.latestDatabase.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.latestDatabase.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.latestDatabase.args }} - args: [{{- range $index, $str := .Values.latestDatabase.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.latestDatabase.resources }} - resources: {{- toYaml .Values.latestDatabase.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.latestDatabase.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.latestDatabase.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.latestDatabase.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.latestDatabase.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.latestDatabase.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.latestDatabase.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.latestDatabase.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.latestDatabase.livenessProbe.timeoutSeconds }} - - {{- else if .Values.latestDatabase.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.latestDatabase.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.latestDatabase.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.latestDatabase.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.latestDatabase.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.latestDatabase.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.latestDatabase.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.latestDatabase.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.latestDatabase.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.latestDatabase.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.latestDatabase.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.latestDatabase.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.latestDatabase.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.latestDatabase.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.latestDatabase.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.latestDatabase.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.latestDatabase.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.latestDatabase.podAffinityPreset "component" "latestDatabase" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.latestDatabase.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "latestDatabase" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.latestDatabase.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.latestDatabase.nodeAffinityPreset.type "key" .Values.latestDatabase.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.latestDatabase.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.latestDatabase.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/metering/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/metering/deployment.yaml deleted file mode 100644 index 77b7bf785..000000000 --- a/K8s-deployment/Charts/resource-server/templates/metering/deployment.yaml +++ /dev/null @@ -1,160 +0,0 @@ -{{- if .Values.metering.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-metering - labels: - app.kubernetes.io/component: metering - app: rs-metering - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.metering.replicaCount }} - {{- if .Values.metering.updateStrategy }} - strategy: {{- toYaml .Values.metering.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-metering - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-metering - app.kubernetes.io/component: metering - {{- if .Values.metering.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.metering.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.metering.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.metering.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.metering.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.metering.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.metering.priorityClassName }} - priorityClassName: {{ .Values.metering.priorityClassName | quote }} - {{- end }} - {{- if .Values.metering.schedulerName }} - schedulerName: {{ .Values.metering.schedulerName | quote }} - {{- end }} - {{- if .Values.metering.podSecurityContext.enabled }} - securityContext: {{- omit .Values.metering.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.metering.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.metering.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-metering - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.metering.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.metering.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.metering.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.metering.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.metering.args }} - args: [{{- range $index, $str := .Values.metering.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.metering.resources }} - resources: {{- toYaml .Values.metering.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.metering.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.metering.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.metering.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.metering.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.metering.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.metering.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.metering.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.metering.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.metering.livenessProbe.timeoutSeconds }} - - {{- else if .Values.metering.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metering.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.metering.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metering.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.metering.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metering.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.metering.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metering.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.metering.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metering.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.metering.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.metering.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.metering.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.metering.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.metering.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.metering.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.metering.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.metering.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.metering.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.metering.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.metering.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.metering.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.metering.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.metering.podAffinityPreset "component" "metering" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.metering.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "metering" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.metering.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.metering.nodeAffinityPreset.type "key" .Values.metering.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.metering.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.metering.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/metering/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/metering/hpa.yaml deleted file mode 100644 index 5e4d2c38e..000000000 --- a/K8s-deployment/Charts/resource-server/templates/metering/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.metering.enabled .Values.metering.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-metering - labels: - app: rs-metering - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-metering - minReplicas: {{ .Values.metering.autoscaling.minReplicas }} - maxReplicas: {{ .Values.metering.autoscaling.maxReplicas }} - metrics: - {{- if .Values.metering.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.metering.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.metering.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.metering.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/postgres/deployment.yaml b/K8s-deployment/Charts/resource-server/templates/postgres/deployment.yaml deleted file mode 100644 index 70cc72758..000000000 --- a/K8s-deployment/Charts/resource-server/templates/postgres/deployment.yaml +++ /dev/null @@ -1,174 +0,0 @@ -{{- if .Values.postgres.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: rs-postgres - labels: - app.kubernetes.io/component: postgres - app: rs-postgres - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.postgres.replicaCount }} - {{- if .Values.postgres.updateStrategy }} - strategy: {{- toYaml .Values.postgres.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: rs-postgres - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: rs-postgres - app.kubernetes.io/component: postgres - {{- if .Values.postgres.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.postgres.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.postgres.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.postgres.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.postgres.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.postgres.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.postgres.priorityClassName }} - priorityClassName: {{ .Values.postgres.priorityClassName | quote }} - {{- end }} - {{- if .Values.postgres.schedulerName }} - schedulerName: {{ .Values.postgres.schedulerName | quote }} - {{- end }} - {{- if .Values.postgres.podSecurityContext.enabled }} - securityContext: {{- omit .Values.postgres.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.volumePermissions.enabled }} - - name: volume-permissions - image: {{ include "catalogue.volumePermissions.image" . }} - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} - command: {} - - securityContext: {{- include "common.tplvalues.render" (dict "value" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }} - {{- if .Values.volumePermissions.resources }} - resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }} - {{- end }} - volumeMounts: - - name: foo - mountPath: bar - {{- end }} - {{- if .Values.postgres.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.postgres.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: rs-postgres - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.postgres.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.postgres.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.postgres.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.postgres.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.postgres.args }} - args: [{{- range $index, $str := .Values.postgres.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.postgres.resources }} - resources: {{- toYaml .Values.postgres.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.postgres.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.postgres.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.postgres.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.postgres.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.postgres.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.postgres.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.postgres.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.postgres.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.postgres.livenessProbe.timeoutSeconds }} - - {{- else if .Values.postgres.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.postgres.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.postgres.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.postgres.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.postgres.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.postgres.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.postgres.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.postgres.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.postgres.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.postgres.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.postgres.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.postgres.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.postgres.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.postgres.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.postgres.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.postgres.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.postgres.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.postgres.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.postgres.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.postgres.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.postgres.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.postgres.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.postgres.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.postgres.podAffinityPreset "component" "postgres" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.postgres.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "postgres" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.postgres.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.postgres.nodeAffinityPreset.type "key" .Values.postgres.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.postgres.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.postgres.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/postgres/hpa.yaml b/K8s-deployment/Charts/resource-server/templates/postgres/hpa.yaml deleted file mode 100644 index cfb1522b2..000000000 --- a/K8s-deployment/Charts/resource-server/templates/postgres/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.postgres.enabled .Values.postgres.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: rs-postgres - labels: - app: rs-postgres - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: rs-postgres - minReplicas: {{ .Values.postgres.autoscaling.minReplicas }} - maxReplicas: {{ .Values.postgres.autoscaling.maxReplicas }} - metrics: - {{- if .Values.postgres.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.postgres.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.postgres.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.postgres.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/resource-server/templates/pvc.yaml b/K8s-deployment/Charts/resource-server/templates/pvc.yaml new file mode 100644 index 000000000..c6d6cc2f1 --- /dev/null +++ b/K8s-deployment/Charts/resource-server/templates/pvc.yaml @@ -0,0 +1,13 @@ +{{- if .Values.resourceServer.enabled -}} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ .Values.resourceServer.persistentVolumeClaim.name }} +spec: + accessModes: + - ReadWriteMany + storageClassName: {{ .Values.resourceServer.persistentVolumeClaim.storageClassName }} + resources: + requests: + storage: {{ .Values.resourceServer.persistentVolumeClaim.resources.requests.storage }} +{{- end}} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/templates/apiServer/service.yaml b/K8s-deployment/Charts/resource-server/templates/service.yaml similarity index 94% rename from K8s-deployment/Charts/resource-server/templates/apiServer/service.yaml rename to K8s-deployment/Charts/resource-server/templates/service.yaml index d76f0b727..320fc6c77 100644 --- a/K8s-deployment/Charts/resource-server/templates/apiServer/service.yaml +++ b/K8s-deployment/Charts/resource-server/templates/service.yaml @@ -1,8 +1,8 @@ -{{- if .Values.apiServer.enabled -}} +{{- if .Values.resourceServer.enabled -}} apiVersion: v1 kind: Service metadata: - name: rs-api-server + name: resource-server labels: {{- include "common.labels.standard" . | nindent 4 }} app.kubernetes.io/component: service {{- if .Values.commonLabels }} @@ -33,5 +33,5 @@ spec: {{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }} {{- end }} selector: - app: rs-api-server + app: resource-server {{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/resource-server/values.yaml b/K8s-deployment/Charts/resource-server/values.yaml index 9976ae37c..b562a2709 100644 --- a/K8s-deployment/Charts/resource-server/values.yaml +++ b/K8s-deployment/Charts/resource-server/values.yaml @@ -72,7 +72,7 @@ diagnosticMode: image: registry: ghcr.io repository: datakaveri/rs-depl - tag: 5.0.0-6c98c5c + tag: 5.5.0-87f2c4a pullSecrets: ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' @@ -109,7 +109,7 @@ podAnnotations: prometheus.io/scrape: "true" ## @section apiServer Parameters -apiServer: +resourceServer: enabled: true ## @param apiServer.replicaCount Number of apiServer replicas to deploy ## @@ -207,7 +207,7 @@ apiServer: ## @param apiServer.args Override default container args (useful when using custom images) ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.apiserver.ApiServerVerticle"] + args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json"] ## @param apiServer.hostAliases apiServer pods host aliases ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ ## @@ -288,7 +288,7 @@ apiServer: extraEnvVarsCM: "rs-env" ## @param apiServer.extraEnvVarsSecret Name of existing Secret containing extra env vars for apiServer nodes ## - extraEnvVarsSecret: + extraEnvVarsSecret: "rs-s3-env" ## @param apiServer.extraVolumes Optionally specify extra list of additional volumes for the apiServer pod(s) ## extraVolumes: @@ -342,2097 +342,6 @@ apiServer: targetCPU: 80 #targetMemory: -## @section archivesDatabase parameters -archivesDatabase: - enabled: true -## @param archivesDatabase.replicaCount Number of apiServer replicas to deploy - replicaCount: 1 - - ## Configure extra options for archivesDatabase containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param archivesDatabase.livenessProbe.enabled Enable livenessProbe on archivesDatabase containers - ## @param archivesDatabase.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param archivesDatabase.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param archivesDatabase.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param archivesDatabase.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param archivesDatabase.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param archivesDatabase.livenessProbe.path Path for httpGet - - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param archivesDatabase.readinessProbe.enabled Enable readinessProbe on archivesDatabase containers - ## @param archivesDatabase.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param archivesDatabase.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param archivesDatabase.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param archivesDatabase.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param archivesDatabase.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param archivesDatabase.startupProbe.enabled Enable startupProbe on archivesDatabase containers - ## @param archivesDatabase.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param archivesDatabase.startupProbe.periodSeconds Period seconds for startupProbe - ## @param archivesDatabase.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param archivesDatabase.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param archivesDatabase.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param archivesDatabase.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param archivesDatabase.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param archivesDatabase.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param archivesDatabase.podSecurityContext.enabled Enabled archivesDatabase pods' Security Context - ## @param archivesDatabase.podSecurityContext.fsGroup Set archivesDatabase pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param archivesDatabase.containerSecurityContext.enabled Enabled archivesDatabase containers' Security Context - ## @param archivesDatabase.containerSecurityContext.runAsUser Set archivesDatabase containers' Security Context runAsUser - ## @param archivesDatabase.containerSecurityContext.runAsNonRoot Set archivesDatabase containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param archivesDatabase.existingConfigmap The name of an existing ConfigMap with your custom configuration for archivesDatabase - ## - existingConfigmap: - - ## @param archivesDatabase.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param archivesDatabase.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.database.archives.DatabaseVerticle"] - ## @param archivesDatabase.hostAliases archivesDatabase pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param archivesDatabase.podLabels Extra labels for archivesDatabase pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param archivesDatabase.podAnnotations Annotations for archivesDatabase pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param archivesDatabase.podAffinityPreset Pod affinity preset. Ignored if `archivesDatabase.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param archivesDatabase.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `archivesDatabase.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node archivesDatabase.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param archivesDatabase.nodeAffinityPreset.type Node affinity preset type. Ignored if `archivesDatabase.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param archivesDatabase.nodeAffinityPreset.key Node label key to match. Ignored if `archivesDatabase.affinity` is set - ## - key: "" - ## @param archivesDatabase.nodeAffinityPreset.values Node label values to match. Ignored if `archivesDatabase.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param archivesDatabase.affinity Affinity for archivesDatabase pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `archivesDatabase.podAffinityPreset`, `archivesDatabase.podAntiAffinityPreset`, and `archivesDatabase.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param archivesDatabase.nodeSelector Node labels for archivesDatabase pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param archivesDatabase.tolerations Tolerations for archivesDatabase pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param archivesDatabase.updateStrategy.type archivesDatabase statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param archivesDatabase.priorityClassName archivesDatabase pods' priorityClassName - ## - priorityClassName: "" - ## @param archivesDatabase.schedulerName Name of the k8s scheduler (other than default) for archivesDatabase pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param archivesDatabase.lifecycleHooks for the archivesDatabase container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param archivesDatabase.extraEnvVars Array with extra environment variables to add to archivesDatabase nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param archivesDatabase.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for archivesDatabase nodes - ## - extraEnvVarsCM: "rs-env" - ## @param archivesDatabase.extraEnvVarsSecret Name of existing Secret containing extra env vars for archivesDatabase nodes - ## - extraEnvVarsSecret: - ## @param archivesDatabase.extraVolumes Optionally specify extra list of additional volumes for the archivesDatabase pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: Memory - ## @param archivesDatabase.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the archivesDatabase container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - - ## @param archivesDatabase.sidecars Add additional sidecar containers to the archivesDatabase pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param archivesDatabase.initContainers Add additional init containers to the archivesDatabase pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} - ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param archivesDatabase.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param archivesDatabase.autoscaling.minReplicas Minimum number of Apache replicas - ## @param archivesDatabase.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param archivesDatabase.autoscaling.targetCPU Target CPU utilization percentage - ## @param archivesDatabase.autoscaling.targetMemory Target Memory utilization percentage - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## @section authenticator parameters -authenticator: - enabled: true -## @param authenticator.replicaCount Number of apiServer replicas to deploy - replicaCount: 1 - - ## Configure extra options for authenticator containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param authenticator.livenessProbe.enabled Enable livenessProbe on authenticator containers - ## @param authenticator.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param authenticator.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param authenticator.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param authenticator.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param authenticator.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param authenticator.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param authenticator.readinessProbe.enabled Enable readinessProbe on authenticator containers - ## @param authenticator.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param authenticator.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param authenticator.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param authenticator.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param authenticator.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param authenticator.startupProbe.enabled Enable startupProbe on authenticator containers - ## @param authenticator.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param authenticator.startupProbe.periodSeconds Period seconds for startupProbe - ## @param authenticator.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param authenticator.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param authenticator.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param authenticator.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param authenticator.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param authenticator.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param authenticator.podSecurityContext.enabled Enabled authenticator pods' Security Context - ## @param authenticator.podSecurityContext.fsGroup Set authenticator pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param authenticator.containerSecurityContext.enabled Enabled authenticator containers' Security Context - ## @param authenticator.containerSecurityContext.runAsUser Set authenticator containers' Security Context runAsUser - ## @param authenticator.containerSecurityContext.runAsNonRoot Set authenticator containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param authenticator.existingConfigmap The name of an existing ConfigMap with your custom configuration for authenticator - ## - existingConfigmap: - - ## @param authenticator.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param authenticator.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.authenticator.AuthenticationVerticle"] - ## @param authenticator.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param authenticator.podLabels Extra labels for authenticator pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param authenticator.podAnnotations Annotations for authenticator pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param authenticator.podAffinityPreset Pod affinity preset. Ignored if `authenticator.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param authenticator.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `authenticator.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node authenticator.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param authenticator.nodeAffinityPreset.type Node affinity preset type. Ignored if `authenticator.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param authenticator.nodeAffinityPreset.key Node label key to match. Ignored if `authenticator.affinity` is set - ## - key: "" - ## @param authenticator.nodeAffinityPreset.values Node label values to match. Ignored if `authenticator.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param authenticator.affinity Affinity for authenticator pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `authenticator.podAffinityPreset`, `authenticator.podAntiAffinityPreset`, and `authenticator.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param authenticator.nodeSelector Node labels for authenticator pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param authenticator.tolerations Tolerations for authenticator pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param authenticator.updateStrategy.type authenticator statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param authenticator.priorityClassName authenticator pods' priorityClassName - ## - priorityClassName: "" - ## @param authenticator.schedulerName Name of the k8s scheduler (other than default) for authenticator pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param authenticator.lifecycleHooks for the authenticator container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param authenticator.extraEnvVars Array with extra environment variables to add to authenticator nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param authenticator.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for authenticator nodes - ## - extraEnvVarsCM: "rs-env" - ## @param authenticator.extraEnvVarsSecret Name of existing Secret containing extra env vars for authenticator nodes - ## - extraEnvVarsSecret: - ## @param authenticator.extraVolumes Optionally specify extra list of additional volumes for the authenticator pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: Memory - ## @param authenticator.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the authenticator container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - ## @param authenticator.sidecars Add additional sidecar containers to the authenticator pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param authenticator.initContainers Add additional init containers to the authenticator pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} -## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param authenticator.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param authenticator.autoscaling.minReplicas Minimum number of Apache replicas - ## @param authenticator.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param authenticator.autoscaling.targetCPU Target CPU utilization percentage - ## @param authenticator.autoscaling.targetMemory Target Memory utilization percentage - - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## @section databroker parameters - -databroker: - enabled: true -## @param databroker.replicaCount Number of apiServer replicas to deploy - replicaCount: 1 - - ## Configure extra options for databroker containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param databroker.livenessProbe.enabled Enable livenessProbe on databroker containers - ## @param databroker.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param databroker.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param databroker.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param databroker.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param databroker.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param databroker.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param databroker.readinessProbe.enabled Enable readinessProbe on databroker containers - ## @param databroker.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param databroker.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param databroker.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param databroker.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param databroker.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param databroker.startupProbe.enabled Enable startupProbe on databroker containers - ## @param databroker.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param databroker.startupProbe.periodSeconds Period seconds for startupProbe - ## @param databroker.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param databroker.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param databroker.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param databroker.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param databroker.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param databroker.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param databroker.podSecurityContext.enabled Enabled databroker pods' Security Context - ## @param databroker.podSecurityContext.fsGroup Set databroker pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param databroker.containerSecurityContext.enabled Enabled databroker containers' Security Context - ## @param databroker.containerSecurityContext.runAsUser Set databroker containers' Security Context runAsUser - ## @param databroker.containerSecurityContext.runAsNonRoot Set databroker containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param databroker.existingConfigmap The name of an existing ConfigMap with your custom configuration for databroker - ## - existingConfigmap: - - ## @param databroker.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param databroker.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.databroker.DataBrokerVerticle"] - ## @param databroker.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param databroker.podLabels Extra labels for databroker pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param databroker.podAnnotations Annotations for databroker pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param databroker.podAffinityPreset Pod affinity preset. Ignored if `databroker.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param databroker.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `databroker.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node databroker.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param databroker.nodeAffinityPreset.type Node affinity preset type. Ignored if `databroker.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param databroker.nodeAffinityPreset.key Node label key to match. Ignored if `databroker.affinity` is set - ## - key: "" - ## @param databroker.nodeAffinityPreset.values Node label values to match. Ignored if `databroker.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param databroker.affinity Affinity for databroker pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `databroker.podAffinityPreset`, `databroker.podAntiAffinityPreset`, and `databroker.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param databroker.nodeSelector Node labels for databroker pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param databroker.tolerations Tolerations for databroker pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param databroker.updateStrategy.type databroker statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param databroker.priorityClassName databroker pods' priorityClassName - ## - priorityClassName: "" - ## @param databroker.schedulerName Name of the k8s scheduler (other than default) for databroker pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param databroker.lifecycleHooks for the databroker container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param databroker.extraEnvVars Array with extra environment variables to add to databroker nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param databroker.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for databroker nodes - ## - extraEnvVarsCM: "rs-env" - ## @param databroker.extraEnvVarsSecret Name of existing Secret containing extra env vars for databroker nodes - ## - extraEnvVarsSecret: - ## @param databroker.extraVolumes Optionally specify extra list of additional volumes for the databroker pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: Memory - ## @param databroker.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the databroker container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - - ## @param databroker.sidecars Add additional sidecar containers to the databroker pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param databroker.initContainers Add additional init containers to the databroker pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} - ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param databroker.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param databroker.autoscaling.minReplicas Minimum number of Apache replicas - ## @param databroker.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param databroker.autoscaling.targetCPU Target CPU utilization percentage - ## @param databroker.autoscaling.targetMemory Target Memory utilization percentage - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## @section encryption parameters - -encryption: - enabled: true -## @param encryption.replicaCount Number of apiServer replicas to deploy - replicaCount: 1 - - ## Configure extra options for encryption containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param encryption.livenessProbe.enabled Enable livenessProbe on encryption containers - ## @param encryption.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param encryption.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param encryption.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param encryption.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param encryption.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param encryption.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param encryption.readinessProbe.enabled Enable readinessProbe on encryption containers - ## @param encryption.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param encryption.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param encryption.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param encryption.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param encryption.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param encryption.startupProbe.enabled Enable startupProbe on encryption containers - ## @param encryption.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param encryption.startupProbe.periodSeconds Period seconds for startupProbe - ## @param encryption.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param encryption.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param encryption.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param encryption.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param encryption.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param encryption.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param encryption.podSecurityContext.enabled Enabled encryption pods' Security Context - ## @param encryption.podSecurityContext.fsGroup Set encryption pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param encryption.containerSecurityContext.enabled Enabled encryption containers' Security Context - ## @param encryption.containerSecurityContext.runAsUser Set encryption containers' Security Context runAsUser - ## @param encryption.containerSecurityContext.runAsNonRoot Set encryption containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param encryption.existingConfigmap The name of an existing ConfigMap with your custom configuration for encryption - ## - existingConfigmap: - - ## @param encryption.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param encryption.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.encryption.EncryptionVerticle"] - ## @param encryption.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param encryption.podLabels Extra labels for encryption pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param encryption.podAnnotations Annotations for encryption pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param encryption.podAffinityPreset Pod affinity preset. Ignored if `encryption.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param encryption.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `encryption.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node encryption.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param encryption.nodeAffinityPreset.type Node affinity preset type. Ignored if `encryption.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param encryption.nodeAffinityPreset.key Node label key to match. Ignored if `encryption.affinity` is set - ## - key: "" - ## @param encryption.nodeAffinityPreset.values Node label values to match. Ignored if `encryption.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param encryption.affinity Affinity for encryption pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `encryption.podAffinityPreset`, `encryption.podAntiAffinityPreset`, and `encryption.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param encryption.nodeSelector Node labels for encryption pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param encryption.tolerations Tolerations for encryption pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param encryption.updateStrategy.type encryption statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param encryption.priorityClassName encryption pods' priorityClassName - ## - priorityClassName: "" - ## @param encryption.schedulerName Name of the k8s scheduler (other than default) for encryption pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param encryption.lifecycleHooks for the encryption container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param encryption.extraEnvVars Array with extra environment variables to add to encryption nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param encryption.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for encryption nodes - ## - extraEnvVarsCM: "rs-env" - ## @param encryption.extraEnvVarsSecret Name of existing Secret containing extra env vars for encryption nodes - ## - extraEnvVarsSecret: - ## @param encryption.extraVolumes Optionally specify extra list of additional volumes for the encryption pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: "" - ## @param encryption.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the encryption container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - - ## @param encryption.sidecars Add additional sidecar containers to the encryption pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param encryption.initContainers Add additional init containers to the encryption pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} - ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param encryption.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param encryption.autoscaling.minReplicas Minimum number of Apache replicas - ## @param encryption.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param encryption.autoscaling.targetCPU Target CPU utilization percentage - ## @param encryption.autoscaling.targetMemory Target Memory utilization percentage - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## @section latestDatabase parameters -latestDatabase: - enabled: true -## @param latestDatabase.replicaCount Number of apiServer replicas to deploy - replicaCount: 1 - - ## Configure extra options for latestDatabase containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param latestDatabase.livenessProbe.enabled Enable livenessProbe on latestDatabase containers - ## @param latestDatabase.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param latestDatabase.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param latestDatabase.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param latestDatabase.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param latestDatabase.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param latestDatabase.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param latestDatabase.readinessProbe.enabled Enable readinessProbe on latestDatabase containers - ## @param latestDatabase.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param latestDatabase.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param latestDatabase.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param latestDatabase.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param latestDatabase.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param latestDatabase.startupProbe.enabled Enable startupProbe on latestDatabase containers - ## @param latestDatabase.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param latestDatabase.startupProbe.periodSeconds Period seconds for startupProbe - ## @param latestDatabase.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param latestDatabase.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param latestDatabase.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param latestDatabase.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param latestDatabase.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param latestDatabase.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param latestDatabase.podSecurityContext.enabled Enabled latestDatabase pods' Security Context - ## @param latestDatabase.podSecurityContext.fsGroup Set latestDatabase pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param latestDatabase.containerSecurityContext.enabled Enabled latestDatabase containers' Security Context - ## @param latestDatabase.containerSecurityContext.runAsUser Set latestDatabase containers' Security Context runAsUser - ## @param latestDatabase.containerSecurityContext.runAsNonRoot Set latestDatabase containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param latestDatabase.existingConfigmap The name of an existing ConfigMap with your custom configuration for latestDatabase - ## - existingConfigmap: - - ## @param latestDatabase.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param latestDatabase.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.database.latest.LatestVerticle"] - ## @param latestDatabase.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param latestDatabase.podLabels Extra labels for latestDatabase pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param latestDatabase.podAnnotations Annotations for latestDatabase pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param latestDatabase.podAffinityPreset Pod affinity preset. Ignored if `latestDatabase.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param latestDatabase.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `latestDatabase.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node latestDatabase.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param latestDatabase.nodeAffinityPreset.type Node affinity preset type. Ignored if `latestDatabase.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param latestDatabase.nodeAffinityPreset.key Node label key to match. Ignored if `latestDatabase.affinity` is set - ## - key: "" - ## @param latestDatabase.nodeAffinityPreset.values Node label values to match. Ignored if `latestDatabase.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param latestDatabase.affinity Affinity for latestDatabase pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `latestDatabase.podAffinityPreset`, `latestDatabase.podAntiAffinityPreset`, and `latestDatabase.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param latestDatabase.nodeSelector Node labels for latestDatabase pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param latestDatabase.tolerations Tolerations for latestDatabase pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param latestDatabase.updateStrategy.type latestDatabase statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param latestDatabase.priorityClassName latestDatabase pods' priorityClassName - ## - priorityClassName: "" - ## @param latestDatabase.schedulerName Name of the k8s scheduler (other than default) for latestDatabase pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param latestDatabase.lifecycleHooks for the latestDatabase container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param latestDatabase.extraEnvVars Array with extra environment variables to add to latestDatabase nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param latestDatabase.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for latestDatabase nodes - ## - extraEnvVarsCM: "rs-env" - ## @param latestDatabase.extraEnvVarsSecret Name of existing Secret containing extra env vars for latestDatabase nodes - ## - extraEnvVarsSecret: - ## @param latestDatabase.extraVolumes Optionally specify extra list of additional volumes for the latestDatabase pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: Memory - ## @param latestDatabase.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the latestDatabase container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - - ## @param latestDatabase.sidecars Add additional sidecar containers to the latestDatabase pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param latestDatabase.initContainers Add additional init containers to the latestDatabase pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} -## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param latestDatabase.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param latestDatabase.autoscaling.minReplicas Minimum number of Apache replicas - ## @param latestDatabase.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param latestDatabase.autoscaling.targetCPU Target CPU utilization percentage - ## @param latestDatabase.autoscaling.targetMemory Target Memory utilization percentage - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - - - -## @section metering parameters - -metering: - enabled: true -## @param metering.replicaCount Number of apiServer replicas to deploy - replicaCount: 1 - ## Configure extra options for metering containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param metering.livenessProbe.enabled Enable livenessProbe on metering containers - ## @param metering.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param metering.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param metering.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param metering.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param metering.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param metering.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param metering.readinessProbe.enabled Enable readinessProbe on metering containers - ## @param metering.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param metering.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param metering.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param metering.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param metering.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param metering.startupProbe.enabled Enable startupProbe on metering containers - ## @param metering.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param metering.startupProbe.periodSeconds Period seconds for startupProbe - ## @param metering.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param metering.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param metering.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param metering.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param metering.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param metering.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param metering.podSecurityContext.enabled Enabled metering pods' Security Context - ## @param metering.podSecurityContext.fsGroup Set metering pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param metering.containerSecurityContext.enabled Enabled metering containers' Security Context - ## @param metering.containerSecurityContext.runAsUser Set metering containers' Security Context runAsUser - ## @param metering.containerSecurityContext.runAsNonRoot Set metering containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param metering.existingConfigmap The name of an existing ConfigMap with your custom configuration for metering - ## - existingConfigmap: - - ## @param metering.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param metering.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.metering.MeteringVerticle"] - ## @param metering.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param metering.podLabels Extra labels for metering pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param metering.podAnnotations Annotations for metering pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param metering.podAffinityPreset Pod affinity preset. Ignored if `metering.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param metering.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `metering.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node metering.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param metering.nodeAffinityPreset.type Node affinity preset type. Ignored if `metering.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param metering.nodeAffinityPreset.key Node label key to match. Ignored if `metering.affinity` is set - ## - key: "" - ## @param metering.nodeAffinityPreset.values Node label values to match. Ignored if `metering.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param metering.affinity Affinity for metering pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `metering.podAffinityPreset`, `metering.podAntiAffinityPreset`, and `metering.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param metering.nodeSelector Node labels for metering pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param metering.tolerations Tolerations for metering pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param metering.updateStrategy.type metering statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param metering.priorityClassName metering pods' priorityClassName - ## - priorityClassName: "" - ## @param metering.schedulerName Name of the k8s scheduler (other than default) for metering pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param metering.lifecycleHooks for the metering container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param metering.extraEnvVars Array with extra environment variables to add to metering nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param metering.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for metering nodes - ## - extraEnvVarsCM: "rs-env" - ## @param metering.extraEnvVarsSecret Name of existing Secret containing extra env vars for metering nodes - ## - extraEnvVarsSecret: - ## @param metering.extraVolumes Optionally specify extra list of additional volumes for the metering pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: Memory - ## @param metering.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the metering container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - - ## @param metering.sidecars Add additional sidecar containers to the metering pod(s) - ## e.g: - ## sidecars: - # - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param metering.initContainers Add additional init containers to the metering pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} -## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param metering.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param metering.autoscaling.minReplicas Minimum number of Apache replicas - ## @param metering.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param metering.autoscaling.targetCPU Target CPU utilization percentage - ## @param metering.autoscaling.targetMemory Target Memory utilization percentage - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## @section postgres parameters -postgres: - enabled: true -## @param postgres.replicaCount Number of psqlVerticle replicas to deploy - replicaCount: 1 - - ## Configure extra options for postgres containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param postgres.livenessProbe.enabled Enable livenessProbe on postgres containers - ## @param postgres.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param postgres.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param postgres.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param postgres.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param postgres.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param postgres.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param postgres.readinessProbe.enabled Enable readinessProbe on postgres containers - ## @param postgres.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param postgres.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param postgres.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param postgres.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param postgres.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param postgres.startupProbe.enabled Enable startupProbe on postgres containers - ## @param postgres.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param postgres.startupProbe.periodSeconds Period seconds for startupProbe - ## @param postgres.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param postgres.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param postgres.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param postgres.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param postgres.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param postgres.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param postgres.podSecurityContext.enabled Enabled postgres pods' Security Context - ## @param postgres.podSecurityContext.fsGroup Set postgres pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param postgres.containerSecurityContext.enabled Enabled postgres containers' Security Context - ## @param postgres.containerSecurityContext.runAsUser Set postgres containers' Security Context runAsUser - ## @param postgres.containerSecurityContext.runAsNonRoot Set postgres containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param postgres.existingConfigmap The name of an existing ConfigMap with your custom configuration for postgres - ## - existingConfigmap: - - ## @param postgres.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param postgres.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.database.postgres.PostgresVerticle"] - ## @param postgres.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param postgres.podLabels Extra labels for postgres pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param postgres.podAnnotations Annotations for postgres pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param postgres.podAffinityPreset Pod affinity preset. Ignored if `postgres.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param postgres.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `postgres.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node postgres.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param postgres.nodeAffinityPreset.type Node affinity preset type. Ignored if `postgres.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param postgres.nodeAffinityPreset.key Node label key to match. Ignored if `postgres.affinity` is set - ## - key: "" - ## @param postgres.nodeAffinityPreset.values Node label values to match. Ignored if `postgres.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param postgres.affinity Affinity for postgres pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `postgres.podAffinityPreset`, `postgres.podAntiAffinityPreset`, and `postgres.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param postgres.nodeSelector Node labels for postgres pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param postgres.tolerations Tolerations for postgres pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param postgres.updateStrategy.type postgres statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param postgres.priorityClassName postgres pods' priorityClassName - ## - priorityClassName: "" - ## @param postgres.schedulerName Name of the k8s scheduler (other than default) for postgres pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param postgres.lifecycleHooks for the postgres container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param postgres.extraEnvVars Array with extra environment variables to add to postgres nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param postgres.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for postgres nodes - ## - extraEnvVarsCM: "rs-env" - ## @param postgres.extraEnvVarsSecret Name of existing Secret containing extra env vars for postgres nodes - ## - extraEnvVarsSecret: - ## @param postgres.extraVolumes Optionally specify extra list of additional volumes for the postgres pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: Memory - ## @param postgres.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the metering container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - - ## @param postgres.sidecars Add additional sidecar containers to the postgres pod(s) - ## e.g: - ## sidecars: - # - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param postgres.initContainers Add additional init containers to the postgres pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} -## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param postgres.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param postgres.autoscaling.minReplicas Minimum number of Apache replicas - ## @param postgres.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param postgres.autoscaling.targetCPU Target CPU utilization percentage - ## @param postgres.autoscaling.targetMemory Target Memory utilization percentage - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## @section cache parameters -cache: - enabled: true -## @param cache.replicaCount Number of psqlVerticle replicas to deploy - replicaCount: 1 - - ## Configure extra options for cache containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param cache.livenessProbe.enabled Enable livenessProbe on cache containers - ## @param cache.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param cache.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param cache.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param cache.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param cache.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param cache.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param cache.readinessProbe.enabled Enable readinessProbe on cache containers - ## @param cache.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param cache.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param cache.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param cache.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param cache.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param cache.startupProbe.enabled Enable startupProbe on cache containers - ## @param cache.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param cache.startupProbe.periodSeconds Period seconds for startupProbe - ## @param cache.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param cache.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param cache.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param cache.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param cache.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param cache.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param cache.podSecurityContext.enabled Enabled cache pods' Security Context - ## @param cache.podSecurityContext.fsGroup Set cache pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param cache.containerSecurityContext.enabled Enabled cache containers' Security Context - ## @param cache.containerSecurityContext.runAsUser Set cache containers' Security Context runAsUser - ## @param cache.containerSecurityContext.runAsNonRoot Set cache containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param cache.existingConfigmap The name of an existing ConfigMap with your custom configuration for cache - ## - existingConfigmap: - - ## @param cache.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param cache.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.cache.CacheVerticle"] - ## @param cache.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param cache.podLabels Extra labels for cache pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param cache.podAnnotations Annotations for cache pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param cache.podAffinityPreset Pod affinity preset. Ignored if `cache.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param cache.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `cache.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node cache.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param cache.nodeAffinityPreset.type Node affinity preset type. Ignored if `cache.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param cache.nodeAffinityPreset.key Node label key to match. Ignored if `cache.affinity` is set - ## - key: "" - ## @param cache.nodeAffinityPreset.values Node label values to match. Ignored if `cache.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param cache.affinity Affinity for cache pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `cache.podAffinityPreset`, `cache.podAntiAffinityPreset`, and `cache.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param cache.nodeSelector Node labels for cache pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param cache.tolerations Tolerations for cache pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param cache.updateStrategy.type cache statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param cache.priorityClassName cache pods' priorityClassName - ## - priorityClassName: "" - ## @param cache.schedulerName Name of the k8s scheduler (other than default) for cache pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param cache.lifecycleHooks for the cache container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param cache.extraEnvVars Array with extra environment variables to add to cache nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param cache.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for cache nodes - ## - extraEnvVarsCM: "rs-env" - ## @param cache.extraEnvVarsSecret Name of existing Secret containing extra env vars for cache nodes - ## - extraEnvVarsSecret: - ## @param cache.extraVolumes Optionally specify extra list of additional volumes for the cache pod(s) - ## - extraVolumes: - - name: rs-config - secret: - secretName: rs-config - - name: rs-tmp - emptyDir: - medium: Memory - ## @param cache.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the cache container(s) - ## - extraVolumeMounts: - - name: rs-config - mountPath: /usr/share/app/secrets/configs - - name: rs-tmp - mountPath: /tmp - - ## @param cache.sidecars Add additional sidecar containers to the cache pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param cache.initContainers Add additional init containers to the cache pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} -## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param cache.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param cache.autoscaling.minReplicas Minimum number of Apache replicas - ## @param cache.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param cache.autoscaling.targetCPU Target CPU utilization percentage - ## @param cache.autoscaling.targetMemory Target Memory utilization percentage - autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## @section async parameters -async: - enabled: true -## @param async.replicaCount Number of psqlVerticle replicas to deploy - replicaCount: 1 - - ## Configure extra options for async containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param async.livenessProbe.enabled Enable livenessProbe on async containers - ## @param async.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param async.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param async.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param async.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param async.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param async.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param async.readinessProbe.enabled Enable readinessProbe on async containers - ## @param async.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param async.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param async.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param async.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param async.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param async.startupProbe.enabled Enable startupProbe on async containers - ## @param async.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param async.startupProbe.periodSeconds Period seconds for startupProbe - ## @param async.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param async.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param async.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param async.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param async.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param async.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param async.podSecurityContext.enabled Enabled async pods' Security Context - ## @param async.podSecurityContext.fsGroup Set async pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param async.containerSecurityContext.enabled Enabled async containers' Security Context - ## @param async.containerSecurityContext.runAsUser Set async containers' Security Context runAsUser - ## @param async.containerSecurityContext.runAsNonRoot Set async containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param async.existingConfigmap The name of an existing ConfigMap with your custom configuration for async - ## - existingConfigmap: - - ## @param async.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param async.args Override default container args (useful when using custom images) - ## - args: ["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.resource.server.database.async.AsyncVerticle"] - ## @param async.hostAliases apiServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param async.podLabels Extra labels for async pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param async.podAnnotations Annotations for async pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param async.podAffinityPreset Pod affinity preset. Ignored if `async.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param async.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `async.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node async.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param async.nodeAffinityPreset.type Node affinity preset type. Ignored if `async.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param async.nodeAffinityPreset.key Node label key to match. Ignored if `async.affinity` is set - ## - key: "" - ## @param async.nodeAffinityPreset.values Node label values to match. Ignored if `async.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param async.affinity Affinity for async pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `async.podAffinityPreset`, `async.podAntiAffinityPreset`, and `async.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param async.nodeSelector Node labels for async pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param async.tolerations Tolerations for async pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param async.updateStrategy.type async statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param async.priorityClassName async pods' priorityClassName - ## - priorityClassName: "" - ## @param async.schedulerName Name of the k8s scheduler (other than default) for async pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param async.lifecycleHooks for the async container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param async.extraEnvVars Array with extra environment variables to add to async nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param async.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for async nodes - ## - extraEnvVarsCM: "rs-env" - ## @param async.extraEnvVarsSecret Name of existing Secret containing extra env vars for async nodes - ## - extraEnvVarsSecret: "rs-s3-env" - ## @param async.extraVolumes Optionally specify extra list of additional volumes for the async pod(s) - ## - extraVolumes: [] - - ## @param async.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the async container(s) - ## - extraVolumeMounts: [] - - ## @param async.persistentVolumeClaim Optionally specify extra list of additional pvc for the async container(s) - ## - persistentVolumeClaim: {} - - ## @param async.sidecars Add additional sidecar containers to the async pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - sidecars: {} - ## @param async.initContainers Add additional init containers to the async pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} -## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param async.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param async.autoscaling.minReplicas Minimum number of Apache replicas - ## @param async.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param async.autoscaling.targetCPU Target CPU utilization percentage - ## @param async.autoscaling.targetMemory Target Memory utilization percentage - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPU: 80 - #targetMemory: - -## %%SECONDARY_CONTAINER/POD_DESCRIPTION%% -## -#%%SECONDARY_OBJECT_BLOCK%%: -# %%SAME_STRUCTURE_AS_THE_MAIN_CONTAINER/POD%% - -## %%OTHERS_CONTAINER/POD_DESCRIPTION%% -## -#%%OTHER_OBJECT_BLOCK%%: -# %%SAME_STRUCTURE_AS_THE_MAIN_CONTAINER/POD%% - -## @section Traffic Exposure Parameters - -## apiServer service parameters -## service: ## @param service.type ApiServers ervice type ## @@ -2503,7 +412,7 @@ ingress: ## ## ## @param ingress.serviceName Backend ingress Service Name - serviceName: "rs-api-server" + serviceName: "resource-server" annotations: { kubernetes.io/tls-acme: "true", kubernetes.io/ingress.class: "nginx",