-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(opensearch): add k8s-install.sh (in progress)
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,20 @@ | ||
#!/bin/bash | ||
|
||
DEVBOX_HOSTNAME=${DEVBOX_HOSTNAME:-dev.localhost} | ||
DEVBOX_INGRESS=${DEVBOX_INGRESS:-traefik} | ||
DEVBOX_ISSUER=${DEVBOX_ISSUER:-mkcert} | ||
|
||
# Add helm repository | ||
helm repo add opensearch https://opensearch-project.github.io/helm-charts/ | ||
|
||
# Update helm repositories | ||
helm repo update | ||
|
||
# Create namespace opensearch if not exists | ||
kubectl create namespace opensearch --dry-run=client -o yaml | kubectl apply -f - | ||
|
||
# Create opensearch cluster | ||
helm -n opensearch upgrade --install opensearch-cluster opensearch/opensearch | ||
|
||
# Install opensearch dashboard | ||
helm -n opensearch upgrade --install opensearch-dashboards opensearch/opensearch-dashboards |