Skip to content

Commit

Permalink
Added workflow to MASTER_START_SCRIPT.sh (#35)
Browse files Browse the repository at this point in the history
Added workflow to NebulOuS K8s deployment
  • Loading branch information
Iqqdd99 authored Nov 15, 2024
1 parent cf51ef9 commit fb14347
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion installation-scripts-onm/MASTER_START_SCRIPT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,29 @@ if [ "$SERVERLESS_ENABLED" == "yes" ]; then

kubectl apply -f https://raw.githubusercontent.com/kubevela/samples/master/06.Knative_App/componentdefinition-knative-serving.yaml
echo "Serverless installation completed."
fi
fi

if [ "$WORKFLOW_ENABLED" == "yes" ]; then
echo "Workflow installation.";

sudo -H -E -u ubuntu bash -c 'helm install argo-workflows argo-workflows \
--repo https://argoproj.github.io/argo-helm \
--namespace argo \
--create-namespace \
--set crds.install=true \
--set crds.keep=false \
--set workflow.serviceAccount.create=true \
--set workflow.serviceAccount.name="argo" \
--set workflow.rbac.create=true \
--set "controller.workflowNamespaces={argo}" \
--set controller.metricsConfig.enabled=true \
--set controller.telemetryConfig.enabled=true \
--set controller.serviceMonitor.enabled=true \
--set "server.authModes={server}"'

sudo -H -E -u ubuntu bash -c 'kubectl -n argo create rolebinding argo-workflows-server --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-server'
sudo -H -E -u ubuntu bash -c 'kubectl -n argo create rolebinding argo-workflows-workflow-controller --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-workflow-controller'
sudo -H -E -u ubuntu bash -c 'kubectl -n argo create rolebinding default --role=argo-workflows-workflow --serviceaccount=argo:default'

echo "Workflow installation completed.";
fi

0 comments on commit fb14347

Please sign in to comment.