feat(manifests): update ingress-nginx configuration for NodePort service type and enable metrics, serviceMonitor, and prometheusRule

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-01-13 01:34:42 +08:00
parent cea95ef680
commit da5e00bc31

View File

@ -493,7 +493,7 @@ controller:
labels: {}
# -- Type of the external controller service.
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
type: LoadBalancer
type: NodePort
# -- Pre-defined cluster internal IP address of the external controller service. Take care of collisions with existing services.
# This value is immutable. Set once, it can not be changed without deleting and re-creating the service.
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
@ -559,9 +559,9 @@ controller:
appProtocol: true
nodePorts:
# -- Node port allocated for the external HTTP listener. If left empty, the service controller allocates one from the configured node port range.
http: ""
http: "38080"
# -- Node port allocated for the external HTTPS listener. If left empty, the service controller allocates one from the configured node port range.
https: ""
https: "38443"
# -- Node port mapping for external TCP listeners. If left empty, the service controller allocates them from the configured node port range.
# Example:
# tcp:
@ -845,7 +845,7 @@ controller:
automountServiceAccountToken: true
# Use certmanager to generate webhook certs
certManager:
enabled: false
enabled: true
# self-signed root certificate
rootCert:
# default to be 5y
@ -860,7 +860,7 @@ controller:
port: 10254
portName: metrics
# if this port is changed, change healthz-port: in extraArgs: accordingly
enabled: false
enabled: true
service:
# -- Enable the metrics service or not.
enabled: true
@ -882,13 +882,13 @@ controller:
# externalTrafficPolicy: ""
# nodePort: ""
serviceMonitor:
enabled: false
enabled: true
additionalLabels: {}
# -- Annotations to be added to the ServiceMonitor.
annotations: {}
## The label to use to retrieve the job name from.
## jobLabel: "app.kubernetes.io/name"
namespace: ""
namespace: "freeleaps-monitoring-system"
namespaceSelector: {}
## Default: scrape .Release.Namespace or namespaceOverride only
## To scrape all, use the following:
@ -910,11 +910,11 @@ controller:
# -- Defines a limit on the number of scraped targets that will be accepted.
targetLimit: 0
prometheusRule:
enabled: false
enabled: true
additionalLabels: {}
# -- Annotations to be added to the PrometheusRule.
annotations: {}
# namespace: ""
namespace: "freeleaps-monitoring-system"
rules: []
# # These are just examples rules, please adapt them to your needs
# - alert: NGINXConfigFailed