Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cluster-02
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K8S
cluster-02
Commits
c9b9912a
Verified
Commit
c9b9912a
authored
Dec 10, 2022
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Remove custom rke2 config
parent
04f92964
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#42735
passed with warnings
Dec 10, 2022
Stage: plan
Stage: apply
Stage: ansible
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/k8s/templates/custom-config.yaml.j2
+0
-48
0 additions, 48 deletions
ansible/k8s/templates/custom-config.yaml.j2
ansible/k8s/vars/main.yaml
+0
-1
0 additions, 1 deletion
ansible/k8s/vars/main.yaml
with
0 additions
and
49 deletions
ansible/k8s/templates/custom-config.yaml.j2
deleted
100644 → 0
+
0
−
48
View file @
04f92964
{% if active_server is defined %}
server: https://{{ rke2_api_ip }}:9345
{% endif %}
token: {{ rke2_token }}
data-dir: {{ rke2_data_path }}
{% if inventory_hostname in groups[rke2_servers_group_name] %}
cni: {{ rke2_cni }}
disable-kube-proxy: {{ rke2_disable_kube_proxy }}
tls-san:
- cluster.local
- {{ rke2_api_ip }}
{% for san in rke2_additional_sans %}
- {{ san }}
{% endfor %}
{% endif %}
{% if ( combined_node_taints is defined and combined_node_taints|length > 0) %}
node-taint:
{% for taint in combined_node_taints %}
- {{ taint }}
{% endfor %}
{% endif %}
{% if rke2_disable and ( inventory_hostname|string() in groups[rke2_servers_group_name] ) %}
disable: {{ rke2_disable }}
{% endif %}
{% if rke2_kube_apiserver_args is defined and inventory_hostname in groups[rke2_servers_group_name] %}
kube-apiserver-arg: {{ rke2_kube_apiserver_args}}
{% endif %}
{% if ( k8s_node_label is defined ) %}
node-label:
{% for label in k8s_node_label %}
- {{ label }}
{% endfor %}
{% endif %}
snapshotter: {{ rke2_snapshooter }}
node-name: {{ inventory_hostname }}
{% if 'cis' in rke2_cis_profile %}
profile: {{ rke2_cis_profile }}
{%endif%}
{% if rke2_server_options is defined and inventory_hostname in groups[rke2_servers_group_name] %}
{% for option in rke2_server_options %}
{{ option }}
{% endfor %}
{% endif %}
{% if rke2_agent_options is defined and inventory_hostname in groups[rke2_agents_group_name] %}
{% for option in rke2_agent_options %}
{{ option }}
{% endfor %}
{% endif %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ansible/k8s/vars/main.yaml
+
0
−
1
View file @
c9b9912a
...
@@ -155,7 +155,6 @@ rke2_snapshooter: overlayfs
...
@@ -155,7 +155,6 @@ rke2_snapshooter: overlayfs
# Deploy RKE2 with default CNI canal
# Deploy RKE2 with default CNI canal
rke2_cni
:
cilium
rke2_cni
:
cilium
rke2_disable_kube_proxy
:
true
# Validate system configuration against the selected benchmark
# Validate system configuration against the selected benchmark
# (Supported value is "cis-1.23" or eventually "cis-1.6" if you are running RKE2 prior 1.25)
# (Supported value is "cis-1.23" or eventually "cis-1.6" if you are running RKE2 prior 1.25)
...
...
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