|
| 1 | +--- |
| 2 | +apiVersion: opensearch.stackable.tech/v1alpha1 |
| 3 | +kind: OpenSearchCluster |
| 4 | +metadata: |
| 5 | + name: opensearch |
| 6 | +spec: |
| 7 | + image: |
| 8 | +{% if test_scenario['values']['opensearch'].find(",") > 0 %} |
| 9 | + custom: "{{ test_scenario['values']['opensearch'].split(',')[1] }}" |
| 10 | + productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}" |
| 11 | +{% else %} |
| 12 | + productVersion: "{{ test_scenario['values']['opensearch'] }}" |
| 13 | +{% endif %} |
| 14 | + pullPolicy: IfNotPresent |
| 15 | + nodes: |
| 16 | + roleGroups: |
| 17 | + default: |
| 18 | + replicas: 3 |
| 19 | + envOverrides: |
| 20 | + DISABLE_INSTALL_DEMO_CONFIG: "true" |
| 21 | + OPENSEARCH_HOME: {{ test_scenario['values']['opensearch_home'] }} |
| 22 | + configOverrides: |
| 23 | + opensearch.yml: |
| 24 | + # Disable memory mapping in this test; If memory mapping were activated, the kernel setting |
| 25 | + # vm.max_map_count would have to be increased to 262144 on the node. |
| 26 | + node.store.allow_mmap: "false" |
| 27 | + plugins.security.allow_default_init_securityindex: "true" |
| 28 | + plugins.security.ssl.transport.enabled: "true" |
| 29 | + plugins.security.ssl.transport.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt |
| 30 | + plugins.security.ssl.transport.pemkey_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.key |
| 31 | + plugins.security.ssl.transport.pemtrustedcas_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/ca.crt |
| 32 | + plugins.security.ssl.http.enabled: "true" |
| 33 | + plugins.security.ssl.http.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt |
| 34 | + plugins.security.ssl.http.pemkey_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.key |
| 35 | + plugins.security.ssl.http.pemtrustedcas_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/ca.crt |
| 36 | + podOverrides: |
| 37 | + spec: |
| 38 | + containers: |
| 39 | + - name: opensearch |
| 40 | + volumeMounts: |
| 41 | + - name: security-config |
| 42 | + mountPath: {{ test_scenario['values']['opensearch_home'] }}/config/opensearch-security |
| 43 | + readOnly: true |
| 44 | + - name: tls |
| 45 | + mountPath: {{ test_scenario['values']['opensearch_home'] }}/config/tls |
| 46 | + readOnly: true |
| 47 | + securityContext: |
| 48 | + fsGroup: 1000 |
| 49 | + volumes: |
| 50 | + - name: security-config |
| 51 | + secret: |
| 52 | + secretName: opensearch-security-config |
| 53 | + - name: tls |
| 54 | + ephemeral: |
| 55 | + volumeClaimTemplate: |
| 56 | + metadata: |
| 57 | + annotations: |
| 58 | + secrets.stackable.tech/class: tls |
| 59 | + secrets.stackable.tech/scope: node,pod,service=opensearch,service=opensearch-nodes-default-headless |
| 60 | + spec: |
| 61 | + storageClassName: secrets.stackable.tech |
| 62 | + accessModes: |
| 63 | + - ReadWriteOnce |
| 64 | + resources: |
| 65 | + requests: |
| 66 | + storage: "1" |
0 commit comments