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