18 lines
526 B
YAML
18 lines
526 B
YAML
{{- if and .Values.enableSqsTerminationDraining .Values.enablePrometheusServer -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "aws-node-termination-handler.fullname" . }}
|
|
labels:
|
|
{{- include "aws-node-termination-handler.labels" . | nindent 4 }}
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
{{- include "aws-node-termination-handler.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
- name: http-metrics
|
|
port: {{ .Values.prometheusServerPort }}
|
|
targetPort: http-metrics
|
|
protocol: TCP
|
|
{{- end -}}
|