Skip to content

Commit

Permalink
doc: update autonomy docs (#492)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Tien <[email protected]>
  • Loading branch information
tnsimon and Simon Tien authored Nov 27, 2024
1 parent 6dd8a1e commit 27db878
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/installation/yurtadm-join.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ node/us-west-1.192.168.0.88 labeled

> If `us-west-1.192.168.0.88` is a cloud node, then you should change the label from `true` to `false`
To further activate the node autonomous mode, we add an annotation to this edge node:
To further activate the node autonomous mode, we add an annotation to this edge node. Autonomy duration sets the duration before a pod will be evicted from the edge. The duration format can be found [here](https://pkg.go.dev/maze.io/x/duration#ParseDuration). When the duration is set to 0, the pod will never be evicted from the edge which maintains the previous deprecated `node.beta.openyurt.io/autonomy=true` behaviour.

```bash
$ kubectl annotate node us-west-1.192.168.0.88 node.beta.openyurt.io/autonomy=true
$ kubectl annotate node us-west-1.192.168.0.88 node.openyurt.io/autonomy-duration=0
node/us-west-1.192.168.0.88 annotated
```

Expand Down Expand Up @@ -191,4 +191,4 @@ kube-system kube-proxy-f5qvr 1/1 Running 0

// then delete all pods above except yurthub pod.
$ kubectl -n kube-system delete pod coredns-qq6dk kube-flannel-ds-j698r kube-proxy-f5qvr
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ node/us-west-1.192.168.0.88 labeled

> 如果`us-west-1.192.168.0.88`不是一个边缘节点,则将`true`改为`false`即可
为了激活自治模式,我们需要通过如下命令给边缘节点添加注解。
为了激活自治模式,我们需要通过如下命令给边缘节点添加注解。[持续时间记录在此处](https://pkg.go.dev/maze.io/x/duration#ParseDuration).

```bash
$ kubectl annotate node us-west-1.192.168.0.88 node.beta.openyurt.io/autonomy=true
$ kubectl annotate node us-west-1.192.168.0.88 node.openyurt.io/autonomy-duration=0
node/us-west-1.192.168.0.88 annotated
```

Expand Down

0 comments on commit 27db878

Please sign in to comment.