Skip to content

Commit

Permalink
no need to expose port for probes
Browse files Browse the repository at this point in the history
I was doing the exerice and there is no need to expose the container port on kubernetes v1.15.1
  • Loading branch information
NargiT authored Sep 4, 2019
1 parent 12e6183 commit 8ea9e44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions e.observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ kubectl delete -f pod.yaml
<p>

```bash
kubectl run nginx --image=nginx --dry-run -o yaml --restart=Never --port=80 > pod.yaml
kubectl run nginx --image=nginx --dry-run -o yaml --restart=Never > pod.yaml
vi pod.yaml
```

Expand All @@ -114,8 +114,6 @@ spec:
imagePullPolicy: IfNotPresent
name: nginx
resources: {}
ports:
- containerPort: 80
readinessProbe: # declare the readiness probe
httpGet: # add this line
path: / #
Expand Down

0 comments on commit 8ea9e44

Please sign in to comment.