config
config
├── new
├── view
└── sync
config new
config new
since v1.0.0
config/cubectl.toml
에 새로운 cubectl.toml
파일을 생성합니다.
$ cubectl config new
parameters
-a, --auto-approve
optional
y/n 질의 절차를 생략합니다.
examples
$ bin/cubectl config new
Do you really want to make a new config file?
Is this ok [y/n]: y
config view
config view
since v1.0.0
cubectl.toml
파일의 내용을 확인합니다.
$ cubectl config view
examples
$ bin/cubectl config view
[cubectl]
[kubernetes]
version = "v1.23.13"
[kubernetes.etcd]
[kubernetes.calico]
[node-pool]
[node-pool.master]
ip = ["x.x.x.x","x.x.x.x","x.x.x.x"]
[node-pool.node]
[private-registry]
[private-registry.cert-file]
[shared-storage]
[prepare-airgap]
~~~config sync
~~~
config sync
~~~since v1.0.0 (deprecated v1.2.0)
~~~해당 파일은 Control-Plane 노드의 `/etc/kubernetes/cubectl-config-cm.yaml` 에 존재합니다.~~~
### parameters
* `-p <ssh key>`
* 설치 호스트들의 Passwordless SSH 연결을 위한 Private-Key 입니다.
* `-u <username>`
* 설치 호스트들의 Passwordless SSH 연결을 위한 사용자 계정명 입니다.
* `-a, --auto-approve`
* _optional_
* y/n 질의 절차 생략.
### examples
```
$ bin/cubectl config sync -p ~/.ssh/id_rsa -u cocktail
## Inventory for Sync the configuration task.
================================================================
Node Name IP Private IP
================================================================
node-0 x.x.x.x
================================================================
Is this ok [y/n]: y
```
Last updated