> For the complete documentation index, see [llms.txt](https://cocktailcloud.gitbook.io/cube/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cocktailcloud.gitbook.io/cube/reference/annotations.md).

# Annotations

쿠버네티스 어노테이션을 통해 CUBE 확장 기능을 사용할 수 있습니다. 지원하는 어노테이션을 아래와 같습니다.

## Node annotations

* `cube.acornsoft.io/protected`

`true` 로 지정하면 노드 스케일-인 수행 시 삭제 대상 노드에서 제외됩니다.

활용 예제 :

```
# master-1 노드를 삭제되지 않도록 보호합니다.
$ kubectl annotate node master-1 cube.acornsoft.io/protected=true --overwrite

# 해제
$ kubectl annotate node master-1 cube.acornsoft.io/protected-
```

* `cube.acornsoft.io/ansible-user`

노드별로 별도 SSH 사용자 접속 계정을 지정합니다.

활용 예제 :

```
# master-1 노드의 SSH 연결 계정을 "ubuntu" 로 지정합니다.
$ kubectl annotate node master-1 cube.acornsoft.io/ansible-user=ubuntu --overwrite

# 해제
$ kubectl annotate node master-1 cube.acornsoft.io/ansible-user-
```

* `cube.acornsoft.io/ansible-port`

노드별로 별도 SSH 연결 포트번호를 지정합니다.

활용 예제 :

```
# master-1 노드의 SSH 연결 포트를 3003 포트로 지정합니다.
$ kubectl annotate node master-1 cube.acornsoft.io/ansible-port=3003 --overwrite

# 해제
$ kubectl annotate node master-1 cube.acornsoft.io/ansible-port-
```
