Skip to content

Commit

Permalink
Provide option to disable kube-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
tchinmai7 committed May 2, 2023
1 parent adecc01 commit 4b9cfaa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ rke2_install_script_dir: /var/tmp
rke2_channel: stable

# Do not deploy packaged components and delete any deployed components
# Valid items: rke2-canal, rke2-coredns, rke2-ingress-nginx, rke2-kube-proxy, rke2-metrics-server
# Valid items: rke2-canal, rke2-coredns, rke2-ingress-nginx, rke2-metrics-server
rke2_disable:

# Option to disable kube-proxy
# disable_kube_proxy: true

# Path to custom manifests deployed during the RKE2 installation
# It is possible to use Jinja2 templating in the manifests
rke2_custom_manifests:
Expand Down Expand Up @@ -196,7 +199,6 @@ rke2_etcd_snapshot_destination_dir: "{{ rke2_data_path }}/server/db/snapshots"
# endpoint_ca: "" # optional. Can skip if using defaults
# region: "" # optional - defaults to us-east-1
# folder: "" # optional - defaults to top level of bucket

# Override default containerd snapshotter
rke2_snapshooter: overlayfs

Expand Down
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,12 @@ rke2_install_script_dir: /var/tmp
rke2_channel: stable

# Do not deploy packaged components and delete any deployed components
# Valid items: rke2-canal, rke2-coredns, rke2-ingress-nginx, rke2-kube-proxy, rke2-metrics-server
# Valid items: rke2-canal, rke2-coredns, rke2-ingress-nginx, rke2-metrics-server
rke2_disable:

# Option to disable kube-proxy
# disable_kube_proxy: true

# Path to custom manifests deployed during the RKE2 installation
# It is possible to use Jinja2 templating in the manifests
rke2_custom_manifests:
Expand Down
3 changes: 3 additions & 0 deletions templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ node-label:
{% endif %}
snapshotter: {{ rke2_snapshooter }}
node-name: {{ inventory_hostname }}
{% if ( disable_kube_proxy | bool ) %}
disable-kube-proxy: true
{% endif %}
{% if 'cis' in rke2_cis_profile %}
profile: {{ rke2_cis_profile }}
{%endif%}
Expand Down

0 comments on commit 4b9cfaa

Please sign in to comment.