forked from indigo-dc/orchestrator-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from grycap/devel
Devel
- Loading branch information
Showing
11 changed files
with
196 additions
and
77 deletions.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
inputs: | ||
dask_password: | ||
tab: Dask Data | ||
|
||
jupyterhub_token: | ||
tab: Dask Data | ||
|
||
dask_version: | ||
tab: Dask Data | ||
|
||
jupyterhub_image_name: | ||
tab: Dask Data | ||
|
||
tabs: | ||
- Dask Data | ||
|
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,89 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_0 | ||
|
||
imports: | ||
- ec3_custom_types: https://raw.githubusercontent.com/grycap/ec3/tosca/tosca/custom_types.yaml | ||
|
||
metadata: | ||
name: Daskhub | ||
display_name: Launch Daskhub on top of a Kubernetes Virtual Cluster | ||
icon: images/dask.png | ||
parents: | ||
- kubernetes.yaml | ||
|
||
description: TOSCA template for launching Daskhub on top of a Kubernetes Virtual Cluster. | ||
|
||
topology_template: | ||
|
||
inputs: | ||
|
||
dask_password: | ||
type: string | ||
description: Password for the Simple auth method in the Gateway | ||
default: dask_pass | ||
dask_version: | ||
type: string | ||
description: Daskhub version | ||
default: 2022.5.0 | ||
constraints: | ||
- valid_values: [ "2022.5.0", "2022.4.1", "2022.3.0", "2022.2.1" ] | ||
jupyterhub_token: | ||
type: string | ||
description: Jupyterhub auth token | ||
default: 11a8120f55c6992d819b9b33ef825120d9a752f738fca1d659c06b436053cd02 | ||
jupyterhub_image_name: | ||
type: string | ||
description: Jupyterhub singleuser image | ||
default: jupyterhub/k8s-singleuser-sample | ||
constraints: | ||
- valid_values: [ "jupyterhub/k8s-singleuser-sample", "pangeo/pangeo-notebook", "guillaumeeb/pangeo-ml-notebook" ] | ||
|
||
node_templates: | ||
|
||
dask: | ||
type: tosca.nodes.indigo.Helm.Chart | ||
properties: | ||
namespace: daskhub | ||
repository_name: dask | ||
repository_url: "https://helm.dask.org" | ||
name: daskhub | ||
values_file: | | ||
jupyterhub: | ||
proxy: | ||
service: | ||
type: ClusterIP | ||
scheduling: | ||
podPriority: | ||
enabled: true | ||
userPlaceholder: | ||
# Specify three dummy user pods will be used as placeholders | ||
replicas: 1 | ||
userScheduler: | ||
enabled: true | ||
singleuser: | ||
serviceAccountName: daskkubernetes | ||
dask-gateway: | ||
enabled: false | ||
gateway: | ||
auth: | ||
type: simple | ||
dask-kubernetes: | ||
enabled: true | ||
jupyterhub: | ||
hub: | ||
baseUrl: /jupyterhub/ | ||
ingress: | ||
enabled: true | ||
annotations: { kubernetes.io/ingress.class: nginx } | ||
values: | ||
jupyterhub.singleuser.image.name: { get_input: jupyterhub_image_name } | ||
jupyterhub.singleuser.image.tag: latest | ||
jupyterhub.proxy.secretToken: { get_input: jupyterhub_token } | ||
dask-gateway.gateway.auth.simple.password: { get_input: dask_password } | ||
requirements: | ||
- host: front | ||
- dependency: lrms_front_end | ||
|
||
outputs: | ||
pangeo_jupyter_hub_url: | ||
value: { concat: [ 'https://', get_attribute: [ front, public_address, 0 ], '/jupyterhub/' ] } | ||
|
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_0 | ||
|
||
imports: | ||
- ec3_custom_types: https://raw.githubusercontent.com/grycap/ec3/tosca/tosca/custom_types.yaml | ||
|
||
metadata: | ||
name: Kubeapps | ||
display_name: Launch Kubeapps on top of a Kubernetes Virtual Cluster | ||
icon: images/kubeapps-logo.png | ||
parents: | ||
- kubernetes.yaml | ||
|
||
description: TOSCA template for launching Kubeapps on top of a Kubernetes Virtual Cluster. | ||
|
||
topology_template: | ||
|
||
node_templates: | ||
|
||
kubeapps: | ||
type: tosca.nodes.indigo.Helm.Chart | ||
properties: | ||
namespace: kubeapps | ||
repository_name: bitnami | ||
repository_url: "https://charts.bitnami.com/bitnami" | ||
name: kubeapps | ||
values: | ||
ingress.enabled: "false" | ||
requirements: | ||
- host: front | ||
- dependency: lrms_front_end | ||
|
||
kubeapps_ingress: | ||
type: tosca.nodes.indigo.KubernetesObject | ||
properties: | ||
spec: | | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: kubeapps | ||
namespace: kubeapps | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- path: /kubeapps | ||
backend: | ||
service: | ||
name: kubeapps | ||
port: | ||
number: 80 | ||
pathType: Prefix | ||
requirements: | ||
- host: lrms_front_end | ||
|
||
outputs: | ||
kubeapps_endpoint: | ||
value: { concat: [ 'https://', get_attribute: [ front, public_address, 0 ], '/kubeapps/' ] } | ||
|
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