Skip to content

Commit da9498e

Browse files
committed
Welcome to Stack Simplify
1 parent 03de841 commit da9498e

File tree

2 files changed

+6
-6
lines changed
  • 03-Kubernetes-Fundamentals-with-kubectl

2 files changed

+6
-6
lines changed

03-Kubernetes-Fundamentals-with-kubectl/03-01-PODs-with-kubectl/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ exit
157157

158158
- **Running individual commands in a Container**
159159
```
160-
kubectl exec -it <pod-name> env
160+
kubectl exec -it <pod-name> -- env
161161
162162
# Sample Commands
163-
kubectl exec -it my-first-pod env
164-
kubectl exec -it my-first-pod ls
165-
kubectl exec -it my-first-pod cat /usr/share/nginx/html/index.html
163+
kubectl exec -it my-first-pod -- env
164+
kubectl exec -it my-first-pod -- ls
165+
kubectl exec -it my-first-pod -- cat /usr/share/nginx/html/index.html
166166
```
167167
## Step-06: Get YAML Output of Pod & Service
168168
### Get YAML Output

03-Kubernetes-Fundamentals-with-kubectl/03-04-Services-with-kubectl/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Observation: We don't need to specify "--type=ClusterIp" because default setting
2525
```
2626
- **Important Note:** If backend application port (Container Port: 8080) and Service Port (8080) are same we don't need to use **--target-port=8080** but for avoiding the confusion i have added it. Same case applies to frontend application and service.
2727

28-
- **Backend HelloWorld Application Source** [kube-helloworld](../00-Docker-Images/02-kube-backend-helloworld-springboot/kube-helloworld)
28+
- **Backend HelloWorld Application Source** [kube-helloworld](https://github.com/stacksimplify/kubernetes-fundamentals/tree/master/00-Docker-Images/02-kube-backend-helloworld-springboot/kube-helloworld)
2929

3030

3131
## Step-03: LoadBalancer Service - Frontend Application Setup
@@ -50,7 +50,7 @@ server {
5050
}
5151
```
5252
- **Docker Image Location:** https://hub.docker.com/repository/docker/stacksimplify/kube-frontend-nginx
53-
- **Frontend Nginx Reverse Proxy Application Source** [kube-frontend-nginx](../00-Docker-Images/03-kube-frontend-nginx)
53+
- **Frontend Nginx Reverse Proxy Application Source** [kube-frontend-nginx](https://github.com/stacksimplify/kubernetes-fundamentals/tree/master/00-Docker-Images/03-kube-frontend-nginx)
5454
```
5555
# Create Deployment for Frontend Nginx Proxy
5656
kubectl create deployment my-frontend-nginx-app --image=stacksimplify/kube-frontend-nginx:1.0.0

0 commit comments

Comments
 (0)