mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-01-09 00:05:52 +01:00
Add way to configure KubeProxy configuration
This commit is contained in:
parent
64b081472c
commit
7a40d6f2ae
@ -48,6 +48,8 @@ kubernetes_config_cluster_configuration:
|
||||
podSubnet: "{{ kubernetes_pod_network.cidr }}"
|
||||
kubernetesVersion: "{{ kubernetes_version_kubeadm }}"
|
||||
|
||||
kubernetes_config_kube_proxy_configuration: {}
|
||||
|
||||
kubernetes_apiserver_advertise_address: ''
|
||||
kubernetes_version_kubeadm: 'stable-{{ kubernetes_version }}'
|
||||
kubernetes_ignore_preflight_errors: 'all'
|
||||
|
@ -6,9 +6,15 @@ kind: InitConfiguration
|
||||
kind: ClusterConfiguration
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
{{ kubernetes_config_cluster_configuration | to_nice_yaml }}
|
||||
---
|
||||
{% if kubernetes_config_kubelet_configuration|length > 0 %}
|
||||
---
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
{{ kubernetes_config_kubelet_configuration | to_nice_yaml }}
|
||||
{% endif %}
|
||||
{% if kubernetes_config_kube_proxy_configuration|length > 0 %}
|
||||
---
|
||||
apiVersion: kubeproxy.config.k8s.io/v1alpha1
|
||||
kind: KubeProxyConfiguration
|
||||
{{ kubernetes_config_kube_proxy_configuration | to_nice_yaml }}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user