Skip to content
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

add support for OCP #155

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
24 changes: 24 additions & 0 deletions customize_fusion_values.sh
Original file line number Diff line number Diff line change
@@ -13,6 +13,8 @@ CHART_VERSION="5.3.5"
NAMESPACE=default
OUTPUT_SCRIPT=""
ADDITIONAL_VALUES=()
KUBECTL="kubectl"
KUBECTL_TIMEOUT_PARAM="--timeout"
SKIP_CRDS=""

function print_usage() {
@@ -28,6 +30,7 @@ function print_usage() {
echo -e " -c Cluster name (required)\n"
echo -e " -n Kubernetes namespace to install Fusion 5 into, defaults to 'default'\n"
echo -e " -r Helm release name for installing Fusion 5; defaults to the namespace, see -n option\n"
echo -e " -k The Kubernetes command line tool executable to use, defaults to 'kubectl'\n"
echo -e " --version Fusion Helm Chart version; defaults to the latest release from Lucidworks, such as ${CHART_VERSION}\n"
echo -e " --provider Name of your K8s provider, e.g. eks, aks, gke, oc; defaults to 'gke'\n"
echo -e " --prometheus Enable Prometheus? true or false, defaults to true\n"
@@ -40,6 +43,7 @@ function print_usage() {
echo -e " --with-replicas Flag to enable replicas yaml, defaults to off\n"
echo -e " --additional-values Additional values files to add to the upgrade script, may be specified multiple times\n"
echo -e " --output-script The name of the generated upgrade script, defaults to <provider>_<cluster_name>_<release>_upgrade_fusion.sh \n"
echo -e " --skip-crds Set the --skip-crds flag on the helm upgrade. Use this in situations where you do no have permissions to make Custom Resource Definitions.\n"
echo -e "\nIf you omit the <yaml-file-to-create> arg, then the script will create it using the naming convention:\n <provider>_<cluster>_<release>_fusion_values.yaml\n"
}

@@ -71,6 +75,14 @@ if [ $# -gt 1 ]; then
CLUSTER_NAME="$2"
shift 2
;;
-k)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
print_usage "$SCRIPT_CMD" "Missing value for the -k parameter!"
exit 1
fi
KUBECTL="$2"
shift 2
;;
-n)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
print_usage "$SCRIPT_CMD" "Missing value for the -n parameter!"
@@ -103,6 +115,10 @@ if [ $# -gt 1 ]; then
PROVIDER="$2"
shift 2
;;
--skip-crds)
SKIP_CRDS="--skip-crds"
shift 1
;;
--prometheus)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
print_usage "$SCRIPT_CMD" "Missing value for the --prometheus parameter!"
@@ -187,6 +203,11 @@ if [ $# -gt 1 ]; then
done
fi

# Openshift cli uses --request-timeout instead of --timeout for deploys
if [ "$PROVIDER" == "oc" ]; then
KUBECTL_TIMEOUT_PARAM="--request-timeout"
fi

valid="0-9a-zA-Z\-"
if [[ $NAMESPACE =~ [^$valid] ]]; then
echo -e "\nERROR: Namespace $NAMESPACE must only contain 0-9, a-z, A-Z, or dash!\n"
@@ -357,5 +378,8 @@ else
sed -i '' -e "s|<ADDITIONAL_VALUES>|${ADDITIONAL_VALUES_STRING}|g" "$OUTPUT_SCRIPT"
fi

sed -i -e "s|<KUBECTL>|${KUBECTL}|g" "$OUTPUT_SCRIPT"
sed -i -e "s|<KUBECTL_TIMEOUT_PARAM>|${KUBECTL_TIMEOUT_PARAM}|g" "$OUTPUT_SCRIPT"
sed -i -e "s|<SKIP_CRDS>|${SKIP_CRDS}|g" "$OUTPUT_SCRIPT"

echo -e "\nCreate $OUTPUT_SCRIPT for upgrading you Fusion cluster. Please keep this script along with your custom values yaml file(s) in version control.\n"
118 changes: 118 additions & 0 deletions example-values/no-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
admin-ui:
rbac:
create: false
api-gateway:
rbac:
create: false
argo:
rbac:
create: false
createAggregateRoles: false
argo-common-workflows:
rbac:
create: false
auth-ui:
rbac:
create: false
classic-rest-service:
rbac:
create: false
classification:
rbac:
create: false
config-sync:
rbac:
create: false
connector-plugin-service:
rbac:
create: false
devops-ui:
rbac:
create: false
fusion-admin:
rbac:
create: false
fusion-ambassador:
rbac:
create: false
fusion-indexing:
rbac:
create: false
fusion-jupyter:
rbac:
create: false
fusion-log-forwarder:
rbac:
create: false
fusion-resources:
rbac:
create: false
insights:
rbac:
create: false
job-launcher:
rbac:
create: false
job-rest-server:
rbac:
create: false
milvus-writable:
rbac:
create: false
ml-model-service:
rbac:
create: false
runLabelNamespaceJob: false
pm-ui:
rbac:
create: false
pulsar:
rbac:
create: false
question-answering:
rbac:
create: false
recommender:
rbac:
create: false
rest-service:
rbac:
create: false
rpc-service:
rbac:
create: false
plugins:
crd:
create: false
rules-ui:
rbac:
create: false
seldon-core-operator:
rbac:
create: false
disableWebhookCreation: true
crds:
enabled: false
solr:
rbac:
create: false
setAvailabilityZone: false
solr-backup-runner:
rbac:
create: false
sql-service:
rbac:
create: false
templating:
rbac:
create: false
webapps:
rbac:
create: false
zookeeper:
rbac:
create: false
query-pipeline:
useAvailabilityZoneRouting: false
rbac:
create: false
157 changes: 157 additions & 0 deletions example-values/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
zookeeper:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/zookeeper"
solr:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/solr"
initContainer:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
admin-ui:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
api-gateway:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
keytoolUtils:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
argo:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
argo-common-workflows:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
auth-ui:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
classic-rest-service:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
classification:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
config-sync:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
connector-plugin-service:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
devops-ui:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
fusion-admin:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
fusion-ambassador:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
fusion-indexing:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
fusion-jupyter:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
fusion-log-forwarder:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
fusion-resources:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
insights:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
job-launcher:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
job-rest-server:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
milvus-writable:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
pm-ui:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
pulsar:
bookkeeper:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
broker:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
initContainer:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
images:
autorecovery:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
bookie:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
broker:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
functions:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
pulsar_manager:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-manager"
zookeeper:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
pulsar_metadata:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/apachepulsar/pulsar-all"
question-answering:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
recommender:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
rest-service:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
rpc-service:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
rules-ui:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
seldon-core-operator:
image:
registry: "YOUR-REPOSITORY-DOMAIN:443"
solr-backup-runner:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
sql-service:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
templating:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
webapps:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
query-pipeline:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
ml-model-service:
milvus:
admin:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/milvusdb/milvus-em"
mysql:
image: "YOUR-REPOSITORY-DOMAIN:443/mysql"
busybox:
image: "YOUR-REPOSITORY-DOMAIN:443/busybox"
initContainerImage: "YOUR-REPOSITORY-DOMAIN:443/alpine:latest"
ambassador:
initContainerImage: "YOUR-REPOSITORY-DOMAIN:443/alpine:latest"
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/quay.io/datawire/ambassador"
initContainer:
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
image:
repository: "YOUR-REPOSITORY-DOMAIN:443/lucidworks"
mysql:
image: "YOUR-REPOSITORY-DOMAIN:443/mysql"
Loading