* add canary config server * remove the canary config code from the controller * remove port exposure for canary config
24 lines
600 B
YAML
24 lines
600 B
YAML
{{- if .Values.canaryDeployment.enabled }}
|
|
{{- if .Values.serviceMonitor.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: canaryconfig-monitor
|
|
{{- if .Values.serviceMonitor.namespace }}
|
|
namespace: {{ .Values.serviceMonitor.namespace }}
|
|
{{- end }}
|
|
{{- with .Values.serviceMonitor.additionalServiceMonitorLabels }}
|
|
labels:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
namespaceSelector:
|
|
matchNames:
|
|
- {{ .Release.Namespace }}
|
|
selector:
|
|
matchLabels:
|
|
svc: canaryconfig
|
|
endpoints:
|
|
- targetPort: 8080
|
|
{{- end -}}
|
|
{{- end -}} |