Skip to content

Commit

Permalink
updated kops and eksctl files
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Nov 12, 2021
1 parent 2f23edd commit 3080a4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Kubernetes/Kubernetes_Setup_using_kops.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
#### Deploying Nginx pods on Kubernetes
1. Deploying Nginx Container
```sh
kubectl run sample-nginx --image=nginx --replicas=2 --port=80
# kubectl run simple-devops-project --image=yankils/simple-devops-image --replicas=2 --port=8080
kubectl get pods
kubectl get deployments
kubectl deploy sample-nginx --image=nginx --replicas=2 --port=80
# kubectl deploy simple-devops-project --image=yankils/simple-devops-image --replicas=2 --port=8080
kubectl get all
kubectl get pod
```

1. Expose the deployment as service. This will create an ELB in front of those 2 containers and allow us to publicly access them.
Expand Down
9 changes: 5 additions & 4 deletions Kubernetes/kubernetes_setup_using_eksctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ You can follow same procedure in the official AWS document [Getting started wit

#### Pre-requisites:
- an EC2 Instance
- Install AWSCLI latest verison

#### AWS EKS Setup
1. Setup kubectl
a. Download kubectl version 1.21
b. Grant execution permissions to kubectl executable
c. Move kubectl onto /usr/local/bin
d. Test that your kubectl installation was successful

```sh

curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/kubectl
chmod +x ./kubectl
mv ./kubectl /usr/local/bin
Expand All @@ -22,6 +22,7 @@ You can follow same procedure in the official AWS document [Getting started wit
a. Download and extract the latest release
b. Move the extracted binary to /usr/local/bin
c. Test that your eksclt installation was successful

```sh
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin
Expand All @@ -33,9 +34,9 @@ You can follow same procedure in the official AWS document [Getting started wit
IAM user should have access to
IAM
EC2
VPC
CloudFormation
Note: Check eksctl documentaiton for (Minimum IAM policies)[https://eksctl.io/usage/minimum-iam-policies/)
4. Create your cluster and nodes
```sh
eksctl create cluster --name cluster-name \
Expand Down

0 comments on commit 3080a4c

Please sign in to comment.