-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from kikkomep/fix/deployment-settings
build/helm chart updates
- Loading branch information
Showing
9 changed files
with
301 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: "0.1.0" | ||
appVersion: '0.5.4' | ||
description: A Helm chart for Kubernetes | ||
name: lifemonitor-web | ||
version: 0.1.0 | ||
version: 0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{{- if .Values.monitoring.enabled -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
prometheus.io/port: '9090' | ||
labels: | ||
app.kubernetes.io/name: {{ include "lifemonitor-web.name" . }} | ||
name: {{ .Release.Name }}-frontend-proxy-metrics-headless | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
clusterIP: None | ||
selector: | ||
app.kubernetes.io/name: {{ include "lifemonitor-web.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
helm.sh/chart: {{ include "lifemonitor-web.chart" . }} | ||
ports: | ||
- name: metrics | ||
protocol: TCP | ||
port: 9090 | ||
targetPort: 9090 | ||
|
||
--- | ||
|
||
{{- if .Values.monitoring.servicemonitor.enabled -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "lifemonitor-web.name" . }}-metrics-servicemonitor | ||
# same namespace that Prometheus is running in | ||
namespace: {{ .Values.monitoring.prometheus.namespace }} | ||
labels: | ||
app: {{ include "lifemonitor-web.name" . }} | ||
release: prometheus-stack | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: {{ include "lifemonitor-web.name" . }} | ||
endpoints: | ||
- path: /metrics | ||
port: metrics | ||
interval: 15s | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} # namespace where the app is running | ||
{{- end -}} # end if .Values.monitoring.servicemonitor.enabled | ||
{{- end -}} # end if .Values.monitoring.enabled | ||
|
Oops, something went wrong.