-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-384] User guide for kubernetes agent
1. Introduce the creation of k8s type host. 2. Provide script to setup a minikube test environment. Change-Id: Iafc0a01dd4e5ddf03a1cd42e76b2992dc1d4b512 Signed-off-by: luke <[email protected]>
- Loading branch information
1 parent
f0fdf5e
commit 9c3d2ea
Showing
7 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Kubernetes type host creation guide | ||
|
||
## Prepare Kubernetes environment | ||
|
||
1. Get started with Kubernetes: [Kubernetes Guide](https://kubernetes.io/docs/user-journeys/users/application-developer/foundational/) | ||
|
||
2. Run `bash cello/scripts/setup_k8s_worker.sh` to set up a Minikube as test environment, the script requires root authority to run. | ||
|
||
## Add Kubernetes type host | ||
|
||
Login to Cello and navigate to the Hosts->;Add Host | ||
|
||
In the "Add a host" page select "Host Type" as KUBERNETES | ||
|
||
![k8s-select](imgs/k8s-select.png) | ||
|
||
Give a name of the Kubernetes host like "cello-k8s", you can specify a capacity number, this number can be configured later. | ||
|
||
![k8s-setting](imgs/k8s-setting.png) | ||
|
||
In the Master address field input your Kubernetes master node IP address. Port 443 is used as default and is only supported for now. | ||
|
||
In the "Credential Type" drop down list, select the credential type for Kubernetes host. | ||
|
||
In the "NFS Server Address" input the NFS server address. | ||
|
||
**Action required for NFS Service:** | ||
Cello provides the NFS server by default, please ensure the kubernete cluster could connect to the Cello Host node. | ||
|
||
Use the host node IP as the NFS address. | ||
|
||
In the "Use SSL Verification" checkbox, check it if SSL verification is enabled. | ||
|
||
Optional: in the "Extra Parameters" input the extra Kubernetes parameters in JSON format. | ||
|
||
There are three ways to connect to Kubernetes Host: | ||
#### Username & password | ||
|
||
In the "username" and "password" fields input the username & password with the correct privileges. | ||
|
||
#### Certificate and key | ||
|
||
In the "Certificate content" input ssh certificate content. | ||
|
||
In the "Key content" input ssh key content. | ||
|
||
#### Configuration file | ||
|
||
In the "Configuration content" input configuration file content. | ||
|
||
### Finish Creating Host | ||
|
||
Click Create. You will see the follow page. | ||
|
||
![vm active](imgs/k8s-active.png) | ||
|
||
This means that the Kubernetes host is ready the new host will be in active state. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters