Skip to content

Commit

Permalink
kuberay/spark operator (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-treebeard committed Apr 8, 2024
1 parent 4af543e commit e651583
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/vm/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
},
"runArgs": [
"--network=host",
"--network=host", // Allows accessing k3d from within container using docker outside of docker
],
"features": {
"ghcr.io/meaningful-ooo/devcontainer-features/homebrew:2": {
Expand Down
12 changes: 11 additions & 1 deletion examples/k3s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,17 @@ terraform apply -var kubeconfig=$KUBECONFIG

### 3. Verify the installation

Once terraform has finished, connect to the central dashboard and login as the default user.
Watch k9s pods until all of them are in a ready state.

You can also check argocd with:

```
kubectl port-forward --namespace "argocd" svc/argo-cd-argocd-server 8081:80
```

then go the localhost:8081 and enter username 'admin', password (decoded `argocd/argocd-initial-admin-secret`)

Once all is finished you can port forward into the ingress gateway:

```sh
kubectl port-forward --namespace "istio-system" svc/istio-ingressgateway 8080:http2
Expand Down
12 changes: 12 additions & 0 deletions helm/kubeflow-core/templates/300-distributed/300-kuberay.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{ if .Values.kuberay.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: 300-kuberay
annotations:
argocd.argoproj.io/sync-wave: "300"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
{{ .Values.kuberay.spec | toYaml | indent 2}}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{ if .Values.sparkOperator.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: 300-spark-operator
annotations:
argocd.argoproj.io/sync-wave: "300"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
{{ .Values.sparkOperator.spec | toYaml | indent 2}}
{{- end -}}
45 changes: 45 additions & 0 deletions helm/kubeflow-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,3 +612,48 @@ tensorboardsWebApp:
prune: false
syncOptions:
- ServerSideApply=true

kuberay:
enabled: false
spec:
project: default
sources:
- chart: 'kuberay-operator'
repoURL: 'https://ray-project.github.io/kuberay-helm/'
targetRevision: "1.1.0"
helm:
releaseName: "kuberay"
ignoreMissingValueFiles: true
valuesObject:
resources: {}
destination:
namespace: 'kubeflow'
name: 'in-cluster'
syncPolicy:
automated:
prune: false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true

sparkOperator:
enabled: false
spec:
project: default
sources:
- chart: 'spark-operator'
repoURL: 'https://kubeflow.github.io/spark-operator'
targetRevision: "1.1.27"
helm:
releaseName: "spark-operator"
ignoreMissingValueFiles: true
valuesObject: {}
destination:
namespace: 'kubeflow'
name: 'in-cluster'
syncPolicy:
automated:
prune: false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true

0 comments on commit e651583

Please sign in to comment.