Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hepto
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hepto
Commits
144cc34f
Verified
Commit
144cc34f
authored
5 months ago
by
cyrinux
Browse files
Options
Downloads
Patches
Plain Diff
chore: add label zone with ansible
parent
6aae8df3
No related branches found
No related tags found
No related merge requests found
Pipeline
#32747
failed with stages
Stage: build
Stage: test
in 15 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/playbooks/bootstrap.yaml
+9
-1
9 additions, 1 deletion
ansible/playbooks/bootstrap.yaml
with
9 additions
and
1 deletion
ansible/playbooks/bootstrap.yaml
+
9
−
1
View file @
144cc34f
...
...
@@ -13,7 +13,7 @@
content
:
"
nameserver
{{
node_dns
}}"
when
:
node_dns is defined
# This is require so th
q
t kubectl apply -k works with remote git
# This is require so th
a
t kubectl apply -k works with remote git
-
name
:
Install git for kustomize
ansible.builtin.package
:
name
:
git
...
...
@@ -48,6 +48,14 @@
retries
:
10
delay
:
5
-
name
:
Label cluster nodes zone
ansible.builtin.shell
:
"
kubectl
label
node
{{
hostvars[item.1].inventory_hostname
}}
topology.kubernetes.io/zone={{
item.0.zone
}}"
loop
:
"
{{
groups
|
dict2items(key_name='role',
value_name='nodes')
|
subelements('nodes')
}}"
environment
:
KUBECONFIG
:
"
{{
kubeconfig
}}"
retries
:
10
delay
:
5
-
name
:
Taint master nodes
ansible.builtin.shell
:
"
kubectl
taint
--overwrite=true
node
{{
hostvars[item].inventory_hostname
}}
node-role.kubernetes.io/control-plane=
\"\"
:NoSchedule"
loop
:
"
{{
groups['master']
}}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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