by Yun, Seok-joon
EKS &
Kubernetes
Static Server
vs
Cloud Server
Network Server
- CPU
- Disk (SSD, HDD)
- LAN Card
https://kr.seaicons.com/웹-서버-아이콘
Network Server
- CPU
- Disk (SSD, HDD)
- LAN Card
https://kr.seaicons.com/웹-서버-아이콘
너의 이름은 ? 172.68.0.250
Network Server
- CPU
- Disk (SSD, HDD)
- LAN Card
https://kr.seaicons.com/웹-서버-아이콘
너의 이름은 ? 172.68.0.250
고장나면 ? 고쳐써야지
Network Server
- CPU
- Disk (SSD, HDD)
- LAN Card
https://kr.seaicons.com/웹-서버-아이콘
http://catory.kr/fcNews/7009
너의 이름은 ? 172.68.0.250
고장나면 ? 고쳐써야지
애완동물
Cloud Server
EC2
(Amazon Elastic Compute Cloud)
Cloud Server
EC2 Block
Storage
Network
Interface
Subnet
Cloud Server
EC2 Block
Storage
Network
Interface
Subnet
10.0.0.0/19
VPC
Availability Zone 1 Availability Zone 2
- Region : ap-northeast-2
- Zone : a, c
Subnet
Cloud Server
EC2 Block
Storage
Network
Interface
Subnet
10.0.0.0/19
VPC
Availability Zone 1 Availability Zone 2
IAM
Key
Role
Security
Group
- Key : Instance로 직접 연결
- Role : AWS의 다른 Resource에 접근을 허용
- Security Group : protocol, port 허용
EC2로 접속하기 위한 최소한의 Resource
Subnet
Cloud Server
EC2 Block
Storage
Network
Interface
Subnet
10.0.0.0/19
VPC
Availability Zone 1 Availability Zone 2
Route
Table
Internet GatewayLoad Balancing
Auto Scaling Group
IAM
Key
Role
Security
Group
Subnet
Cloud Server
EC2 Block
Storage
Network
Interface
Subnet
10.0.0.0/19
VPC
Availability Zone 1 Availability Zone 2
Route
Table
Internet GatewayLoad Balancing
Auto Scaling Group
IAM
Key
Role
Security
Group
너의 이름은 ?
ec2-13-125-30-136.ap-northeast-2.
compute.amazonaws.com
고장나면 ?
Terminate &
Launch new instance
Subnet
Cloud Server
EC2 Block
Storage
Network
Interface
Subnet
10.0.0.0/19
VPC
Availability Zone 1 Availability Zone 2
Route
Table
Internet GatewayLoad Balancing
Auto Scaling Group
IAM
Key
Role
Security
Group
너의 이름은 ?
ec2-13-125-30-136.ap-northeast-2.
compute.amazonaws.com
고장나면 ?
Terminate &
Launch new instance
가축
Docker
https://subicura.com/2017/01/19/docker-guide-for-beginners-1.html
Docker Image to Cloud Server
EC2에서 Docker Build
EC2
Docker Image to Cloud Server
ECR에 Docker Image 등록
EC2Container
Registry
Docker Image to Cloud Server
EC2대신 ECS 이용
Container
Service
Container
Registry
Docker Image to Cloud Server
ECS대신 EKS 이용
Container
Service
Container
Registry
Kubernetes & EKS
https://www.slideshare.net/awskorea/aws-kubernetes-aws-aws-devday2018
- Cluster
- Pod 관리
- Worker Node
- Pod 싱행
- Pod
- n개의 Container 관리
- Service
- Pod의 단일 Endpoint 제공
- Deployment
- Pod의 배포 및 개수 관리
- Horizontal Pod AutoScaler
- Pod 개수 조정
- Metrics Server 필요
- yaml or json 으로 관리
https://kubernetes.io/ko/docs/concepts/overview/working-with-objects/kubernetes-objects
- Cluster
- EKS Cluster
- Worker Node
- EC2 + Auto Scaling Group
- Service
- Elastic Load Balancer
- k8s에 명령을 내리는 CLI Tool
- ~/.kube/config 파일을 EKS용으로 설정
kubectl
- k8s용 package manager
- chart를 이용하여 Pod 배포
- Metrics Server
- Cluster AutoScaler
Helm
- tiller server (pod) 배포
- helm init
- chart를 이용해서 pod 배포
Helm
Q & A
감사합니다.

Eks.introduce