rke + rancher 2.0

Download RKE + Rancher 2.0

Post on 21-Jan-2018

143 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

  1. 1. Date :2017.12.04 Location :Rancher Night in Ebisu RKE & Rancher2.0
  2. 2. Community: Twitter:cyberblack28 Hobby1: Music,Live,FES ! ! Hobby2: Take a picture ! ! https://www.flickr.com/photos/cyberblack/ Job: Infrastructure Engineer Frontend Engineer Technology Evangelist Profile
  3. 3. Rancher Partner Network 20177Rancher Labs
  4. 4. 1. Whats RKE ? Agenda 2. Practice RKE
  5. 5. 1. Whats RKE RancherOS
  6. 6. Whats RKE RKERancher Kubernetes Engine kubernetes
  7. 7. Whats RKE Announcing RKE, a Lightweight Kubernetes Installer KopsKubespray RKE 1. Kubernetes 2. Rancher1.6kubernetes Sheng Liang on Nov 29, 2017
  8. 8. 2. Practice RKE Rancher
  9. 9. Practice RKE 1. 2. RKE 3. RKE 4. Rancher2.0 Serverkubernetes cluster Internet RKE Rancher Server2.0
  10. 10. 2.GCE4Docker $ curl https://releases.rancher.com/install-docker/1.12.6.sh | sh 1. GCE4 asia-northeast1-c Ubuntu16.04 LTS 100GB HTTP HTTPS Rancher2.0 Server8080 3.Kubernetes Cluster3GCEsudodocker # usermod -aG docker ubuntu
  11. 11. 4.Kubernetes Cluster3GCE # sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:preview 5.Rancher2.0 Server1GCERancher2.0 Technical Preview
  12. 12. RKE 1. GitHubRKE v0.0.7-dev(https://github.com/rancher/rke/releases) rke_Darwin-amd64 2.rke_Darwin-amd64.dms $ mv rke_darwin-amd64.dms rke 3.rke $ chmod +x rke 4.rke $ ./rke
  13. 13. RKE rke NAME: rke - Rancher Kubernetes Engine, Running kubernetes cluster in the cloud USAGE: rke [global options] command [command options] [arguments...] VERSION: v0.0.7-dev AUTHOR(S): Rancher Labs, Inc. COMMANDS: up Bring the cluster up remove Teardown the cluster and clean cluster nodes version Show cluster Kubernetes version config, config Setup cluster configuration help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --debug, -d Debug logging --help, -h show help --version, -v print the version
  14. 14. RKE 1.cluster.yml $ vim clulster.yml ---------------------------------------------------- nodes: - address: GCE1IP user: ubuntu role: [controlplane] - address: GCE2IP user: ubuntu role: [worker] - address: GCE3IP user: ubuntu role: [etcd] services: etcd: image: quay.io/coreos/etcd:latest kube-api: image: rancher/k8s:v1.8.3-rancher2 kube-controller: image: rancher/k8s:v1.8.3-rancher2 scheduler: image: rancher/k8s:v1.8.3-rancher2 kubelet: image: rancher/k8s:v1.8.3-rancher2 kubeproxy: image: rancher/k8s:v1.8.3-rancher2 ---------------------------------------------------- :wq
  15. 15. RKE 2.Kubernetes cluster $ ./rke up INFO[0000] Building Kubernetes cluster INFO[0000] [ssh] Checking private key INFO[0129] Finished building Kubernetes cluster successfully 3.Kubectl $ cp .kube_config_cluster.yml ~/.kube/config kubernetes cluster.kube_config_cluster.yml ~/.kube/config $ kubectl get nodes kubectlnode
  16. 16. Rancher2.0 Serverkubernetes cluster 1.Rancher2.0 Server http://IP:8080
  17. 17. Rancher2.0 Serverkubernetes cluster 2.Welcome to Rancher! Got It
  18. 18. Rancher2.0 Serverkubernetes cluster 3.Use existing kubernetesSelect
  19. 19. Rancher2.0 Serverkubernetes cluster 4.Save 5.kubectlClose
  20. 20. $ kubectl apply -f http://35.200.94.87:8080/v3/scripts/48F59787B672006E81D1:1483142400000:r6Vuu7tkmuxcuGKszMgvU4HYg.yaml Rancher2.0 Serverkubernetes cluster 6.kubectl 7.Rancher2.0 Server
  21. 21. Document of RKE Announcing RKE, a Lightweight Kubernetes Installer http://rancher.com/announcing-rke-lightweight-kubernetes-installer/ An Introduction to Rancher Kubernetes Engine (RKE) http://rancher.com/an-introduction-to-rke/ KubernetesRKE https://goo.gl/XdRZxr Rancher Kubernetes EngineRKE https://goo.gl/CjRB4K Rancher Labs Official Others RKE http://tsukaman.hateblo.jp/entry/2017/12/01/111604
  22. 22. Rancher Labs Sessions at kubeCon Building Helm Charts From the Ground Up: An introduction to Kubernetes [I] Alena Prokharchyk 12/7 4:35pm 5:10pm Webhooks for Automated Updates [B] Rajashree Mandaogane 12/8 11:55am 12:30am
  23. 23. Rancher2.0 + kubernetes #2 1216015 https://rancherjp.connpass.com/event/73528/ Rancher 2.0
  24. 24. Thank you for your attention !!