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

[docs] - Fixing local installation examples #501

Merged
merged 1 commit into from Oct 28, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/local/README.md
Expand Up @@ -59,7 +59,7 @@ The following example uses a shared NFS server and a Helm chart for the installa
1. Run the following commands (provided Helm is installed):
```sh
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm install stable/nfs-server-provisioner --name nfsprov
helm install nfsprov stable/nfs-server-provisioner
```
2. Create a `PersistentVolumeClaim` (PVC) for a shared NFS volume: copy the [**nfs-pvc.yaml**](nfs-pvc.yaml) file to you cluster and run the following command:
```sh
Expand Down
10 changes: 3 additions & 7 deletions hack/local/mljupy.yaml
Expand Up @@ -22,15 +22,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: JUPYTER_ENABLE_LAB
value: "yes"
- name: MLRUN_DBPATH
value: "http://mlrun-api:8080"
- name: MLRUN_ARTIFACT_PATH
value: "/home/jovyan/data"
volumeMounts:
- mountPath: /home/jovyan/data
name: notebooks
name: storage
ports:
- containerPort: 8888
command: ["start-notebook.sh"]
Expand All @@ -41,9 +37,9 @@ spec:
- --NotebookApp.password=''
- --NotebookApp.default_url="/lab"
volumes:
- name: notebooks
- name: storage
persistentVolumeClaim:
claimName: nfsvol
claimName: nfs-pvc
---
kind: Service
apiVersion: v1
Expand Down
20 changes: 5 additions & 15 deletions hack/local/mlrun-local.yaml
Expand Up @@ -18,35 +18,26 @@ spec:
containers:
- name: mlrun-api
image: mlrun/mlrun-api:0.5.2
imagePullPolicy: Always
env:
- name: MLRUN_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MLRUN_LOG_LEVEL
value: ERROR
- name: MLRUN_HTTPDB__DB_TYPE
value: filerundb
- name: MLRUN_HTTPDB__DIRPATH
value: "/mlrun/db"
- name: MLRUN_HTTPDB__DATA_VOLUME
value: "/home/jovyan/data"
value: filedb
- name: DEFAULT_DOCKER_REGISTRY
value: "<set default registry url>"
- name: DEFAULT_DOCKER_SECRET
value: ""
ports:
- containerPort: 8080
command: ["python", "-m", "mlrun", "db"]
args: []
volumeMounts:
- mountPath: /home/jovyan/data
name: data
- mountPath: /mlrun/db
name: storage
volumes:
- name: data
- name: storage
persistentVolumeClaim:
claimName: nfsvol
claimName: nfs-pvc
serviceAccountName: mlrun-api
---
kind: Service
Expand Down Expand Up @@ -82,7 +73,6 @@ spec:
containers:
- name: mlrun-ui
image: mlrun/mlrun-ui:0.5.2
imagePullPolicy: Always
env:
- name: MLRUN_API_PROXY_URL
value: http://mlrun-api:8080
Expand Down
2 changes: 1 addition & 1 deletion hack/local/nfs-pvc.yaml
@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfsvol
name: nfs-pvc
spec:
storageClassName: "nfs" #the installed Chart just created this
accessModes:
Expand Down
14 changes: 2 additions & 12 deletions hack/mlrun-all.yaml
Expand Up @@ -18,18 +18,11 @@ spec:
containers:
- name: mlrun-api
image: mlrun/mlrun-api:0.5.2
imagePullPolicy: Always
env:
- name: MLRUN_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MLRUN_LOG_LEVEL
value: ERROR
- name: MLRUN_HTTPDB__DB_TYPE
value: sqldb
- name: MLRUN_HTTPDB__DIRPATH
value: "/mlrun/db"
- name: DEFAULT_DOCKER_REGISTRY
value: "<set default registry url>"
- name: V3IO_ACCESS_KEY
Expand All @@ -38,20 +31,18 @@ spec:
value: admin
ports:
- containerPort: 8080
command: ["python", "-m", "mlrun", "db"]
args: []
# UNCOMMENT TO ADD V3IO VOLUME + SET ACCESS KEY
# volumeMounts:
# - mountPath: /mlrun/db
# name: fs
# name: storage
# volumes:
# - flexVolume:
# driver: v3io/fuse
# options:
# accessKey: <access-key>
# container: users
# subPath: /admin
# name: fs
# name: storage
serviceAccountName: mlrun-api
---
kind: Service
Expand Down Expand Up @@ -87,7 +78,6 @@ spec:
containers:
- name: mlrun-ui
image: mlrun/mlrun-ui:0.5.2
imagePullPolicy: Always
env:
- name: MLRUN_API_PROXY_URL
value: http://mlrun-api:8080
Expand Down
13 changes: 2 additions & 11 deletions hack/mlrunapi.yaml
Expand Up @@ -18,14 +18,7 @@ spec:
containers:
- name: mlrun-api
image: mlrun/mlrun-api:0.5.2
imagePullPolicy: Always
env:
- name: MLRUN_LOG_LEVEL
value: ERROR
- name: MLRUN_HTTPDB__DB_TYPE
value: sqldb
- name: MLRUN_HTTPDB__DIRPATH
value: "/mlrun/db"
- name: DEFAULT_DOCKER_REGISTRY
value: "<set default registry url>"
- name: V3IO_ACCESS_KEY
Expand All @@ -34,20 +27,18 @@ spec:
value: admin
ports:
- containerPort: 8080
command: ["python", "-m", "mlrun", "db"]
args: []
# UNCOMMENT TO ADD V3IO VOLUME + SET ACCESS KEY
# volumeMounts:
# - mountPath: /mlrun/db
# name: fs
# name: storage
# volumes:
# - flexVolume:
# driver: v3io/fuse
# options:
# accessKey: <access-key>
# container: users
# subPath: /admin
# name: fs
# name: storage
serviceAccountName: mlrun-api
---
kind: Service
Expand Down
1 change: 0 additions & 1 deletion hack/mlrunui.yaml
Expand Up @@ -17,7 +17,6 @@ spec:
containers:
- name: mlrun-ui
image: mlrun/mlrun-ui:0.5.2
imagePullPolicy: Always
env:
- name: MLRUN_API_PROXY_URL
value: http://mlrun-api:8080
Expand Down