Skip to content

Commit

Permalink
replace depercated commands with new commands
Browse files Browse the repository at this point in the history
  • Loading branch information
diguage committed Sep 29, 2019
1 parent db64ecd commit d41170e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The above list is sorted alphabetically by product name, not by recommendation o
To see how Kubernetes network policy works, start off by creating an `nginx` deployment.

```console
kubectl run nginx --image=nginx --replicas=2
kubectl create deployment nginx --image=nginx
```
```none
deployment.apps/nginx created
Expand Down Expand Up @@ -62,7 +62,6 @@ service/nginx 10.100.0.16 <none> 80/TCP 33s
NAME READY STATUS RESTARTS AGE
pod/nginx-701339712-e0qfq 1/1 Running 0 35s
pod/nginx-701339712-o00ef 1/1 Running 0 35s
```

## Test the service by accessing it from another pod
Expand All @@ -72,7 +71,7 @@ You should be able to access the new `nginx` service from other pods. To test, a
Start a busybox container, and use `wget` on the `nginx` service:

```console
kubectl run busybox --rm -ti --image=busybox /bin/sh
kubectl run --generator=run-pod/v1 busybox --rm -it --image=busybox -- /bin/sh
```

```console
Expand Down

0 comments on commit d41170e

Please sign in to comment.