Skip to content

Commit 22da053

Browse files
authored
Update README.md
1 parent 4c0ed1e commit 22da053

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ kops
88
Setup Kubernetes (K8s) Cluster on AWS Using KOPS
99

1010
#!/bin/bash
11-
#1) Create Ubuntu EC2 instance in AWS
11+
# 1) Create Ubuntu EC2 instance in AWS
1212

13-
2) install AWSCLI
13+
# 2) install AWSCLI
1414

1515
sudo apt update -y
1616
sudo apt install unzip wget -y
@@ -20,23 +20,23 @@ Setup Kubernetes (K8s) Cluster on AWS Using KOPS
2020
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
2121

2222

23-
#3) Install kops software on ubuntu instance:
23+
# 3) Install kops software on ubuntu instance:
2424

2525
#Install wget if not installed
2626
sudo apt install wget -y
2727
sudo wget https://github.com/kubernetes/kops/releases/download/v1.16.1/kops-linux-amd64
2828
sudo chmod +x kops-linux-amd64
2929
sudo mv kops-linux-amd64 /usr/local/bin/kops
3030

31-
#4) Install kubectl
31+
# 4) Install kubectl
3232

3333
sudo curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
3434
sudo chmod +x ./kubectl
3535
sudo mv ./kubectl /usr/local/bin/kubectl
3636
aws s3 mb s3://nubonglegah.k8.local
3737
aws s3 ls
3838

39-
#5) Create an IAM role from AWS Console or CLI with below Policies.
39+
# 5) Create an IAM role from AWS Console or CLI with below Policies.
4040

4141
AmazonEC2FullAccess
4242
AmazonS3FullAccess
@@ -49,7 +49,7 @@ You Created. --> Save.
4949

5050

5151

52-
#6) create an S3 bucket Execute below commond in KOPS Server use unique bucket name if you get bucket name exists error.
52+
# 6) create an S3 bucket Execute below commond in KOPS Server use unique bucket name if you get bucket name exists error.
5353

5454
aws s3 mb s3://nubonglegah.k8.local
5555
aws s3 ls
@@ -69,24 +69,24 @@ You Created. --> Save.
6969

7070
source .bashrc
7171

72-
#7) Create sshkeys before creating cluster
72+
# 7) Create sshkeys before creating cluster
7373

7474
ssh-keygen
7575

7676

77-
#8) Create kubernetes cluster definitions on S3 bucket
77+
# 8) Create kubernetes cluster definitions on S3 bucket
7878

7979
kops create cluster --zones us-east-2c --networking weave --master-size t2.medium --master-count 1 --node-size t2.large --node-count=2 ${NAME}
8080

8181
kops create cluster --zones us-east-1e,zones us-east-2c --networking weave --master-size t2.medium --master-count 2 --node-size t2.micro --node-count=2 ${NAME}
8282

8383
kops create secret --name ${NAME} sshpublickey admin -i ~/.ssh/id_rsa.pub
8484

85-
#9) Create kubernetes cluser
85+
# 9) Create kubernetes cluser
8686

8787
kops update cluster ${NAME} --yes
8888

89-
#10) Validate your cluster(KOPS will take some time to create cluster ,Execute below commond after 3 or 4 mins)
89+
# 10) Validate your cluster(KOPS will take some time to create cluster ,Execute below commond after 3 or 4 mins)
9090

9191
kops validate cluster
9292

@@ -103,7 +103,7 @@ You Created. --> Save.
103103
====================================================================================================
104104

105105

106-
13# IF you wan to SSH to Kubernates Master or Nodes Created by KOPS. You can SSH From KOPS_Server
106+
13 # IF you wan to SSH to Kubernates Master or Nodes Created by KOPS. You can SSH From KOPS_Server
107107

108108
ssh admin@<IPOrDNS>
109109
it above command is not working

0 commit comments

Comments
 (0)