mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-12 05:50:18 +01:00
Merge pull request #54 from onedr0p/patch-2
Implement option to disable kube-proxy
This commit is contained in:
commit
062c459b00
2 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,7 @@ consistency.
|
||||||
| `k3s_disable_scheduler` | Disable Kubernetes default scheduler | `false` |
|
| `k3s_disable_scheduler` | Disable Kubernetes default scheduler | `false` |
|
||||||
| `k3s_disable_cloud_controller` | Disable k3s default cloud controller manager. | `false` |
|
| `k3s_disable_cloud_controller` | Disable k3s default cloud controller manager. | `false` |
|
||||||
| `k3s_disable_network_policy` | Disable k3s default network policy controller. | `false` |
|
| `k3s_disable_network_policy` | Disable k3s default network policy controller. | `false` |
|
||||||
|
| `k3s_disable_kube_proxy` | Disable k3s default kube proxy. | `false` |
|
||||||
| `k3s_write_kubeconfig_mode` | Define the file mode from the generated KubeConfig, eg. `644` | _NULL_ |
|
| `k3s_write_kubeconfig_mode` | Define the file mode from the generated KubeConfig, eg. `644` | _NULL_ |
|
||||||
| `k3s_datastore_endpoint` | Define the database or etcd cluster endpoint for HA. | _NULL_ |
|
| `k3s_datastore_endpoint` | Define the database or etcd cluster endpoint for HA. | _NULL_ |
|
||||||
| `k3s_datastore_cafile` | Define the database TLS CA file. | _NULL_ |
|
| `k3s_datastore_cafile` | Define the database TLS CA file. | _NULL_ |
|
||||||
|
|
|
@ -34,6 +34,9 @@ ExecStart={{ k3s_install_dir }}/k3s
|
||||||
{% if k3s_disable_network_policy %}
|
{% if k3s_disable_network_policy %}
|
||||||
--disable-network-policy
|
--disable-network-policy
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if k3s_disable_kube_proxy %}
|
||||||
|
--disable-kube-proxy
|
||||||
|
{% endif %}
|
||||||
{% if k3s_no_flannel %}
|
{% if k3s_no_flannel %}
|
||||||
{% if (k3s_release_version | replace('v', '')) is version_compare('1.0.0', '>=') %}
|
{% if (k3s_release_version | replace('v', '')) is version_compare('1.0.0', '>=') %}
|
||||||
--flannel-backend none
|
--flannel-backend none
|
||||||
|
|
Loading…
Reference in a new issue