Skip to content

Commit 9d790ec

Browse files
committed
allow configuring replicas for ui
Signed-off-by: Greg Nyahay <greg.nyahay@anchore.com>
1 parent b4f643e commit 9d790ec

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

stable/enterprise/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: enterprise
3-
version: "3.17.2"
3+
version: "3.17.3"
44
appVersion: "5.23.0"
55
kubeVersion: 1.23.x - 1.34.x || 1.23.x-x - 1.34.x-x
66
description: |

stable/enterprise/templates/ui_deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
spec:
1111
selector:
1212
matchLabels: {{- include "enterprise.common.matchLabels" (merge (dict "component" $component) .) | nindent 6 }}
13-
replicas: 1
13+
replicas: {{ .Values.ui.replicaCount }}
1414
strategy: {{- include "enterprise.common.deploymentStrategy" . | nindent 4 }}
1515
template:
1616
metadata:

stable/enterprise/tests/__snapshot__/configmap_test.yaml.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ should render the configmaps:
10031003
enable_ssl: false
10041004
enable_proxy: false
10051005
allow_shared_login: true
1006-
redis_flushdb: true
1006+
redis_flushdb: false
10071007
force_websocket: false
10081008
authentication_lock:
10091009
count: 5

stable/enterprise/values.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ anchoreConfig:
775775
enable_proxy: false
776776

777777
## @param anchoreConfig.ui.enable_ssl Enable SSL in the Anchore UI container
778+
## NOTE: requires enable_proxy: true
778779
##
779780
enable_ssl: false
780781

@@ -786,8 +787,9 @@ anchoreConfig:
786787

787788
## @param anchoreConfig.ui.redis_flushdb Flush user session keys and empty data on Anchore UI startup
788789
## If the datastore is flushed, any users with active sessions will be required to re-authenticate
790+
## When running multiple UI replicas this should be set to false
789791
##
790-
redis_flushdb: true
792+
redis_flushdb: false
791793

792794
## @param anchoreConfig.ui.force_websocket Force WebSocket protocol for socket message communications
793795
##
@@ -1610,6 +1612,10 @@ ui:
16101612
##
16111613
ldapsRootCaCertName: ""
16121614

1615+
## @param ui.replicaCount Number of replicas for the Anchore UI deployment
1616+
##
1617+
replicaCount: 1
1618+
16131619
## @param ui.service.type Service type for Anchore UI
16141620
## @param ui.service.port Service port for Anchore UI
16151621
## @param ui.service.annotations Annotations for Anchore UI service
@@ -1621,7 +1627,6 @@ ui:
16211627
service:
16221628
type: ClusterIP
16231629
port: 80
1624-
## TODO - add service specific annotations & labels to ALL services
16251630
annotations: {}
16261631
labels: {}
16271632
sessionAffinity: ClientIP

0 commit comments

Comments
 (0)