This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Add argo specifications #173
Merged
+291
−54
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1c51bfb
feat: integrate argo
rupeshparab 80d7318
use latest image
rupeshparab 9e86129
update version and add missing file
rupeshparab 1a773f4
updates
rupeshparab db13afa
add chart repo
rupeshparab 88cc39d
update version
rupeshparab 4e482eb
add suffix to pv
rupeshparab d5ea459
add missing file
rupeshparab 3ae890b
argo fixes
rupeshparab 84ae64a
argo fixes
rupeshparab bb88e30
update index
rupeshparab cb2b076
Merge branch 'main' into argo
rupeshparab c040804
update chart
rupeshparab 1091fe7
update readme with steps for argo setup on a new cluster
rupeshparab dd12ac1
fix typo
rupeshparab 931d7bd
update cli utility
rupeshparab d41b464
update index
rupeshparab 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 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: v2 | ||
name: illumidesk | ||
version: 5.9.8 | ||
version: 5.10.0 | ||
appVersion: 1.2.0 | ||
description: An extention of the JupyterHub Chart with additional IllumiDesk resources | ||
icon: https://configs.illumidesk.com/images/illumidesk-80.png | ||
|
@@ -15,6 +15,9 @@ dependencies: | |
version: "10.1.3" | ||
repository: https://charts.bitnami.com/bitnami | ||
condition: postgresql.enabled | ||
- name: argo-events | ||
version: "1.8.0" | ||
repository: https://argoproj.github.io/argo-helm | ||
maintainers: | ||
- name: IllumiDesk Team | ||
email: [email protected] |
This file contains 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
component: argo-rabbitmq | ||
name: argo-rabbitmq-service | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
ports: | ||
- name: main | ||
port: 5672 | ||
- name: management | ||
port: 15672 | ||
selector: | ||
app: argo-rabbitmq-task-queue | ||
component: argo-rabbitmq | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
labels: | ||
component: argo-rabbitmq | ||
name: argo-rabbitmq-controller | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: argo-rabbitmq-task-queue | ||
component: argo-rabbitmq | ||
spec: | ||
containers: | ||
- image: rabbitmq:3.8.22-management-alpine | ||
name: argo-rabbitmq | ||
ports: | ||
- containerPort: 5672 | ||
- containerPort: 15672 | ||
resources: | ||
limits: | ||
cpu: 100m |
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: EventBus | ||
metadata: | ||
name: default | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
nats: | ||
exotic: | ||
url: nats://argo-events-nats.argo-events.svc:4222 | ||
clusterID: argo-events-stan |
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-config | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
PARALLEL_AUTOGRADING: "1" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: EventSource | ||
metadata: | ||
name: autograde-event-source | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
amqp: | ||
autograde_events: | ||
# amqp server url | ||
url: amqp://argo-rabbitmq-service.{{ .Release.Namespace }}.svc.cluster.local:5672 | ||
# jsonBody specifies that all event body payload coming from this | ||
# source will be JSON | ||
jsonBody: true | ||
# name of the exchange. | ||
exchangeName: {{ .Release.Namespace }} | ||
# exchange type. more info at https://www.rabbitmq.com/tutorials/amqp-concepts.html#exchanges | ||
exchangeType: topic | ||
# routing key | ||
routingKey: autograde_events | ||
queueDeclare: | ||
name: autograde_events | ||
durable: false | ||
autoDelete: false | ||
exclusive: true | ||
noWait: false | ||
# optional backoff time for connection retries. | ||
# if not provided, default connection backoff time will be used. | ||
connectionBackoff: | ||
# duration in nanoseconds, or strings like "1s", "1m". following value is 10 seconds | ||
duration: 10s | ||
# how many backoffs | ||
steps: 5 | ||
# factor to increase on each step. | ||
# setting factor > 1 makes backoff exponential. | ||
factor: 2 | ||
jitter: 0.2 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: operate-workflow-sa-{{ .Release.Namespace }} | ||
namespace: {{ .Release.Namespace }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: operate-workflow-role-{{ .Release.Namespace }} | ||
rules: | ||
- apiGroups: | ||
- argoproj.io | ||
verbs: | ||
- "*" | ||
resources: | ||
- workflows | ||
- workflowtemplates | ||
- cronworkflows | ||
- clusterworkflowtemplates | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: operate-workflow-role-binding-{{ .Release.Namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: operate-workflow-role-{{ .Release.Namespace }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: operate-workflow-sa-{{ .Release.Namespace }} | ||
namespace: {{ .Release.Namespace }} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Sensor | ||
metadata: | ||
name: autograde-sensor | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
template: | ||
securityContext: | ||
privileged: true | ||
runAsUser: 0 | ||
serviceAccountName: operate-workflow-sa-{{ .Release.Namespace }} | ||
dependencies: | ||
- name: autograding-event-dep | ||
eventSourceName: autograde-event-source | ||
eventName: autograde_events | ||
triggers: | ||
- template: | ||
name: autograde-workflow-trigger | ||
k8s: | ||
group: argoproj.io | ||
version: v1alpha1 | ||
resource: workflows | ||
operation: create | ||
source: | ||
resource: | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: autograde-workflow- | ||
jgwerner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
ttlStrategy: | ||
secondsAfterSuccess: 60 | ||
synchronization: | ||
semaphore: | ||
configMapKeyRef: | ||
name: argo-config | ||
key: PARALLEL_AUTOGRADING | ||
entrypoint: autograde-worker | ||
volumes: | ||
- name: shared-pv-{{ .Release.Namespace }} | ||
persistentVolumeClaim: | ||
claimName: shared-pvc-{{ .Release.Namespace }} | ||
- name: grader-pv-{{ .Release.Namespace }} | ||
persistentVolumeClaim: | ||
claimName: grader-pvc-{{ .Release.Namespace }} | ||
templates: | ||
- name: autograde-worker | ||
container: | ||
image: illumidesk/grader-notebook:latest | ||
imagePullPolicy: Always | ||
command: [ild] | ||
args: ["process_message", "message"] | ||
securityContext: | ||
privileged: true | ||
runAsNonRoot: true | ||
runAsUser: 10001 | ||
env: | ||
jgwerner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: JUPYTERHUB_API_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
name: hub-illumidesk-cm | ||
key: JUPYTERHUB_API_URL | ||
volumeMounts: | ||
- name: grader-pv-{{ .Release.Namespace }} | ||
mountPath: /home | ||
subPath: illumidesk-courses/{{ .Release.Namespace }}/home | ||
- name: shared-pv-{{ .Release.Namespace }} | ||
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. this can be removed |
||
mountPath: /srv/nbgrader/exchange | ||
subPath: {{ .Release.Namespace }}/exchange | ||
parameters: | ||
- src: | ||
dependencyName: autograding-event-dep | ||
dest: spec.templates.0.container.args.1 |
This file contains 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.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Abhi94N perhaps it's best to abstract this away by deploying Argo with a sub-chart?
NOTE: after today's review (11.11.2021) this will stay in place since it's a cluster-level resource. We have opened issue #175 and that chart could include the Argo setup as a sub-chart.