AWS KUBERNETES SERVICE
AWS +KUBERNETES

AWS KUBERNETES SERVICE

TASK :

=> We are going to going create a kubernetes cluster using EKS and by using kubernetes we deploy two deployments say, drupal (For CMS site..) and Mysql database(to store ) to store your drupal sites data.

=>Next we integrate our EKS cluster with further aws services such ELB , EFS to make to balance the load and make our Deployment's data persistent.

=>Next we are going to create a serverless architecture provided by EKS with kubernetes.

REQUIREMENT:

=>AWS user account - with Administration access or IAM user with administrative service.

=>Kubernetes environment

=>AWS cli

Some basic terms :

What is KUBERNETES?

Kubernetes (commonly stylized as k8s) is an open-source container - orchestration system for automating application deployment, scaling, and management. It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation.

No alt text provided for this image

What is AWS kubernetes?

Kubernetes on AWS Open source container management and orchestration Kubernetes is open source software that allows you to deploy and manage containerized applications at scale. Kubernetes manages clusters of Amazon EC2 compute instances and runs containers on those instances with processes for deployment, maintenance, and scaling.

No alt text provided for this image


Solution:

1.go to browser and search minikube and install it.

2.than set the path and configure kubernetes kubectl command

No alt text provided for this image

3.than login to AWS account and create a user who have administrative services(bad practice because of security reason)

No alt text provided for this image
No alt text provided for this image
give administrative service
download csv file ,it contains password , secret key

4.than go CLI and type "aws configure" write the access and secret key .

No alt text provided for this image

5.you can create cluster using CLI or GUI ,eksctl command ~GUI=EKS ->give cluster name ->create cluster ->configure cluster ->create role or select role->next and review, your cluster is created using gui. ~CLI=write the command "aws eks create-cluster" and configure it. ~As for fully automation eksctl command is very effective from view community. And for creating cluster using eksctl command we have to write the code .yml file.

i)download eksctl command and set the path.

No alt text provided for this image
No alt text provided for this image
by the command eksctl command we are sure that eksctl command is working normally

ii)write the code in cluster.yml file and run it "eksctl create cluster -f cluster.yml.

No alt text provided for this image
No alt text provided for this image

iii)check our cluster


No alt text provided for this image
No alt text provided for this image


6After cluster is created we willl update kubeconfig file so that we can access cluster from our local system using kubectl command .

No alt text provided for this image


No alt text provided for this image

7.now creating a namespace where we will launch wordpress and mysql pods and integrate them, also it’s good practice to separate every work by created there specific namespace.

i)creating an namespace using command "kubectl create ns wp-mysql"

No alt text provided for this image

ii)now to config the namespace and in this article i am using default config by using command "kubectl config set-context --current --namespace=wp-mysql"

No alt text provided for this image

8.For mounting our storage to nodes in any region we create an EFS storage.

No alt text provided for this image
No alt text provided for this image

8.creating efs-provisioner following is the YAML code:

No alt text provided for this image
No alt text provided for this image

9.creating cluster-roll-binding using following YAML code:

No alt text provided for this image
No alt text provided for this image

9.creting PVC which will be needed for data persistency inside pods we have to create a Storage Class from where EFS will manage providing data to PVC for this run the following YAML code:

No alt text provided for this image
No alt text provided for this image

10.install the amazon-efs-util in all the running instances

No alt text provided for this image
No alt text provided for this image

11.now attach the efs to all the instances  we will run a Pod using YAML code and configure the Database which will provide service as we run the code. A PVC has been attached to the Deployment Service Provided by the code. The MySQL_Deployment.yml code is follows:

run using eksctl command

12.After this we will create a wordpress_Deployment which will directly communicate with Client and linked with MySQL pod to store data there. 

run it using eksctl command

13.for managing the Model of MySQL and Wordpress in which both are incomplete without each other we have to create a Kustomization code and to run it we will run command : "kubectl apply –k" .

No alt text provided for this image
No alt text provided for this image

Using ELB DNS name we can login to the WordPress Account and start creating blog.

No alt text provided for this image

thanku you

Mohit Kumar Pareek

Student at Poornima University

4 年

Great work????

Akanksha Singh, RHCA

DevOps Engineer @ Paytm | RHCA Level 1 Certified | Infrastructure Development, Machine Learning and AI

4 年

Amazing...????

要查看或添加评论,请登录

Vijay Yadav的更多文章

  • JAVA VIRTUAL MACHINE(JVM)

    JAVA VIRTUAL MACHINE(JVM)

    A Java virtual machine is a virtual machine that enables a computer to run Java programs as well as programs written in…

  • How IBM using quantum computing

    How IBM using quantum computing

    What is quantum computing? Quantum computing is a rapidly-emerging technology that harnesses the laws of quantum…

  • How Kubernetes is used in Industries and what use cases solved by Kubernetes

    How Kubernetes is used in Industries and what use cases solved by Kubernetes

    Kubernetes is an open-source container-orchestration system for automating computer application deployment, scaling…

  • Industry Use case on Automation Using Ansible

    Industry Use case on Automation Using Ansible

    This session was organized by two experts from Redhat => Sreejith Anujan The Principal Instructor at Red Hat…

  • How ansible helps in solving challenges faced by big industries?

    How ansible helps in solving challenges faced by big industries?

    What is Ansible? Ansible is an open source automation platform. It is a simple automation language that can perfectly…

    2 条评论
  • Create High Availability Architecture with AWS CLI

    Create High Availability Architecture with AWS CLI

    Amazon CloudFront Amazon CloudFront is a fast content delivery network (CDN) service that securely delivers data…

  • MENU PROGRAM

    MENU PROGRAM

    Task Description : Create a Menu Using Python integrating all the concepts that have been taught by Vimal sir till now.…

    2 条评论
  • How company are benefited by artificial intelligence

    How company are benefited by artificial intelligence

    Artificial Intelligence : Artificial intelligence (AI) refers to the simulation of human intelligence in machines that…

  • WORKING WITH AWS CLI

    WORKING WITH AWS CLI

    he AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and…

  • AWS case studies

    AWS case studies

    Amazon Web Services (AWS) AWS (Amazon Web Services) is a comprehensive, evolving cloud computing platform provided by…

    1 条评论

社区洞察

其他会员也浏览了