Skip to content

Commit 51034f5

Browse files
authored
Klass API prod: Change to opensearch (#437)
1 parent c10d44c commit 51034f5

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.nais/prod/klass-api.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ spec:
1616
resources:
1717
requests:
1818
cpu: 200m
19-
memory: 2000Mi
19+
memory: 1500Mi
2020
limits:
21-
memory: 2400Mi
21+
memory: 1730Mi
2222
gcp:
2323
sqlInstances:
2424
- type: POSTGRES_17
@@ -27,21 +27,28 @@ spec:
2727
- name: klass
2828
env:
2929
- name: SPRING_PROFILES_ACTIVE
30-
value: api, postgres, solr-remote, skip-indexing
31-
- name: SPRING_DATA_SOLR_HOST
32-
value: http://klass-solr/solr
30+
value: api, postgres, remote-open-search, skip-indexing
31+
- name: OPENSEARCH_USERNAME
32+
value: ${OPEN_SEARCH_USERNAME}
33+
- name: OPENSEARCH_URL
34+
value: ${OPEN_SEARCH_URI}
35+
- name: OPENSEARCH_PASSWORD
36+
value: ${OPEN_SEARCH_PASSWORD}
37+
# Structured logging in cluster
38+
- name: LOGGING_STRUCTURED_FORMAT_CONSOLE
39+
value: logstash
3340
- name: KLASS_ENV_CLIENT_KLASS_MAIL_URL
3441
value: http://klass-mail
3542
- name: JAVA_TOOL_OPTIONS
36-
value: "-XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0"
37-
- name: LOGGING_LEVEL_ROOT
38-
value: INFO
43+
value: "-XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=50.0"
3944

4045
accessPolicy:
4146
outbound:
4247
rules:
43-
- application: klass-solr
4448
- application: klass-mail
49+
openSearch:
50+
access: admin
51+
instance: klass-search
4552

4653
prometheus:
4754
enabled: true

0 commit comments

Comments
 (0)