diff --git a/README-ENTERPRISE.md b/README-ENTERPRISE.md index cc30275..ff35d32 100644 --- a/README-ENTERPRISE.md +++ b/README-ENTERPRISE.md @@ -72,6 +72,14 @@ production-ready set of values except for the `secrets` portion. | `services.icc.secrets.control_plane_keys` | TODO | "" | Yes | | `services.icc.secrets.user_manager_session` | TODO | "" | Yes | +#### Elasticache + +| Name | Description | Default Value | Required | +| --- | --- | --- | --- | +| `services.icc.elasticache.role_arn` | The role ARN | "" | No | +| `services.icc.elasticache.region` | Region the cluster is in | "" | No | +| `services.icc.elasticache.cluster_name` | Name of the Elasticache cluster | "" | No | + #### Features | Name | Description | Default Value | Required | diff --git a/README.md b/README.md index 392d77d..2da0994 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,17 @@ production-ready set of values except for the `secrets` portion. | `services.icc.valkey.apps_url` | Valkey connection string | "" | Yes | | `services.icc.valkey.icc_url` | Valkey connection string | "" | Yes | | `services.icc.prometheus.url` | Prometheus API URL | "" | Yes | -| `services.icc.secrets.icc_session` | TODO | "" | Yes | -| `services.icc.secrets.control_plane_keys` | TODO | "" | Yes | -| `services.icc.secrets.user_manager_session` | TODO | "" | Yes | +| `services.icc.secrets.icc_session` | Random value to secure sessions | "" | Yes | +| `services.icc.secrets.control_plane_keys` | Random value to secure sessions | "" | Yes | +| `services.icc.secrets.user_manager_session` | Random value to secure sessions | "" | Yes | + +#### Elasticache + +| Name | Description | Default Value | Required | +| --- | --- | --- | --- | +| `services.icc.elasticache.role_arn` | The role ARN | "" | No | +| `services.icc.elasticache.region` | Region the cluster is in | "" | No | +| `services.icc.elasticache.cluster_name` | Name of the Elasticache cluster | "" | No | #### Features diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 0c7a2f6..8c1d430 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: helm -version: 4.0.0-alpha.7 -kubeVersion: ">= v1.31" +version: 4.0.0-alpha.8 +kubeVersion: ">= 1.31.0-0" description: Platformatic microservices type: application keywords: diff --git a/chart/templates/deployment/_icc.yaml b/chart/templates/deployment/_icc.yaml index adea53f..34ef57a 100644 --- a/chart/templates/deployment/_icc.yaml +++ b/chart/templates/deployment/_icc.yaml @@ -86,7 +86,7 @@ spec: - name: PLT_MACHINIST_URL value: http://machinist.platformatic - name: PLT_FEATURE_CACHE - value: "{{ features.cache.enable | default false }}" + value: "{{ .features.cache.enable | default false }}" - name: PLT_FEATURE_CACHE_RECOMMENDATIONS value: "{{ .features.cache_recommendations.enable | default false }}" - name: PLT_FEATURE_RISK_SERVICE_DUMP @@ -211,6 +211,17 @@ spec: key: "{{ . }}" {{- end }} + {{- with .elasticache }} + - name: PLT_APPLICATIONS_CACHE_PROVIDER + value: elasticache + - name: PLT_CACHE_MANAGER_CONFIGURE_KEYSPACE_EVENT_NOTIFY + value: "false" + - name: PLT_APPLICATIONS_ELASTICACHE_REGION + value: {{ .region }} + - name: PLT_APPLICATIONS_ELASTICACHE_CLUSTERID_PREFIX + value: {{ .cluster_name }} + {{- end}} + {{- if .command }} command: {{- toYaml .command | nindent 12 }} diff --git a/chart/templates/serviceaccount.yaml b/chart/templates/serviceaccount.yaml index 014ebc8..9f589e2 100644 --- a/chart/templates/serviceaccount.yaml +++ b/chart/templates/serviceaccount.yaml @@ -7,8 +7,8 @@ metadata: namespace: {{ include "install.namespace" $ }} {{- if eq .Values.cloud "aws"}} annotations: - {{- with .Values.services.icc.elasticacheRoleArn}} - eks.amazonaws.com/role-arn: {{ . }} + {{- with .Values.services.icc.elasticache}} + eks.amazonaws.com/role-arn: {{ .role_arn }} {{- end}} {{- end}} diff --git a/chart/values.yaml b/chart/values.yaml index e838ebd..0b2cd64 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -44,6 +44,13 @@ services: monitor: enable: true + # Configure elasticache + # See + #elasticache: + # role_arn: "" + # region: "" + # cluster_name: "" + # We have a changelog available at: image: repository: platformatic/intelligent-command-center