-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopensearch.yaml.j2
More file actions
210 lines (202 loc) · 6.57 KB
/
Copy pathopensearch.yaml.j2
File metadata and controls
210 lines (202 loc) · 6.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
---
apiVersion: opensearch.stackable.tech/v1alpha1
kind: OpenSearchCluster
metadata:
name: opensearch
spec:
image:
{% if test_scenario['values']['opensearch'].find(",") > 0 %}
custom: "{{ test_scenario['values']['opensearch'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['opensearch'] }}"
{% endif %}
pullPolicy: IfNotPresent
nodes:
roleGroups:
cluster-manager:
config:
nodeRoles:
- cluster_manager
listenerClass: test-external-stable-$NAMESPACE
replicas: 1
podOverrides:
spec:
volumes:
- name: tls
ephemeral:
volumeClaimTemplate:
metadata:
annotations:
secrets.stackable.tech/scope: node,pod,service=opensearch,service=opensearch-nodes-cluster-manager-headless
data1:
config:
nodeRoles:
- data
listenerClass: test-external-unstable-$NAMESPACE
replicas: 1
podOverrides:
spec:
volumes:
- name: tls
ephemeral:
volumeClaimTemplate:
metadata:
annotations:
secrets.stackable.tech/scope: node,pod,service=opensearch-nodes-data1-headless
data2:
config:
nodeRoles:
- data
listenerClass: test-cluster-internal-$NAMESPACE
replicas: 1
podOverrides:
spec:
volumes:
- name: tls
ephemeral:
volumeClaimTemplate:
metadata:
annotations:
secrets.stackable.tech/scope: node,pod,service=opensearch-nodes-data2-headless
envOverrides:
# Only required for the official image
# The official image (built with https://github.com/opensearch-project/opensearch-build)
# installs a demo configuration if not disabled explicitly.
DISABLE_INSTALL_DEMO_CONFIG: "true"
OPENSEARCH_HOME: {{ test_scenario['values']['opensearch_home'] }}
configOverrides:
opensearch.yml:
# Disable memory mapping in this test; If memory mapping were activated, the kernel setting
# vm.max_map_count would have to be increased to 262144 on the node.
node.store.allow_mmap: "false"
# Disable the disk allocation decider in this test; Otherwise the test depends on the disk
# usage of the node and if the relative watermark set in
# `cluster.routing.allocation.disk.watermark.high` is reached then the security index could
# not be created even if enough disk space would be available.
cluster.routing.allocation.disk.threshold_enabled: "false"
plugins.security.allow_default_init_securityindex: "true"
plugins.security.ssl.transport.enabled: "true"
plugins.security.ssl.transport.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt
plugins.security.ssl.transport.pemkey_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.key
plugins.security.ssl.transport.pemtrustedcas_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/ca.crt
plugins.security.ssl.http.enabled: "true"
plugins.security.ssl.http.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt
plugins.security.ssl.http.pemkey_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.key
plugins.security.ssl.http.pemtrustedcas_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/ca.crt
podOverrides:
spec:
containers:
- name: opensearch
volumeMounts:
- name: security-config
mountPath: {{ test_scenario['values']['opensearch_home'] }}/config/opensearch-security
readOnly: true
- name: tls
mountPath: {{ test_scenario['values']['opensearch_home'] }}/config/tls
readOnly: true
volumes:
- name: security-config
secret:
secretName: opensearch-security-config
- name: tls
ephemeral:
volumeClaimTemplate:
metadata:
annotations:
secrets.stackable.tech/class: tls
spec:
storageClassName: secrets.stackable.tech
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "1"
---
apiVersion: v1
kind: Secret
metadata:
name: opensearch-security-config
stringData:
action_groups.yml: |
---
_meta:
type: actiongroups
config_version: 2
allowlist.yml: |
---
_meta:
type: allowlist
config_version: 2
config:
enabled: false
audit.yml: |
---
_meta:
type: audit
config_version: 2
config:
enabled: false
config.yml: |
---
_meta:
type: config
config_version: 2
config:
dynamic:
authc:
basic_internal_auth_domain:
description: Authenticate via HTTP Basic against internal users database
http_enabled: true
transport_enabled: true
order: 1
http_authenticator:
type: basic
challenge: true
authentication_backend:
type: intern
authz: {}
internal_users.yml: |
---
# The hash value is a bcrypt hash and can be generated with plugin/tools/hash.sh
_meta:
type: internalusers
config_version: 2
admin:
hash: $2y$10$xRtHZFJ9QhG9GcYhRpAGpufCZYsk//nxsuel5URh0GWEBgmiI4Q/e
reserved: true
backend_roles:
- admin
description: OpenSearch admin user
kibanaserver:
hash: $2y$10$vPgQ/6ilKDM5utawBqxoR.7euhVQ0qeGl8mPTeKhmFT475WUDrfQS
reserved: true
description: OpenSearch Dashboards user
nodes_dn.yml: |
---
_meta:
type: nodesdn
config_version: 2
roles.yml: |
---
_meta:
type: roles
config_version: 2
roles_mapping.yml: |
---
_meta:
type: rolesmapping
config_version: 2
all_access:
reserved: false
backend_roles:
- admin
kibana_server:
reserved: true
users:
- kibanaserver
tenants.yml: |
---
_meta:
type: tenants
config_version: 2