diff --git a/charts/ds-server/Chart.yaml b/charts/ds-server/Chart.yaml index 55ad019..1f7f9b8 100644 --- a/charts/ds-server/Chart.yaml +++ b/charts/ds-server/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - email: dustin@elegantthemes.com name: Elegant Themes name: ds-server -version: 1.0.7 +version: 1.0.8 diff --git a/charts/ds-server/templates/ds-server.yml b/charts/ds-server/templates/ds-server.yml index 39cfe83..09300fb 100644 --- a/charts/ds-server/templates/ds-server.yml +++ b/charts/ds-server/templates/ds-server.yml @@ -3,6 +3,8 @@ kind: Service metadata: name: {{ .Release.Name }} namespace: {{ .Release.Namespace }} + labels: + app: {{ .Release.Name }} spec: selector: app: {{ .Release.Name }} @@ -12,6 +14,19 @@ spec: name: nodejs --- +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: ds-server + namespace: ds-app +spec: + selector: + matchLabels: + app: ds-server + endpoints: + - port: nodejs +--- + apiVersion: apps/v1 kind: Deployment metadata: