Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Update k8s101.md (#85)
Browse files Browse the repository at this point in the history
Replacing the deprecated syntax of the "kubectl run my-nginx --image=nginx --replicas=2 --port=80 --record" command with new format "kubectl create deployment my-nginx --image=nginx --replicas=2 --port=80"
  • Loading branch information
svizanms authored Jun 28, 2023
1 parent cd7adf9 commit f7f95c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s101.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Everyone says that Kubernetes (sometimes abbreviated as K8S) is hard, however go
Let's start by creating an `nginx` service.

```bash
$ kubectl run my-nginx --image=nginx --replicas=2 --port=80 --record
$ kubectl create deployment my-nginx --image=nginx --replicas=2 --port=80
$ kubectl expose deployment my-nginx --type=LoadBalancer --port=80
```

Expand Down

0 comments on commit f7f95c7

Please sign in to comment.