Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Configure default prometheus port in kube vip #194

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
MonolithProjects marked this conversation as resolved.
Show resolved Hide resolved
- name: metrics
containerPort: "{{ rke2_kubevip_metrics_port }}"
resources: {}
securityContext:
capabilities:
Expand Down
Loading