Skip to content

Commit

Permalink
feat(opensearch): add k8s-install.sh (in progress)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Oct 10, 2023
1 parent 8abe22f commit afc7c8a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions opensearch/k8s-install.sh
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

0 comments on commit afc7c8a

Please sign in to comment.