-
-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Use Opensearch operator and OpenSearch Dashboards image in logging demo #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9fc7238
use opensearch-operator and opensearch-dashboards image in demo
labrenbe 7b88c8d
fix vector aggregator
labrenbe 550084e
update docs
labrenbe 5d9a48e
address feedback on PR
labrenbe fd2893d
move tls pod override to role level
labrenbe 13e9e8b
Merge remote-tracking branch 'origin/main' into feat/opensearch
labrenbe 2a16085
Merge remote-tracking branch 'origin/main' into feat/opensearch
labrenbe 0c3d1f1
address feedback in PR
labrenbe 1eb6e37
fix default mode
labrenbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
apiVersion: opensearch.stackable.tech/v1alpha1 | ||
kind: OpenSearchCluster | ||
metadata: | ||
name: opensearch | ||
spec: | ||
image: | ||
productVersion: {{ opensearchVersion }} | ||
pullPolicy: IfNotPresent | ||
clusterConfig: | ||
vectorAggregatorConfigMapName: vector-aggregator-discovery | ||
nodes: | ||
config: | ||
logging: | ||
enableVectorAgent: true | ||
roleGroups: | ||
default: | ||
config: | ||
listenerClass: cluster-internal | ||
replicas: 1 | ||
configOverrides: | ||
opensearch.yml: | ||
# Disable memory mapping in this stack; 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 stack; Otherwise depending on the disk | ||
# usage of the node and if the relative watermark set in | ||
# `cluster.routing.allocation.disk.watermark.high` is reached the security index can't | ||
# 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: /stackable/opensearch/config/tls/tls.crt | ||
plugins.security.ssl.transport.pemkey_filepath: /stackable/opensearch/config/tls/tls.key | ||
plugins.security.ssl.transport.pemtrustedcas_filepath: /stackable/opensearch/config/tls/ca.crt | ||
plugins.security.ssl.http.enabled: "true" | ||
plugins.security.ssl.http.pemcert_filepath: /stackable/opensearch/config/tls/tls.crt | ||
plugins.security.ssl.http.pemkey_filepath: /stackable/opensearch/config/tls/tls.key | ||
plugins.security.ssl.http.pemtrustedcas_filepath: /stackable/opensearch/config/tls/ca.crt | ||
podOverrides: | ||
spec: | ||
containers: | ||
- name: opensearch | ||
volumeMounts: | ||
- name: security-config | ||
mountPath: /stackable/opensearch/config/opensearch-security | ||
readOnly: true | ||
- name: tls | ||
mountPath: /stackable/opensearch/config/tls | ||
readOnly: true | ||
volumes: | ||
- name: security-config | ||
secret: | ||
secretName: opensearch-security-config | ||
siegfriedweber marked this conversation as resolved.
Show resolved
Hide resolved
|
||
defaultMode: 0o660 | ||
- name: tls | ||
ephemeral: | ||
volumeClaimTemplate: | ||
metadata: | ||
annotations: | ||
secrets.stackable.tech/class: tls | ||
secrets.stackable.tech/scope: node,pod,service=opensearch,service=opensearch-nodes-default-headless | ||
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: | | ||
--- | ||
_meta: | ||
type: internalusers | ||
config_version: 2 | ||
|
||
admin: | ||
hash: {{ bcrypt(password=openSearchAdminPassword) }} | ||
siegfriedweber marked this conversation as resolved.
Show resolved
Hide resolved
|
||
reserved: true | ||
backend_roles: | ||
- admin | ||
description: OpenSearch admin user | ||
|
||
kibanaserver: | ||
hash: {{ bcrypt(password=openSearchDashboardPassword) }} | ||
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 | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: opensearch-user | ||
stringData: | ||
username: admin | ||
password: {{ openSearchAdminPassword }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: opensearch-dashboard-user | ||
stringData: | ||
username: kibanaserver | ||
password: {{ openSearchDashboardPassword }} | ||
cookie: {{ random_password() }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ spec: | |
key: password | ||
command: | ||
- bash | ||
- -x | ||
- -euo | ||
- pipefail | ||
- -c | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.