np-reddy / git-issue-ops

git-issue-ops to create objects in Artifactory and sync user permissions based on github repo.
MIT License
1 stars 0 forks source link

Create a Kubernetes Cluster #2

Closed pranereddy closed 3 years ago

pranereddy commented 3 years ago

What needs to be done?

Create a Kubernetes cluster in the cloud.

Why is it necessary?

For deploying web applications (artifactory).

Prerequisites:

Where it needs to be done?

Any of the cloud platforms where creation of K8 cluster is possible.

Acceptance Criteria

pranereddy commented 3 years ago

Three popular cloud platforms to choose from

Since my free accounts in AWS and Azure had already exhausted, I am going with GCP for creating K8 cluster and also not to forget that K8 was developed by Google.

pranereddy commented 3 years ago

Create Free account in GCP

I have created my free account in GCP using my gmail and a project called My First Project is automatically created for me. I have renamed the default project to npr-devops.

Create K8 cluster

  1. Login to GCP Portal, go to Navigation menu -> Compute -> Kubernetes Engine and click on clusters. image
  2. Click on Create on the following page image
  3. Choose GKE Autopilot on the next page image
  4. Give a meaningful name to the cluster and click on create image

Cluster mydevops-cluster-1 has been created. image

Check the cluster resources by using cloud shell image

pranereddy commented 3 years ago

Deploy a web app to the newly created cluster by following this tutorial and expose the service to internet. image

image