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 #357

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
19 changes: 18 additions & 1 deletion c.pod_design.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Taint a node:

```bash
kubectl taint node node1 tier=frontend:NoSchedule # key=value:Effect
kubectl describe node node1 # view the taints on a node
kubectl describe node node1 | grep i taint # view the taints on a node
Copy link
Owner

Choose a reason for hiding this comment

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

grep is unnecessary here IMO, user can use descript to view the full output including the taints

```

And to tolerate the taint:
Expand Down Expand Up @@ -512,6 +512,23 @@ kubectl scale deploy nginx --replicas=5
kubectl get po
kubectl describe deploy nginx
```
or

```bash
kubectl edit deploy nginx
# edit replicas to 5
```
or

```bash
kubectl get deploy nginx -o yaml > nginx-deploy.yaml
#edit replicas to 5
kubctl replace -f replicaset-definition.yml
Copy link
Owner

Choose a reason for hiding this comment

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

should be kubectl

```
or
Copy link
Owner

Choose a reason for hiding this comment

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

nit: empty line

```bash
kubectl scale --replicas=5 -f nginx-deploy.yaml
```

</p>
</details>
Expand Down
4 changes: 2 additions & 2 deletions d.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ kubernetes.io > Documentation > Concepts > Policies > Limit Ranges (https://kube
<p>

```bash
kubectl create ns one
kubectl create ns limitrange
```

vi 1.yaml
Expand All @@ -368,7 +368,7 @@ apiVersion: v1
kind: LimitRange
metadata:
name: ns-memory-limit
namespace: one
namespace: limitrange
spec:
limits:
- max: # max and min define the limit range
Expand Down