-
Notifications
You must be signed in to change notification settings - Fork 1
/
kubeflow.sh.broken
62 lines (53 loc) · 2.23 KB
/
kubeflow.sh.broken
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
NAMESPACE=kubeflow
oc new-project ${NAMESPACE}
oc project ${NAMESPACE}
# Set permissions for service accounts
oc adm policy add-scc-to-user anyuid -z ambassador -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z argo -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z argo-ui -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z builder -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z centraldashboard -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z default -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z deployer -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z jupyter-notebook -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z jupyter-web-app -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z katib-ui -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z meta-controller-service -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z metrics-collector -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z ml-pipeline -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z ml-pipeline-scheduledworkflow -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z notebook-controller -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z pipeline-runner -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z pytorch-operator -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z studyjob-controller -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z tf-job-dashboard -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z tf-job-operator -n${NAMESPACE}
oc adm policy add-scc-to-user anyuid -z vizier-core -n${NAMESPACE}
###### Possible commands
export KFAPP=kubeflow
kfctl init ${KFAPP} --platform 'none'
kfctl help init
mkdir kubeflow
kfctl init ${KFAPP} --platform 'openshift' -V
rm -rf kubeflow/
mkdir kubeflow
kfctl init ${KFAPP} --verbose
ls -l kubeflow/
cd kubeflow/
vim app.yaml
kfctl generate all -V
oc get sa
kfctl apply all -V
which ks
rpm -qf /usr/local/bin/ks
vim app.yaml
kfctl apply all -V
grep -i pvc app.yaml
grep -i mysql-pv-claim app.yaml
find . -type f -exec grep -Hi mysql-pv-claim '{}' ';'
vim ./ks_app/vendor/kubeflow/modeldb/modeldb.libsonnet
vim ./ks_app/vendor/kubeflow/pipeline/storage.libsonnet
oc expose svc/centraldashboard
oc expose svc/jupyter-web-app
oc expose svc/katib-ui