mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Fixed annotation location
This commit is contained in:
@@ -3,16 +3,6 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "template.fullname" . }}
|
||||
annotations:
|
||||
{{- if .Values.prometheus.enabled }}
|
||||
prometheus.io/scrape: "true"
|
||||
{{- if .Values.application.isSpring }}
|
||||
prometheus.io/path: /actuator/prometheus
|
||||
{{- else }}
|
||||
prometheus.io/path: /metrics
|
||||
{{- end }}
|
||||
prometheus.io/port: "{{ .Values.application.actuatorPort }}"
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
spec:
|
||||
@@ -27,6 +17,15 @@ spec:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- if $.Values.prometheus.enabled }}
|
||||
prometheus.io/scrape: "true"
|
||||
{{- if $.Values.application.isSpring }}
|
||||
prometheus.io/path: /actuator/prometheus
|
||||
{{- else }}
|
||||
prometheus.io/path: /metrics
|
||||
{{- end }}
|
||||
prometheus.io/port: "{{ $.Values.application.actuatorPort }}"
|
||||
{{- end }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user