mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-08-23 22:16:39 +00:00
feat(x509-certificate-exporter): add NodePort Service support
Signed-off-by: Vitaliy D <vi7alya@gmail.com>
This commit is contained in:
committed by
Arthur Chaloin
parent
f35f6cef6e
commit
84cd2ba7be
@@ -495,7 +495,7 @@ in the container namespace.
|
||||
| secretsExporter.affinity | object | `{}` | Affinity for Pods of the TLS Secrets exporter |
|
||||
| secretsExporter.debugMode | bool | `false` | Should debug messages be produced by the TLS Secrets exporter |
|
||||
| secretsExporter.enabled | bool | `true` | Should the TLS Secrets exporter be running |
|
||||
| secretsExporter.excludeLabels | list | `[]` | Exclude TLS Secrets having these labels. Items can be keys such as `my-label` or also require a value with syntax `my-label=my-value`. |
|
||||
| secretsExporter.excludeLabels | list | `[]` | Exclude TLS Secrets having these labels. Items can be keys such as `my-label` or also require a value with syntax `my-label=my-value`. |
|
||||
| secretsExporter.excludeNamespaces | list | `[]` | Exclude namespaces from being scanned by the TLS Secrets exporter (evaluated after `includeNamespaces`) |
|
||||
| secretsExporter.includeLabels | list | `[]` | Only watch TLS Secrets having these labels (all secrets if empty). Items can be keys such as `my-label` or also require a value with syntax `my-label=my-value`. |
|
||||
| secretsExporter.includeNamespaces | list | `[]` | Restrict the list of namespaces the TLS Secrets exporter should scan for certificates to watch (all namespaces if empty) |
|
||||
@@ -512,7 +512,9 @@ in the container namespace.
|
||||
| service.annotations | object | `{}` | Annotations to add to the Service |
|
||||
| service.create | bool | `true` | Should a headless Service be installed (required for ServiceMonitor) |
|
||||
| service.extraLabels | object | `{}` | Extra labels to add to the Service |
|
||||
| service.nodePort | string | `nil` | K8S node TCP port to expose the Service on. Relevant only when service.type is "NodePort" or "LoadBalancer" |
|
||||
| service.port | int | `9793` | TCP port to expose the Service on |
|
||||
| service.type | string | `"ClusterIP"` | Service type |
|
||||
|
||||
## ⚖️ License
|
||||
|
||||
|
||||
@@ -16,10 +16,16 @@ metadata:
|
||||
{{- . | toYaml | trim | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- name: metrics
|
||||
port: {{ .Values.service.port }}
|
||||
targetPort: metrics
|
||||
{{- if and .Values.service.nodePort (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) }}
|
||||
nodePort: {{ .Values.service.nodePort }}
|
||||
{{- else if eq .Values.service.type "ClusterIP" }}
|
||||
nodePort: null
|
||||
{{- end }}
|
||||
selector:
|
||||
{{- include "x509-certificate-exporter.selectorLabels" . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
+6
-2
@@ -96,14 +96,14 @@ secretsExporter:
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
|
||||
|
||||
# -- Restrict the list of namespaces the TLS Secrets exporter should scan for certificates to watch (all namespaces if empty)
|
||||
includeNamespaces: []
|
||||
# -- Exclude namespaces from being scanned by the TLS Secrets exporter (evaluated after `includeNamespaces`)
|
||||
excludeNamespaces: []
|
||||
# -- Only watch TLS Secrets having these labels (all secrets if empty). Items can be keys such as `my-label` or also require a value with syntax `my-label=my-value`.
|
||||
includeLabels: []
|
||||
# -- Exclude TLS Secrets having these labels. Items can be keys such as `my-label` or also require a value with syntax `my-label=my-value`.
|
||||
# -- Exclude TLS Secrets having these labels. Items can be keys such as `my-label` or also require a value with syntax `my-label=my-value`.
|
||||
excludeLabels: []
|
||||
|
||||
hostPathsExporter:
|
||||
@@ -193,8 +193,12 @@ rbacProxy:
|
||||
service:
|
||||
# service.create -- Should a headless Service be installed (required for ServiceMonitor)
|
||||
create: true
|
||||
# -- Service type
|
||||
type: ClusterIP
|
||||
# service.port -- TCP port to expose the Service on
|
||||
port: 9793
|
||||
# -- K8S node TCP port to expose the Service on. Relevant only when service.type is "NodePort" or "LoadBalancer"
|
||||
nodePort: null
|
||||
# service.annotations -- Annotations to add to the Service
|
||||
annotations: {}
|
||||
# service.extraLabels -- Extra labels to add to the Service
|
||||
|
||||
Reference in New Issue
Block a user