Discover Packages
github.com/uselagoon/lagoon-opensearch-sync
module
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Dec 6, 2022
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Lagoon Opensearch Sync
This tool/service synchronises Opensearch with Lagoon.
This means that it sets up the required roles and permissions based on Lagoon groups and projects.
Prerequisites
Create a Keycloak client with group read permissions, and client credential authorization enabled.
TODO: More detailed configuration instructions for Keycloak.
How to use
This tool is designed to run in a Kubernetes deployment in the same namespace as a lagoon-core chart.
It will eventually be rolled into the lagoon-core chart.
The deployment requires:
An image from this repository.
These environment variables:
Name
Description
Example
DEBUG
Verbose logging (not required, default false).
true
API_DB_ADDRESS
Internal service name of the API DB.
lagoon-core-api-db
API_DB_PASSWORD
Password to the API DB.
KEYCLOAK_BASE_URL
HTTP URL to the internal keycloak service.
http://lagoon-core-keycloak:8080/
OPENSEARCH_BASE_URL
HTTPS URL to the internal Opensearch service.
https://opensearch-cluster-coordinating.opensearch.svc.cluster.local:9200
OPENSEARCH_CA_CERTIFICATE
Opensearch CA certificate in PEM format.
OPENSEARCH_DASHBOARDS_BASE_URL
HTTP URL to the internal Dashboards service.
http://opensearch-dashboards.opensearch-dashboards.svc.cluster.local:5601
KEYCLOAK_CLIENT_ID
Client ID of lagoon-opensearch-sync Keycloak client.
KEYCLOAK_CLIENT_SECRET
Client secret of lagoon-opensearch-sync Keycloak client.
OPENSEARCH_ADMIN_PASSWORD
Password for the Opensearch admin user.
Command /lagoon-opensearch-sync.
Advanced usage
This tool can be used to debug Opensearch/Lagoon integration.
For debugging commands see /lagoon-opensearch-sync --help.
Expand ▾
Collapse ▴
Directories
¶
cmd
lagoon-opensearch-sync
command
lagoon-opensearch-sync is a CLI for automatically configuring Opensearch for Lagoon.
lagoon-opensearch-sync is a CLI for automatically configuring Opensearch for Lagoon.
internal
keycloak
Package keycloak implements a keycloak client for Lagoon.
Package keycloak implements a keycloak client for Lagoon.
Click to show internal directories.
Click to hide internal directories.