-
Notifications
You must be signed in to change notification settings - Fork 32
update readme to support running fusion on local k8s cluster #55
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
Open
mllu
wants to merge
2
commits into
master
Choose a base branch
from
mllu/support_local_kind_k8s
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
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
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
Binary file not shown.
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 |
|---|---|---|
|
|
@@ -16,6 +16,8 @@ FORCE=0 | |
| CUSTOM_MY_VALUES=() | ||
| MY_VALUES=() | ||
| DRY_RUN="" | ||
| HELM_CHART="" | ||
| SOLR_REPLICAS=1 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| SOLR_DISK_GB=50 | ||
| NODE_POOL="" | ||
|
|
||
|
|
@@ -40,6 +42,7 @@ function print_usage() { | |
| echo -e " defaults to 'install' which installs Prometheus and Grafana from the stable Helm repo," | ||
| echo -e " 'provided' enables pod annotations on Fusion services to work with Prometheus but does not install anything\n" | ||
| echo -e " --version Fusion Helm Chart version; defaults to the latest release from Lucidworks, such as ${CHART_VERSION}\n" | ||
| echo -e " --helm-chart Custom fusion helm chart to install to k8s cluster\n" | ||
|
mllu marked this conversation as resolved.
Outdated
|
||
| echo -e " --values Custom values file containing config overrides; defaults to gke_<cluster>_<namespace>_fusion_values.yaml" | ||
| echo -e " (can be specified multiple times to add additional yaml files, see example-values/*.yaml)\n" | ||
| echo -e " --upgrade Perform a Helm upgrade on an existing Fusion installation\n" | ||
|
|
@@ -116,6 +119,14 @@ if [ $# -gt 0 ]; then | |
| CHART_VERSION="$2" | ||
| shift 2 | ||
| ;; | ||
| --helm-chart) | ||
| if [[ -z "$2" || "${2:0:1}" == "-" ]]; then | ||
| print_usage "$SCRIPT_CMD" "Missing value for the --node-pool parameter!" | ||
| exit 1 | ||
| fi | ||
| HELM_CHART="$2" | ||
| shift 2 | ||
| ;; | ||
| --values) | ||
| if [[ -z "$2" || "${2:0:1}" == "-" ]]; then | ||
| print_usage "$SCRIPT_CMD" "Missing value for the --values parameter!" | ||
|
|
@@ -491,7 +502,12 @@ if [ "$is_helm_v3" != "" ]; then | |
| kubectl create namespace "${NAMESPACE}" | ||
| fi | ||
| # looks like Helm V3 doesn't like the -n parameter for the release name anymore | ||
| helm install "${RELEASE}" ${lw_helm_repo}/fusion --timeout=240s --namespace "${NAMESPACE}" ${VALUES_STRING} --version "${CHART_VERSION}" | ||
| if [ "${HELM_CHART}" == "" ]; then | ||
| helm install "${RELEASE}" ${lw_helm_repo}/fusion --timeout=240s --namespace "${NAMESPACE}" ${VALUES_STRING} --version "${CHART_VERSION}" | ||
| else | ||
| # only support helm3 for local k8s cluster | ||
| helm install "${RELEASE}" "${HELM_CHART}" --timeout=240s --namespace "${NAMESPACE}" ${VALUES_STRING} --version "${CHART_VERSION}" | ||
| fi | ||
| else | ||
| helm install ${lw_helm_repo}/fusion --timeout 240 --namespace "${NAMESPACE}" -n "${RELEASE}" ${VALUES_STRING} --version "${CHART_VERSION}" | ||
| fi | ||
|
|
||
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.