Skip to content

Commit

Permalink
Update kubernetes_setup_using_eksctl.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yankils authored Nov 13, 2021
1 parent e56faf6 commit 58ba7c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kubernetes/kubernetes_setup_using_eksctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ You can follow same procedure in the official AWS document [Getting started wit
kubectl run tomcat --image=tomcat
```

#### Deploying Nginx pods on EKS
#### Deploying Nginx pods on Kubernetes
1. Deploying Nginx Container
```sh
kubectl create deploy sample-nginx --image=nginx --replicas=2 --port=80
kubectl create deploy demo-nginx --image=nginx --replicas=2 --port=80
# kubectl deployment regapp --image=valaxy/regapp --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.
```sh
kubectl expose deployment sample-nginx --port=80 --type=LoadBalancer
kubectl expose deployment demo-nginx --port=80 --type=LoadBalancer
# kubectl expose deployment regapp --port=8080 --type=LoadBalancer
kubectl get services -o wide
```
Expand Down

0 comments on commit 58ba7c0

Please sign in to comment.