Update kube-vip manifests to v0.8.0
parent
e57e958a39
commit
537891a380
|
@ -259,6 +259,10 @@ kube_vip_enabled: false
|
||||||
# port: 6443
|
# port: 6443
|
||||||
# kube_vip_interface: eth0
|
# kube_vip_interface: eth0
|
||||||
# kube_vip_services_enabled: false
|
# kube_vip_services_enabled: false
|
||||||
|
#kube_vip_dns_mode: first
|
||||||
|
#kube_vip_cp_detect: false
|
||||||
|
#kube_vip_leasename: plndr-cp-lock
|
||||||
|
#kube_vip_enable_node_labeling: false
|
||||||
|
|
||||||
# Node Feature Discovery
|
# Node Feature Discovery
|
||||||
node_feature_discovery_enabled: false
|
node_feature_discovery_enabled: false
|
||||||
|
|
|
@ -73,8 +73,10 @@ kube_vip_arp_enabled: false
|
||||||
kube_vip_interface:
|
kube_vip_interface:
|
||||||
kube_vip_services_interface:
|
kube_vip_services_interface:
|
||||||
kube_vip_cidr: 32
|
kube_vip_cidr: 32
|
||||||
|
kube_vip_dns_mode: first
|
||||||
kube_vip_controlplane_enabled: false
|
kube_vip_controlplane_enabled: false
|
||||||
kube_vip_ddns_enabled: false
|
kube_vip_ddns_enabled: false
|
||||||
|
kube_vip_cp_detect: false
|
||||||
kube_vip_services_enabled: false
|
kube_vip_services_enabled: false
|
||||||
kube_vip_leader_election_enabled: "{{ kube_vip_arp_enabled }}"
|
kube_vip_leader_election_enabled: "{{ kube_vip_arp_enabled }}"
|
||||||
kube_vip_bgp_enabled: false
|
kube_vip_bgp_enabled: false
|
||||||
|
@ -88,9 +90,11 @@ kube_vip_address:
|
||||||
kube_vip_enableServicesElection: false
|
kube_vip_enableServicesElection: false
|
||||||
kube_vip_lb_enable: false
|
kube_vip_lb_enable: false
|
||||||
kube_vip_lb_fwdmethod: local
|
kube_vip_lb_fwdmethod: local
|
||||||
|
kube_vip_leasename: plndr-cp-lock
|
||||||
kube_vip_leaseduration: 5
|
kube_vip_leaseduration: 5
|
||||||
kube_vip_renewdeadline: 3
|
kube_vip_renewdeadline: 3
|
||||||
kube_vip_retryperiod: 1
|
kube_vip_retryperiod: 1
|
||||||
|
kube_vip_enable_node_labeling: false
|
||||||
|
|
||||||
# Requests for load balancer app
|
# Requests for load balancer app
|
||||||
loadbalancer_apiserver_memory_requests: 32M
|
loadbalancer_apiserver_memory_requests: 32M
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Inspired by https://github.com/kube-vip/kube-vip/blob/v0.5.11/pkg/kubevip/config_generator.go#L13
|
# Inspired by https://github.com/kube-vip/kube-vip/blob/v0.8.0/pkg/kubevip/config_generator.go#L103
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -16,6 +16,8 @@ spec:
|
||||||
value: {{ kube_vip_arp_enabled | string | to_json }}
|
value: {{ kube_vip_arp_enabled | string | to_json }}
|
||||||
- name: port
|
- name: port
|
||||||
value: {{ kube_apiserver_port | string | to_json }}
|
value: {{ kube_apiserver_port | string | to_json }}
|
||||||
|
- name: vip_nodename
|
||||||
|
value: {{ inventory_hostname }}
|
||||||
{% if kube_vip_interface %}
|
{% if kube_vip_interface %}
|
||||||
- name: vip_interface
|
- name: vip_interface
|
||||||
value: {{ kube_vip_interface | string | to_json }}
|
value: {{ kube_vip_interface | string | to_json }}
|
||||||
|
@ -28,6 +30,10 @@ spec:
|
||||||
- name: vip_cidr
|
- name: vip_cidr
|
||||||
value: {{ kube_vip_cidr | string | to_json }}
|
value: {{ kube_vip_cidr | string | to_json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if kube_vip_dns_mode %}
|
||||||
|
- name: dns_mode
|
||||||
|
value: {{ kube_vip_dns_mode | string | to_json }}
|
||||||
|
{% endif %}
|
||||||
{% if kube_vip_controlplane_enabled %}
|
{% if kube_vip_controlplane_enabled %}
|
||||||
- name: cp_enable
|
- name: cp_enable
|
||||||
value: "true"
|
value: "true"
|
||||||
|
@ -35,11 +41,17 @@ spec:
|
||||||
value: kube-system
|
value: kube-system
|
||||||
- name: vip_ddns
|
- name: vip_ddns
|
||||||
value: {{ kube_vip_ddns_enabled | string | to_json }}
|
value: {{ kube_vip_ddns_enabled | string | to_json }}
|
||||||
|
- name: cp_detect
|
||||||
|
value: {{ kube_vip_cp_detect | string | to_json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if kube_vip_services_enabled %}
|
{% if kube_vip_services_enabled %}
|
||||||
- name: svc_enable
|
- name: svc_enable
|
||||||
value: "true"
|
value: "true"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if kube_vip_svc_leasename %}
|
||||||
|
- name: svc_leasename
|
||||||
|
value: {{ kube_vip_svc_leasename | string | to_json }}
|
||||||
|
{% endif %}
|
||||||
{% if kube_vip_enableServicesElection %}
|
{% if kube_vip_enableServicesElection %}
|
||||||
- name: svc_election
|
- name: svc_election
|
||||||
value: "true"
|
value: "true"
|
||||||
|
@ -47,6 +59,8 @@ spec:
|
||||||
{% if kube_vip_leader_election_enabled %}
|
{% if kube_vip_leader_election_enabled %}
|
||||||
- name: vip_leaderelection
|
- name: vip_leaderelection
|
||||||
value: "true"
|
value: "true"
|
||||||
|
- name: vip_leasename
|
||||||
|
value: {{ kube_vip_leasename | string | to_json }}
|
||||||
- name: vip_leaseduration
|
- name: vip_leaseduration
|
||||||
value: {{ kube_vip_leaseduration | string | to_json }}
|
value: {{ kube_vip_leaseduration | string | to_json }}
|
||||||
- name: vip_renewdeadline
|
- name: vip_renewdeadline
|
||||||
|
@ -54,6 +68,10 @@ spec:
|
||||||
- name: vip_retryperiod
|
- name: vip_retryperiod
|
||||||
value: {{ kube_vip_retryperiod | string | to_json }}
|
value: {{ kube_vip_retryperiod | string | to_json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if kube_vip_enable_node_labeling %}
|
||||||
|
- name: enable_node_labeling
|
||||||
|
value: {{ kube_vip_enable_node_labeling | string | to_json }}
|
||||||
|
{% endif %}
|
||||||
{% if kube_vip_bgp_enabled %}
|
{% if kube_vip_bgp_enabled %}
|
||||||
- name: bgp_enable
|
- name: bgp_enable
|
||||||
value: "true"
|
value: "true"
|
||||||
|
|
Loading…
Reference in New Issue