mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-18 04:27:06 +02:00
This relies on registry caching mirrors running in the CI. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
39 lines
795 B
Bash
Executable File
39 lines
795 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
source ./hack/test/e2e.sh
|
|
|
|
PROVISIONER=docker
|
|
CLUSTER_NAME=e2e-${PROVISIONER}
|
|
|
|
function create_cluster {
|
|
build_registry_mirrors
|
|
|
|
"${TALOSCTL}" cluster create \
|
|
--provisioner "${PROVISIONER}" \
|
|
--name "${CLUSTER_NAME}" \
|
|
--image "${IMAGE}" \
|
|
--masters=3 \
|
|
--mtu 1500 \
|
|
--memory 2048 \
|
|
--cpus 2.0 \
|
|
--with-init-node=false \
|
|
--docker-host-ip=127.0.0.1 \
|
|
--endpoint=127.0.0.1 \
|
|
${REGISTRY_MIRROR_FLAGS} \
|
|
--crashdump
|
|
|
|
"${TALOSCTL}" config node 10.5.0.2
|
|
}
|
|
|
|
function destroy_cluster() {
|
|
"${TALOSCTL}" cluster destroy --name "${CLUSTER_NAME}"
|
|
}
|
|
|
|
create_cluster
|
|
get_kubeconfig
|
|
${KUBECTL} config set-cluster e2e-docker --server https://10.5.0.2:6443
|
|
run_talos_integration_test_docker
|
|
run_kubernetes_integration_test
|