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

Workflow k3s #45

Merged
merged 3 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ FROM busybox:1.36.1-musl

COPY installation-scripts-onm /sal-scripts/installation-scripts-onm
COPY k8s /sal-scripts/k8s
COPY serverless /sal-scripts/serverless
COPY workflow /sal-scripts/workflow
COPY serverless /sal-scripts/serverless
23 changes: 17 additions & 6 deletions installation-scripts-onm/MASTER_START_SCRIPT.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use "dau" alias for "sudo -H -E -u ubuntu"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved

Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,24 @@ fi
if [ "$WORKFLOW_ENABLED" == "yes" ]; then
echo "Workflow installation.";

wget https://raw.githubusercontent.com/eu-nebulous/sal-scripts/main/workflow/workflow.yaml

helm install argo-workflows argo-workflows --repo https://argoproj.github.io/argo-helm --namespace argo --create-namespace --values workflow.yaml;
$dau 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}"'

kubectl -n argo create rolebinding argo-workflows-server --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-server;
kubectl -n argo create rolebinding argo-workflows-workflow-controller --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-workflow-controller;
kubectl -n argo create rolebinding default --role=argo-workflows-workflow --serviceaccount=argo:default;
$dau bash -c 'kubectl -n argo create rolebinding argo-workflows-server --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-server'
$dau bash -c 'kubectl -n argo create rolebinding argo-workflows-workflow-controller --role=argo-workflows-workflow --serviceaccount=argo:argo-workflows-workflow-controller'
$dau bash -c 'kubectl -n argo create rolebinding default --role=argo-workflows-workflow --serviceaccount=argo:default'

echo "Workflow installation completed.";
fi
14 changes: 0 additions & 14 deletions workflow/workflow.yaml

This file was deleted.