Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
de2df8aa
Commit
de2df8aa
authored
Feb 21, 2024
by
Brad Davidson
Committed by
Derek Nola
Feb 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 3/2/1 cluster for split role test
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
b7e5d885
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
test-run-etcd
scripts/test-run-etcd
+8
-2
No files found.
scripts/test-run-etcd
View file @
de2df8aa
...
@@ -38,7 +38,7 @@ LABEL="ETCD-JOIN-BASIC" SERVER_ARGS="" run-test
...
@@ -38,7 +38,7 @@ LABEL="ETCD-JOIN-BASIC" SERVER_ARGS="" run-test
# --- create a basic cluster to test joining a managed etcd cluster with --agent-token set
# --- create a basic cluster to test joining a managed etcd cluster with --agent-token set
LABEL
=
"ETCD-JOIN-AGENTTOKEN"
SERVER_ARGS
=
"--agent-token
${
RANDOM
}${
RANDOM
}${
RANDOM
}
"
run-test
LABEL
=
"ETCD-JOIN-AGENTTOKEN"
SERVER_ARGS
=
"--agent-token
${
RANDOM
}${
RANDOM
}${
RANDOM
}
"
run-test
# --- create a cluster with
one etcd-only server, one
control-plane-only server, and one agent
# --- create a cluster with
three etcd-only server, two
control-plane-only server, and one agent
server-post-hook
()
{
server-post-hook
()
{
if
[
$1
-eq
1
]
;
then
if
[
$1
-eq
1
]
;
then
local
url
=
$(
cat
$TEST_DIR
/servers/1/metadata/url
)
local
url
=
$(
cat
$TEST_DIR
/servers/1/metadata/url
)
...
@@ -46,7 +46,13 @@ server-post-hook() {
...
@@ -46,7 +46,13 @@ server-post-hook() {
fi
fi
}
}
export
-f
server-post-hook
export
-f
server-post-hook
LABEL
=
"ETCD-SPLIT-ROLE"
NUM_AGENTS
=
1
KUBECONFIG_SERVER
=
2
SERVER_1_ARGS
=
"--cluster-init --disable-apiserver --disable-controller-manager --disable-scheduler"
SERVER_2_ARGS
=
"--disable-etcd"
run-test
LABEL
=
"ETCD-SPLIT-ROLE"
NUM_AGENTS
=
1
KUBECONFIG_SERVER
=
4
NUM_SERVERS
=
5
\
SERVER_1_ARGS
=
"--disable-apiserver --disable-controller-manager --disable-scheduler --cluster-init"
\
SERVER_2_ARGS
=
"--disable-apiserver --disable-controller-manager --disable-scheduler"
\
SERVER_3_ARGS
=
"--disable-apiserver --disable-controller-manager --disable-scheduler"
\
SERVER_4_ARGS
=
"--disable-etcd"
\
SERVER_5_ARGS
=
"--disable-etcd"
\
run-test
# The following tests deploy clusters of mixed versions. The traefik helm chart may not deploy
# The following tests deploy clusters of mixed versions. The traefik helm chart may not deploy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment