From da5e00bc31145ea67dd3c5f7af2ece57a9e83ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Mon, 13 Jan 2025 01:34:42 +0800 Subject: [PATCH] feat(manifests): update ingress-nginx configuration for NodePort service type and enable metrics, serviceMonitor, and prometheusRule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- .../ingress-nginx/values.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cluster/manifests/freeleaps-controls-system/ingress-nginx/values.yaml b/cluster/manifests/freeleaps-controls-system/ingress-nginx/values.yaml index b10a44ac..e5374554 100644 --- a/cluster/manifests/freeleaps-controls-system/ingress-nginx/values.yaml +++ b/cluster/manifests/freeleaps-controls-system/ingress-nginx/values.yaml @@ -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