You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add server metadata, soft-anti-affinity and local ssd flavors for gx-scs (#742)
* Add server metadata
Signed-off-by: Roman Hros <[email protected]>
* Add docs about server metadata
Signed-off-by: Roman Hros <[email protected]>
* Add default flavor with local ssd for gx-scs control-plane nodes
Signed-off-by: Roman Hros <[email protected]>
* Bump default k8s version to v1.28.11
Signed-off-by: Roman Hros <[email protected]>
* Run CI without anti_affinity
There is not enough hosts for local ssd flavors
Signed-off-by: Roman Hros <[email protected]>
* Run only KaaS v2 tests
Signed-off-by: Roman Hros <[email protected]>
* Allow the use of soft-anti-affinity for the control plane
Signed-off-by: Roman Hros <[email protected]>
---------
Signed-off-by: Roman Hros <[email protected]>
Copy file name to clipboardExpand all lines: doc/configuration.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,13 +67,16 @@ Parameters controlling the cluster creation:
67
67
| `` |`CONTROL_PLANE_ROOT_DISKSIZE`| SCS |`20`|*If* diskless flavors are used for control plane nodes, this is the allocated root volume disk size (in GB) |
68
68
| `` |`WORKER_ROOT_DISKSIZE`| SCS |`20`|*If* diskless flavors are used for worker nodes, this is the allocated root volume disk size (in GB) |
69
69
|`anti_affinity`|`OPENSTACK_ANTI_AFFINITY`| SCS |`true`| Use anti-affinity server groups to prevent k8s nodes on same host (soft for workers, hard for controllers) |
70
+
|`soft_anti_affinity_controller`|`OPENSTACK_SOFT_ANTI_AFFINITY_CONTROLLER`| SCS |`false`| Allow the use of soft-anti-affinity for the controllers (if `anti_affinity` is `true`) |
70
71
| `` |`OPENSTACK_SRVGRP_CONTROLLER`| SCS |`nonono`| Autogenerated if `anti_affinity` is `true`, eliminated otherwise |
71
72
| `` |`OPENSTACK_SRVGRP_WORKER`| SCS |`nonono`| Autogenerated if `anti_affinity` is `true`, eliminated otherwise |
72
73
|`deploy_occm`|`DEPLOY_OCCM`| SCS |`true`| Deploy the given version of OCCM into the cluster. `true` (default) chooses the latest version matching the k8s version. You can specify `master` to chose the upstream master branch. Don't disable this. |
73
74
|`deploy_cindercsi`|`DEPLOY_CINDERCSI`| SCS |`true`| Deploy the given (or latest matching for the default true value) of cinder CSI. |
74
75
|`etcd_unsafe_fs`|`ETCD_UNSAFE_FS`| SCS |`false`| Use `barrier=0` for filesystem on control nodes to avoid storage latency. Use for multi-controller clusters on slow/networked storage, otherwise not recommended. |
75
76
|`testcluster_name`| (cmd line) | SCS |`testcluster`| Allows setting the default cluster name, created at bootstrap (if `controller_count` is larger than 0) |
76
77
|`restrict_kubeapi`|`RESTRICT_KUBEAPI`| SCS |`[ ]`| Allows restricting access to kubernetes API by list of CIDRs. Empty list (default) means public, `[ "none" ]` means internal access only. |
78
+
|`controller_metadata`|`OPENSTACK_CONTROL_PLANE_MACHINE_METADATA`| SCS |`{ }`| Adds additional metadata for instances running the k8s management nodes |
79
+
|`worker_metadata`|`OPENSTACK_NODE_MACHINE_METADATA`| SCS |`{ }`| Adds additional metadata for instances running the k8s worker nodes |
77
80
| `` |`OPENSTACK_CLUSTER_GEN`| SCS |`geno01`| Generation counter for the OpenStackClusterTemplate resource. Increase, when changing restrict_kubeapi or other OC settings |
78
81
|`capo_instance_create_timeout`|`CLUSTER_API_OPENSTACK_INSTANCE_CREATE_TIMEOUT`| capo |`5`| Time to wait for an OpenStack machine to be created (in minutes) |
79
82
|`containerd_registry_files`|| SCS |`{"hosts":["./files/containerd/docker.io"], "certs":[]}`| Containerd registry hosts config files, see related [docs](./usage/containter-registry-configuration.md) for details. |
soft_anti_affinity_controller="<boolean>"# defaults to "false"
30
31
use_cilium="version/true/false"# defaults to "true", can also be set to "vx.y.z", also see cilium_binaries
31
32
use_ovn_lb_provider="auto/true/false"# use OVN LB if available (auto) or force (true) or never (false)
32
33
deploy_nginx_ingress="version/true/false"# defaults to "true", you can also set vX.Y.Z if you want
@@ -39,6 +40,8 @@ deploy_cindercsi = "<version>" # defaults to "true", dito
39
40
etcd_unsafe_fs="<boolean>"# defaults to "false", dangerous
40
41
testcluster_name="NAME"# defaults to "testcluster"
41
42
restrict_kubeapi=[ "IP/20", "IP/22" ] # defaults to empty (fully open), use [ "none" ] for exclusive internal access
43
+
controller_metadata={ metadata_key ="metadata_value" } # defaults to empty dict (no additional metadata)
44
+
worker_metadata={ metadata_key ="metadata_value" } # defaults to empty dict (no additional metadata)
42
45
containerd_registry_files={"hosts":["<list of registry host config files>"], "certs":["<list of custom cert files>"]} # defaults to '{"hosts":["./files/containerd/docker.io"], "certs":[]}'
43
46
deploy_harbor="<boolean>"# defaults to "false", "true" deploys Harbor and forces deployment of flux and potentially other services (`cert_manager`, `nginx_ingress` and `cindercsi`), see `doc/usage/harbor.md`
44
47
harbor_config={"domain_name":"<name>", "issuer_email":"<email>", "persistence":"<boolean>", "database_size":"size", "redis_size":"size", "trivy_size":"size"} # for defaults see ../variables.tf
Copy file name to clipboardExpand all lines: terraform/files/bin/create_cluster.sh
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,10 @@ if test "$CONTROL_PLANE_MACHINE_COUNT" -gt 0 && grep '^ *OPENSTACK_ANTI_AFFINITY
91
91
SRVGRP_CONTROLLER=$(echo "$SRVGRP"| grep "${PREFIX}-${CLUSTER_NAME}-controller"| sed 's/^\([0-9a-f\-]*\) .*$/\1/')
92
92
SRVGRP_WORKER=$(echo "$SRVGRP"| grep "${PREFIX}-${CLUSTER_NAME}-worker"| sed 's/^\([0-9a-f\-]*\) .*$/\1/')
93
93
iftest -z "$SRVGRP_CONTROLLER";then
94
-
SRVGRP_CONTROLLER=$(openstack --os-compute-api-version 2.15 server group create --policy anti-affinity -f value -c id ${PREFIX}-${CLUSTER_NAME}-controller)
SRVGRP_CONTROLLER=$(openstack --os-compute-api-version 2.15 server group create --policy ${ANTI_AFFINITY_POLICY_CONTROLLER} -f value -c id ${PREFIX}-${CLUSTER_NAME}-controller)
95
98
SRVGRP_WORKER=$(openstack --os-compute-api-version 2.15 server group create --policy soft-anti-affinity -f value -c id ${PREFIX}-${CLUSTER_NAME}-worker)
96
99
fi
97
100
echo"Adding server groups $SRVGRP_CONTROLLER and $SRVGRP_WORKER to $CCCFG"
0 commit comments