Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cluster setup
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kubernetes Cluster
cluster setup
Commits
14533569
Commit
14533569
authored
1 month ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
fixup! add distribution.create_cluster
parent
702add43
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
distribution.create_cluster.sh
+7
-11
7 additions, 11 deletions
distribution.create_cluster.sh
helpers/helm_helpers.sh
+2
-2
2 additions, 2 deletions
helpers/helm_helpers.sh
with
9 additions
and
13 deletions
distribution.create_cluster.sh
+
7
−
11
View file @
14533569
...
...
@@ -32,18 +32,14 @@ install_helm_chart calico \
5m
\
"
${
calico_dir
}
/values.yaml"
\
"--set installation.calicoNetwork.ipPools[0].cidr=
${
CLUSTER_CIDR
}
"
# helm repo add ${calico_repo_name} https://docs.tigera.io/calico/charts
# helm repo update
# helm upgrade calico ${calico_repo_name}/tigera-operator \
# --install \
# --version "${CALICO_VERSION:-v3.29.2}" \
# --namespace tigera-operator \
# --create-namespace \
# --values "${calico_dir}/values.yaml" \
# --wait \
# --set "installation.calicoNetwork.ipPools[0].cidr=${CLUSTER_CIDR}"
helm
repo
remove
${
calico_repo_name
}
remove_
helm
_
repo
${
calico_repo_name
}
rm
-rf
"
${
calico_dir
}
"
# install gitlab agent
install_gitlab_agent
\
"
${
GITLAB_AGENT_CHART_VERSION
:-
2
.7.2
}
"
\
"https://git.420joos.dev/kubernetes-cluster/gitlab/runners/kubernetes-agent.git"
\
"values.yaml"
\
"
${
GITLAB_AGENT_IMAGE_VERSION
:-
17
.4.1
}
"
\
"
${
GITLAB_AGENT_TOKEN
}
"
This diff is collapsed.
Click to expand it.
helpers/helm_helpers.sh
+
2
−
2
View file @
14533569
...
...
@@ -42,7 +42,7 @@ install_gitlab_agent() {
chart_version
=
$1
git_repo_url
=
$2
values_filenames
=
$3
image_
tag
=
$4
image_
version
=
$4
token
=
$5
git_repo_dir
=
"/tmp/gitlab-agent"
...
...
@@ -51,7 +51,7 @@ install_gitlab_agent() {
values_files
=
"
${
values_files
}
${
git_repo_dir
}
/
${
filename
}
"
done
upgrade_args
=
"--set image.tag=
${
image_
tag
}
--set config.token=
${
token
}
"
upgrade_args
=
"--set image.tag=
v
${
image_
version
}
--set config.token=
${
token
}
"
git clone
"
${
git_repo_url
}
"
"
${
git_repo_dir
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment