awakia / catchup

Issue based repository to catch up technologies and movements
5 stars 0 forks source link

kubeflow, ksonnet #73

Open awakia opened 5 years ago

awakia commented 5 years ago

縣くんがやってくれたもののコピー

Why

Kubeflow setup instructions.

What

Mostly followed the instructions written in https://codelabs.developers.google.com/codelabs/kubeflow-introduction/index.html.

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 時点では

あたりがデプロイされています。

awakia commented 5 years ago

localでkubernetesを立てる

brew install minikube
brew install virtualbox
minikube init

この状態で.kubeが書き変わるのでkubectlコマンドがlocalのを変更するようになる

awakia commented 5 years ago

https://qiita.com/ohtaman/items/05e4e117a81c7393d875

brew install ksonnet/tap/ks
awakia commented 5 years ago
$ 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
awakia commented 5 years ago
kube apply default
kube get all
kubectl port-forward service/tf-hub-lb 8080:80
open http://localhot:8080