Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update c.pod_design.md #323

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions c.pod_design.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,29 @@ version-2
```

</p>
<p>
In CKAD use imperative commands to save time:
```
$ k create deploy nginx1 --image=nginx -r=3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should mention to alias kubectl with k

$ k label deployments.apps nginx1 version=v1
$ k create deploy nginx2 --image=nginx -r=1
$ k label deployments.apps nginx2 version=v2
$ k expose deployment nginx1 --port=80
$ k get svc
$ k get endpoints
$kubectl run tmp --rm -it --image=busybox --restart=Never -- wget -O- http://10.244.120.100:80

Connecting to 10.244.120.100:80 (10.244.120.100:80)
writing to stdout
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>

$ k scale deployment nginx1 --replicas=4
$ k scale deployment nginx2 --replicas=0
```
</p>
</details>

## Jobs
Expand Down