Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 1.83 KB

README.md

File metadata and controls

32 lines (30 loc) · 1.83 KB

Workshops for microservices

Quick start

  • Access Kubernetes cluster by using command line binary kubectl and credential file config.
$ mkdir eta; cd eta
$ wget http://10.128.112.16:8087/kubernetes/v1.1.2/kubectl
$ sudo chmod +x kubectl
$ wget http://10.128.112.16:8087/tyd/v0.8/srv/kube-apiserver/config
$ export KUBECONFIG="./config"
$ ./kubectl version
Client Version: version.Info{Major:"1", Minor:"0", GitVersion:"v1.1.2", GitCommit:"388061f00f0d9e4d641f9ed4971c775e1654579d", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"0", GitVersion:"v1.1.2", GitCommit:"388061f00f0d9e4d641f9ed4971c775e1654579d", GitTreeState:"clean"}

Http server

  1. Create http server by compiling golang binary.
  2. Dockerize http server binary.
  3. Push image into private docker registry.
  4. Access Kubernetes cluster.
  5. Create Kubernetes replica-controller and service setup files.
  6. Deploy http server on Kubernetes.
  7. Scale http server.

Guestbook

  1. Create frontend, master/slave redis setup files.
  2. Deploy guestbook.
  3. Scale guestbook.