-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(*): update config.yaml filed and add remove function (#6)
* chore(*): add inventory filed in config.yaml * chore(*): config compose.yaml nginx ports * cleanup(build): remove build and push kubeplay image * chore(*): update config.yaml filed and add remove function
- Loading branch information
Showing
6 changed files
with
145 additions
and
96 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,33 +1,81 @@ | ||
compose: | ||
# Nginx http server bind port for download files and packages | ||
http_port: 8080 | ||
nginx_http_port: 8080 | ||
# For container runtime pull image, use 443 as default | ||
registry_https_port: 443 | ||
# For user push image to this registry, use 5000 as default | ||
registry_push_port: 5000 | ||
# Registry host ip for add to /etc/hosts by domain | ||
registry_ip: 172.20.0.25 | ||
# Registry domain for CRI runtime download image | ||
registry_domain: "kube.registry.local" | ||
registry_domain: kube.registry.local | ||
# Auto generate self-signed certificate for registry domain | ||
generate_crt: true | ||
self_signed_cert: true | ||
# User and password for push image to registry | ||
registry_auth_user: "Username" | ||
registry_auth_password: "Password" | ||
# Registry image repo, default library | ||
image_repo: library | ||
|
||
kubespray: | ||
# Kubernetes version by default, only support v1.20.6 | ||
kube_version: v1.21.3 | ||
# For deploy HA cluster you must configure a external apiserver access ip | ||
external_apiserver_access_ip: "127.0.0.1" | ||
external_apiserver_access_ip: 127.0.0.1 | ||
# Set network plugin to calico with vxlan mode by default | ||
kube_network_plugin: "calico" | ||
kube_network_plugin: calico | ||
# Set true to download and cache container | ||
download_container: false | ||
# Use nginx and registry as all resources | ||
# Use nginx and registry provide all offline resources | ||
offline_resources_enabled: true | ||
## Container runtime | ||
## docker for docker, crio for cri-o and containerd for containerd. | ||
#Container runtime, only support containerd if offline deploy | ||
container_manager: containerd | ||
# Now only support host because use containerd as CRI runtime | ||
# Now only support host if use containerd as CRI runtime | ||
etcd_deployment_type: host | ||
# Settings for etcd event server | ||
etcd_events_cluster_setup: true | ||
etcd_events_cluster_enabled: true | ||
# Kubespray container image for deploy user cluster | ||
kubespray_image: "" | ||
|
||
inventory: | ||
all: | ||
vars: | ||
ansible_port: 22 | ||
ansible_user: root | ||
ansible_ssh_pass: Password | ||
# ansible_ssh_private_key_file: /kubespray/config/id_rsa | ||
hosts: | ||
node1: | ||
ansible_host: 172.20.0.21 | ||
node2: | ||
ansible_host: 172.20.0.22 | ||
node3: | ||
ansible_host: 172.20.0.23 | ||
node4: | ||
ansible_host: 172.20.0.24 | ||
children: | ||
kube_control_plane: | ||
hosts: | ||
node1: | ||
node2: | ||
node3: | ||
kube_node: | ||
hosts: | ||
node1: | ||
node2: | ||
node3: | ||
node4: | ||
etcd: | ||
hosts: | ||
node1: | ||
node2: | ||
node3: | ||
k8s_cluster: | ||
children: | ||
kube_control_plane: | ||
kube_node: | ||
gpu: | ||
hosts: {} | ||
calico_rr: | ||
hosts: {} |
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
Oops, something went wrong.