Open awakia opened 5 years ago
brew install minikube
brew install virtualbox
minikube init
この状態で.kube
が書き変わるのでkubectl
コマンドがlocalのを変更するようになる
https://qiita.com/ohtaman/items/05e4e117a81c7393d875
brew install ksonnet/tap/ks
$ ks init kubeflow
$ ks prototype list
NAME DESCRIPTION
==== ===========
io.ksonnet.pkg.configMap A simple config map with optional user-specified data
io.ksonnet.pkg.deployed-service A deployment exposed with a service
io.ksonnet.pkg.namespace Namespace with labels automatically populated from the name
io.ksonnet.pkg.single-port-deployment Replicates a container n times, exposes a single port
io.ksonnet.pkg.single-port-service Service that exposes a single port
$ ks registry add kubeflow github.com/kubeflow/kubeflow/tree/v0.3.2/kubeflow
$ ks pkg install kubeflow/core
INFO Retrieved 38 files
$ ks prototype list
NAME DESCRIPTION
==== ===========
io.ksonnet.pkg.ambassador Ambassador
io.ksonnet.pkg.centraldashboard centraldashboard
io.ksonnet.pkg.cert-manager Certificate generation on GKE.
io.ksonnet.pkg.cloud-endpoints Cloud Endpoint domain creation.
io.ksonnet.pkg.configMap A simple config map with optional user-specified data
io.ksonnet.pkg.deployed-service A deployment exposed with a service
io.ksonnet.pkg.echo-server A simple echo server.
io.ksonnet.pkg.google-cloud-filestore-pv Creates PV and PVC based on Google Cloud Filestore NFS
io.ksonnet.pkg.iap-ingress Ingress for IAP on GKE.
io.ksonnet.pkg.jupyterhub jupyterhub Component
io.ksonnet.pkg.metric-collector Service monitor for kubeflow on GCP.
io.ksonnet.pkg.namespace Namespace with labels automatically populated from the name
io.ksonnet.pkg.prometheus Prometheus Service.
io.ksonnet.pkg.single-port-deployment Replicates a container n times, exposes a single port
io.ksonnet.pkg.single-port-service Service that exposes a single port
io.ksonnet.pkg.spartakus spartakus component for usage collection
io.ksonnet.pkg.tf-job-operator A TensorFlow job operator.
$ ks pkg install kubeflow/tf-serving
INFO Retrieved 9 files
$ ks prototype list
NAME DESCRIPTION
==== ===========
io.ksonnet.pkg.ambassador Ambassador
io.ksonnet.pkg.centraldashboard centraldashboard
io.ksonnet.pkg.cert-manager Certificate generation on GKE.
io.ksonnet.pkg.cloud-endpoints Cloud Endpoint domain creation.
io.ksonnet.pkg.configMap A simple config map with optional user-specified data
io.ksonnet.pkg.deployed-service A deployment exposed with a service
io.ksonnet.pkg.echo-server A simple echo server.
io.ksonnet.pkg.google-cloud-filestore-pv Creates PV and PVC based on Google Cloud Filestore NFS
io.ksonnet.pkg.iap-ingress Ingress for IAP on GKE.
io.ksonnet.pkg.jupyterhub jupyterhub Component
io.ksonnet.pkg.metric-collector Service monitor for kubeflow on GCP.
io.ksonnet.pkg.namespace Namespace with labels automatically populated from the name
io.ksonnet.pkg.prometheus Prometheus Service.
io.ksonnet.pkg.single-port-deployment Replicates a container n times, exposes a single port
io.ksonnet.pkg.single-port-service Service that exposes a single port
io.ksonnet.pkg.spartakus spartakus component for usage collection
io.ksonnet.pkg.tf-job-operator A TensorFlow job operator.
io.ksonnet.pkg.tf-serving A TensorFlow serving deployment
io.ksonnet.pkg.tf-serving-aws A TensorFlow serving deployment
io.ksonnet.pkg.tf-serving-gcp A TensorFlow serving deployment
io.ksonnet.pkg.tf-serving-request-log tf-serving with request logging
kube apply default
kube get all
kubectl port-forward service/tf-hub-lb 8080:80
open http://localhot:8080
縣くんがやってくれたもののコピー
Why
Kubeflow setup instructions.
What
Mostly followed the instructions written in https://codelabs.developers.google.com/codelabs/kubeflow-introduction/index.html.
ks init ksonnet-kubeflow
ks registry add kubeflow github.com/kubeflow/kubeflow/tree/v0.3.0/kubeflow
apt-add-repository
みたいなもの?ks pkg install kubeflow/core@v0.3.0
vendor/kubeflow/core@...
というファイルができるks prototype list
ks generate jupyterhub jupyterhub
components/jupyterhub.jsonnet
というファイルができるks apply
kubectl apply
に相当する操作Currently, the kubeflow cluster is deployed on Kubernetes Engine in Wantedly QA project. CPU/GPU autoscaling is enabled.
You can see the UI of Kubeflow with a following command:
kubectl port-forward $(kubectl get pods --selector=service=ambassador -o jsonpath='{.items[0].metadata.name}') 8080:80
&open http://localhost:8080
.2018/10/18 時点では
ambassador
centraldashboard
jupyterhub
seldon
tf-job
あたりがデプロイされています。