Professional Documents
Culture Documents
Containers
Container Service in Cloud(AWS)
Containers make it easy to share CPU, memory, storage, and network resources at the operating
systems level and offer a logical packaging mechanism in which applications can be abstracted from the
environment in which they actually run.
Hardware Hardware
Container on AWS
Container on AWS shall be divided into three
category. Registry (ECR)
Orchestration
(ECS,EKS)
Docker is an operating system for containers. Similar to how a virtual machine
virtualizes (removes the need to directly manage) server hardware, containers virtualize the
operating system of a server.
HTTP traffic
Web server
Application server
Serve content from the
Fast CGI, Passenger
disk
How to Install nginx container on the EC2 linux
machine
Steps:
Step 01 : Open EC2 console and Launch an Instance. (Using Linux AMI & .ppk
file)
Step 02 : After Launched the instance, Connect with putty.
Step 03 : Follow the below five steps and command to install nginx.
01. Update the Linux Machine.
# sudo yum update
02. Enter the below command
# sudo vim /etc/yum.repos.d/nginx.repo
3. Add the following to vim (Add the following package to vim editor in your linux machine)
[nginx]
name=nginx repo
baseurl=https://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
Now we check our web browser is properly working or not by using Public
IPv4
Ectd: The etcd data store is the Kubernetes backend, which contains the cluster information in
key-value pairs.
Kube-apiserver: The API server is the Kubernetes frontend that exposes the Kubernetes API. It
also validates and configures data for the API objects, including pods, services,
deployments, replication controllers, and others.
kube-scheduler: The kube-scheduler is a control plane component which mainly assigns
the unscheduled pods to the relevant node based on its memory usage.
cloud-controller-manager: The cloud controller manager lets you link your cluster into
your cloud provider's API, and separates out the components that interact with that
cloud platform from components that only interact with your cluster.
• Worker Node:
A worker node is a node that runs the application in a cluster and reports to a control plane. The
main responsibilities of a worker node is to process data stored in the cluster and handle networking to
ensure traffic between the application across the cluster and outside of the cluster are properly facilitated.
Kubelet: The kubelet takes a set of PodSpecs that are provided through various mechanisms and ensures
that the containers described in those PodSpecs are running and healthy.
kube-proxy: kube-proxy maintains network rules on nodes. These network rules allow network
communication to your Pods from network sessions inside or outside of your cluster.
Container runtime: Kubernetes supports container runtimes such as containerd, CRI-O, and any other
implementation of the Kubernetes CRI (Container Runtime Interface).
Steps to Create Cluster in Kubernetes:
• AmazonEC2FullAccess
• IAMFullAccess
• AmazonS3FullAccess
• AmazonVPCFullAccess
• Route53FullAccess (Optional)
2. Create a new instance to use as your CI host. This node will deal with provisioning and tearing
down the cluster.
This instance can be small (t2.micro for example).
When creating it, assign the IAM role created in step 1.
Once created, download ssh keys (.pem file). Ensure permissions are restrictive on the file:
# chmod 400 name.pem