ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
RANCHER ????
???(Megazone)
2018-05-15
AWSKRUG ???? ???
Rancher
? Rancher? ???? ??????? ???
? Rahcner Labs?? 2014??? ??
? ??????????
? ???? ?? ?? ? ??
? ?? ???
? ?? ??
? ??? ??? ??
? ?? ?? ??? ????/??
? ????? ?? ? ???? ?? ??
??????? ?? ?? :
http://www.mantech.co.kr/container_orchestration/
https://www.redhat.com/ko/topics/containers/what-is-kubernetes
Pet vs Cattle
???? ????? ??? ????? ??? ???? ????
VS
http://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/
? Rancher? ??? ??? ??????
? ??? Spinnaker? ?? ??? ??? ??? ????? ?
?? ???
? DevOps Korea ?? ¨C ?? ?? ?? / Ralf Yang? ????
Rahcher? ?????? ??
=> Docker ?? ?? : https://bit.ly/2Kr20wX
? ?? ??-????/DevOps/Micro-Service-Architecture? ?
???? ?? ???? ?? ???? ??
???.. AWS?? ECS(EC2 Container Service)? ?? ????
? ???? ??? ? ????
? ?? ???? ?-??? ??? ??? ????? ???? ??
? ??? ?? ????? ????? ?? ??
? ??? ??? ??? ?? ?-???? ???? ??? ???
? AWS? ECS? ?? ??? ??? ?
? ECS?? Rahcner? UI? ??? ? ? ???? ???
??? ???? ??? ???? ?? ?? ??
? Windows7 + boot2docker + VirtualBox(Ubuntu)
? Local ?? PC - Ubuntu16.04
? AWS EC2
? AWS LightSail
? AWS ECR ?? ??
? AWS Route53 + Let¡¯s Encrypt Docker ?? HTTPS ??? ??
Rancher 1.0
? cattle, Docker Compose, Docker Swarm, MESOS, kubernetes
??
https://rancher.com/cattle-swarm-kubernetes-side-side/
? AWS, Azure, DigitalOcean, Custom ?? ??
? 1.6 (Stable) ???? ??
? ??? ??? ???? ??
? (Rancher ?? ? ??? ?????? ?? ??? Docker ??)
Rancher 1.0 ????
Rancher 2.0
? 2018? 5? 1? GA
? "Kubernetes Everywhere"
? Rancher Kubernetes Engine (RKE) ¨C vSphere ????, ?? ?? ?? ? ???? ?
??? Kubernetes ????? ???? ?? ?? ??
? ?? ???? ?? ¨C GKE, EKS ? AKS ? ?? ???? ??? Kubernetes ?????
?? Kubernetes (Canonical Distribution of Kubernetes), Kops ? Kubespray? ?? ?
? ??? ???? ?? ? ?? Kubernetes ????? ?? ? ? ??
? ?? ???? ???? ?? - Rancher 2.0? ???? Kubernetes? ??? ????
??? ? ??? ?????? ?????. ?? ????? ??? Helm ???? ?
? (The package manager for Kubernetes, https://helm.sh/), CI / CD ??, ??(Alert)
? ?? ??? ??.
Rancher 2.0 ????
???????(°ÙÒŠ¶ø²»ÈçÒ»×÷)
? ??? ?? ?? ????!!
? ?? ??? ??? AWS Lightsail?.. ??? ?? ??? ??!!
Lightsail ????? ?? ???? ??? ????? ??? ?????. ?? ??? Lightsail ????? ?
??? Lightsail ????? ??? ? ??? ???? ?? ???? ??? ??? ?????. ?? ??, ?
? ??? Lightsail ??? ? ?? 100?? ?? ???? ?? 67??(100*0.0067)? ?????.
Docker ?? (Ubuntu16.04 ??)
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-
16-04
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker
sudo docker ps
*PDF?? ??? ??? -- ?? ??? ¨C 1?? ???? ??? ????. ???? ???? ??????.
Rancher Server ??? ?? ??
? Rancher Server - Single Container (non-HA) <= ??????
? Rancher Server - Single Container (non-HA) - External database
? Rancher Server - Single Container (non-HA)- Bind mounted
MySQL volume
? Rancher Server - Full Active/Active HA
? Rancher Server - Using ELB in AWS
? Rancher Server - AD/OpenLDAP using TLS
? Rancher Server - HTTP Proxy
? Rancher Server - MySQL over SSL
https://rancher.com/docs/rancher/v1.6/en/installing-rancher/installing-server/
Rancher 1.0 QuickStart
https://rancher.com/docs/rancher/v1.6/en/installing-rancher/installing-server/
1. Rancher Server ??
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
8080 ?? ??
3. http://<server_ip>:8080 ?? ??
4. Infrastructure ¨C Add Host ¨C Custom
UDP 500, 4500 ?? ??
5. sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v
/var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.10
http://<server_ip>:8080/v1/scripts/E81XXXXXXXXXXXXXX097:XXXXXXXX00000:ejnJPKgRRXXXX
XXbn543HcOuns
?? ?? ???? ?? ? Rancher Agent ??? ???? ??
6. Hosts ??
*PDF?? ??? ??? -- ?? ??? ¨C 1?? ???? ??? ????.
??? ???? ???? ???? ??????.
Rancher 2.0 QuickStart
https://rancher.com/docs/rancher/v2.x/en/quick-start-guide/
1. ??? ???? ?? - ??? 16.04 64??, 4?? ??? ??? ??.
Docker ?? 1.12.6, 1.13.1 ?? 17.03.2 ??(? ? ????? ??? ??)
2. Rancher Server ??
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
3. https://<server_ip> ? ?? (https, 443 ?? ??)
4. ????
5. Add Cluster ¨C Custom ¨C etcd, control, worker ?? ¨C ???? ?? ? Agent ???? ??
6. sudo docker run -d --privileged --restart=unless-stopped --net=host -v
/etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.0.0 --server
https://<server_ip> --token XXXXXXXXXXltts9bp6lmrjhdmr2l2zdmgbvqpxpzb7hkvg2zszv998 --
ca-checksum XXXXXXXXXX7568afa3bb987764de787bb9173fe2334b0f60d27cb835549f6f56 --
etcd --controlplane --worker
*PDF?? ??? ??? -- ?? ??? ¨C 1?? ???? ??? ????.
??? ???? ???? ???? ??????.
Rancher Tranning (?? ??? ??)
https://rancher.com/training/
https://www.udemy.com/devops-docker-rancher-cd
Q&A
? Rancher? ??????
? ??? ??, Enterprise Edition? ??? ???? ????.
? ?, ?????? ??? ??? ??? ??? ? ?? Enterprise Edition? ???? ? ? ????.
? Rancher 2.0 ???? Kubernetes? ??? ??????
? Rancher 2.0: Technical Architecture? ?? ??????. https://bit.ly/2L87AWa
? ?? : https://qiita.com/cyberblack28/items/bc01122a634150335b6f
Q&A
? Rancher CI/CD Pipeline ? ?????
? ??? ?? CI/CD Pipeline ??? ???????.
? /ShannonWilliams14/supercharing-cicd-with-gitlab-and-rancher-june-2017-online-meetup
? https://www.youtube.com/watch?v=KItSHiMXS8E
? https://rancher.com/building-super-fast-docker-cicd-pipeline-rancher-droneci/
? https://rancher.com/developing-commit-based-cicd-system-using-rancher/
?????
???? ? ?? ???? ??? Rancher?
???? ????? ??????

More Related Content

[AWSKRUG ???? ???] Rancher ?? ??

  • 2. Rancher ? Rancher? ???? ??????? ??? ? Rahcner Labs?? 2014??? ?? ? ?????????? ? ???? ?? ?? ? ?? ? ?? ??? ? ?? ?? ? ??? ??? ?? ? ?? ?? ??? ????/?? ? ????? ?? ? ???? ?? ?? ??????? ?? ?? : http://www.mantech.co.kr/container_orchestration/ https://www.redhat.com/ko/topics/containers/what-is-kubernetes
  • 3. Pet vs Cattle ???? ????? ??? ????? ??? ???? ???? VS http://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/
  • 4. ? Rancher? ??? ??? ?????? ? ??? Spinnaker? ?? ??? ??? ??? ????? ? ?? ??? ? DevOps Korea ?? ¨C ?? ?? ?? / Ralf Yang? ???? Rahcher? ?????? ?? => Docker ?? ?? : https://bit.ly/2Kr20wX ? ?? ??-????/DevOps/Micro-Service-Architecture? ? ???? ?? ???? ?? ???? ??
  • 5. ???.. AWS?? ECS(EC2 Container Service)? ?? ???? ? ???? ??? ? ???? ? ?? ???? ?-??? ??? ??? ????? ???? ?? ? ??? ?? ????? ????? ?? ?? ? ??? ??? ??? ?? ?-???? ???? ??? ??? ? AWS? ECS? ?? ??? ??? ? ? ECS?? Rahcner? UI? ??? ? ? ???? ???
  • 6. ??? ???? ??? ???? ?? ?? ?? ? Windows7 + boot2docker + VirtualBox(Ubuntu) ? Local ?? PC - Ubuntu16.04 ? AWS EC2 ? AWS LightSail ? AWS ECR ?? ?? ? AWS Route53 + Let¡¯s Encrypt Docker ?? HTTPS ??? ??
  • 7. Rancher 1.0 ? cattle, Docker Compose, Docker Swarm, MESOS, kubernetes ?? https://rancher.com/cattle-swarm-kubernetes-side-side/ ? AWS, Azure, DigitalOcean, Custom ?? ?? ? 1.6 (Stable) ???? ?? ? ??? ??? ???? ?? ? (Rancher ?? ? ??? ?????? ?? ??? Docker ??)
  • 9. Rancher 2.0 ? 2018? 5? 1? GA ? "Kubernetes Everywhere" ? Rancher Kubernetes Engine (RKE) ¨C vSphere ????, ?? ?? ?? ? ???? ? ??? Kubernetes ????? ???? ?? ?? ?? ? ?? ???? ?? ¨C GKE, EKS ? AKS ? ?? ???? ??? Kubernetes ????? ?? Kubernetes (Canonical Distribution of Kubernetes), Kops ? Kubespray? ?? ? ? ??? ???? ?? ? ?? Kubernetes ????? ?? ? ? ?? ? ?? ???? ???? ?? - Rancher 2.0? ???? Kubernetes? ??? ???? ??? ? ??? ?????? ?????. ?? ????? ??? Helm ???? ? ? (The package manager for Kubernetes, https://helm.sh/), CI / CD ??, ??(Alert) ? ?? ??? ??.
  • 11. ???????(°ÙÒŠ¶ø²»ÈçÒ»×÷) ? ??? ?? ?? ????!! ? ?? ??? ??? AWS Lightsail?.. ??? ?? ??? ??!! Lightsail ????? ?? ???? ??? ????? ??? ?????. ?? ??? Lightsail ????? ? ??? Lightsail ????? ??? ? ??? ???? ?? ???? ??? ??? ?????. ?? ??, ? ? ??? Lightsail ??? ? ?? 100?? ?? ???? ?? 67??(100*0.0067)? ?????.
  • 12. Docker ?? (Ubuntu16.04 ??) https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu- 16-04 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update apt-cache policy docker-ce sudo apt-get install -y docker-ce sudo systemctl status docker sudo docker ps *PDF?? ??? ??? -- ?? ??? ¨C 1?? ???? ??? ????. ???? ???? ??????.
  • 13. Rancher Server ??? ?? ?? ? Rancher Server - Single Container (non-HA) <= ?????? ? Rancher Server - Single Container (non-HA) - External database ? Rancher Server - Single Container (non-HA)- Bind mounted MySQL volume ? Rancher Server - Full Active/Active HA ? Rancher Server - Using ELB in AWS ? Rancher Server - AD/OpenLDAP using TLS ? Rancher Server - HTTP Proxy ? Rancher Server - MySQL over SSL https://rancher.com/docs/rancher/v1.6/en/installing-rancher/installing-server/
  • 14. Rancher 1.0 QuickStart https://rancher.com/docs/rancher/v1.6/en/installing-rancher/installing-server/ 1. Rancher Server ?? sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server 8080 ?? ?? 3. http://<server_ip>:8080 ?? ?? 4. Infrastructure ¨C Add Host ¨C Custom UDP 500, 4500 ?? ?? 5. sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.10 http://<server_ip>:8080/v1/scripts/E81XXXXXXXXXXXXXX097:XXXXXXXX00000:ejnJPKgRRXXXX XXbn543HcOuns ?? ?? ???? ?? ? Rancher Agent ??? ???? ?? 6. Hosts ?? *PDF?? ??? ??? -- ?? ??? ¨C 1?? ???? ??? ????. ??? ???? ???? ???? ??????.
  • 15. Rancher 2.0 QuickStart https://rancher.com/docs/rancher/v2.x/en/quick-start-guide/ 1. ??? ???? ?? - ??? 16.04 64??, 4?? ??? ??? ??. Docker ?? 1.12.6, 1.13.1 ?? 17.03.2 ??(? ? ????? ??? ??) 2. Rancher Server ?? sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher 3. https://<server_ip> ? ?? (https, 443 ?? ??) 4. ???? 5. Add Cluster ¨C Custom ¨C etcd, control, worker ?? ¨C ???? ?? ? Agent ???? ?? 6. sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.0.0 --server https://<server_ip> --token XXXXXXXXXXltts9bp6lmrjhdmr2l2zdmgbvqpxpzb7hkvg2zszv998 -- ca-checksum XXXXXXXXXX7568afa3bb987764de787bb9173fe2334b0f60d27cb835549f6f56 -- etcd --controlplane --worker *PDF?? ??? ??? -- ?? ??? ¨C 1?? ???? ??? ????. ??? ???? ???? ???? ??????.
  • 16. Rancher Tranning (?? ??? ??) https://rancher.com/training/
  • 18. Q&A ? Rancher? ?????? ? ??? ??, Enterprise Edition? ??? ???? ????. ? ?, ?????? ??? ??? ??? ??? ? ?? Enterprise Edition? ???? ? ? ????. ? Rancher 2.0 ???? Kubernetes? ??? ?????? ? Rancher 2.0: Technical Architecture? ?? ??????. https://bit.ly/2L87AWa ? ?? : https://qiita.com/cyberblack28/items/bc01122a634150335b6f
  • 19. Q&A ? Rancher CI/CD Pipeline ? ????? ? ??? ?? CI/CD Pipeline ??? ???????. ? /ShannonWilliams14/supercharing-cicd-with-gitlab-and-rancher-june-2017-online-meetup ? https://www.youtube.com/watch?v=KItSHiMXS8E ? https://rancher.com/building-super-fast-docker-cicd-pipeline-rancher-droneci/ ? https://rancher.com/developing-commit-based-cicd-system-using-rancher/
  • 20. ????? ???? ? ?? ???? ??? Rancher? ???? ????? ??????