Skip to content

Commit

Permalink
Merge pull request #194 from koseb9/kube-vip
Browse files Browse the repository at this point in the history
feat: Configure default prometheus port in kube vip
  • Loading branch information
MonolithProjects authored Feb 26, 2024
2 parents 4a35717 + 58dbce6 commit 3ef3fb1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ rke2_kubevip_ipvs_lb_enable: false
# - param: lb_port
# value: 6443

#Prometheus metrics port for kube-vip
rke2_kubevip_metrics_port: 2112

# Add additional SANs in k8s API TLS cert
rke2_additional_sans: []

Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ rke2_kubevip_ipvs_lb_enable: false
# - param: lb_port
# value: 6443

#Prometheus metrics port for kube-vip
rke2_kubevip_metrics_port: 2112

# Add additional SANs in k8s API TLS cert
rke2_additional_sans: []

Expand Down
5 changes: 4 additions & 1 deletion templates/kube-vip/kube-vip.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
- name: address
value: "{{ rke2_api_ip }}"
- name: prometheus_server
value: :2112
value: ":{{ rke2_kubevip_metrics_port }}"
- name: lb_enable
value: "{{ rke2_kubevip_ipvs_lb_enable }}"
{% if rke2_kubevip_args is defined %}
Expand All @@ -72,6 +72,9 @@ spec:
{% endif %}
image: "{{ rke2_kubevip_image }}"
name: kube-vip
ports:
- name: metrics
containerPort: "{{ rke2_kubevip_metrics_port }}"
resources: {}
securityContext:
capabilities:
Expand Down

0 comments on commit 3ef3fb1

Please sign in to comment.