Skip to content
Snippets Groups Projects
Commit 72427056 authored by Isaac Henderson Johnson Jeyakumar's avatar Isaac Henderson Johnson Jeyakumar Committed by Denis Sukhoroslov
Browse files

added opentelm dependancies & functionality in helm charts

parent f142e1b4
No related branches found
No related tags found
No related merge requests found
......@@ -47,15 +47,22 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
resources:
livenessProbe:
httpGet:
path: {{ .Values.probes.path }}
port: http
initialDelaySeconds: {{ .Values.probes.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.periodSeconds }}
timeoutSeconds: {{ .Values.probes.timeoutSeconds }}
readinessProbe:
httpGet:
path: {{ .Values.probes.path }}
port: http
initialDelaySeconds: {{ .Values.probes.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.periodSeconds }}
timeoutSeconds: {{ .Values.probes.timeoutSeconds }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumes }}
volumeMounts:
......
apiVersion: v1
kind: Service
metadata:
{{- if .Values.monitoring.enabled }}
{{- with .Values.monitoring.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
name: {{ include "tspa-service.fullname" . }}
labels:
{{- include "tspa-service.labels" . | nindent 4 }}
......
......@@ -92,6 +92,15 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
monitoring:
enabled: true
release: cao-monitoring
annotations:
prometheus.io/path: /tspa-service/actuator/prometheus
prometheus.io/scheme: http
prometheus.io/scrape: "true"
# Additional volumes on the output Deployment definition.
volumes:
......@@ -210,7 +219,7 @@ application:
get:
mapping: http://localhost:16003/tspa-service/tspa/v1/
Nameserver:
zonemanager:
Address: 'https://zonemgr.train1.xfsc.dev'
token-server-url: 'https://your-issuer.example/token'
grant-type: 'client_credentials'
......
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: tspa-service-monitor
namespace: cao-monitoring
labels:
app: tspa-service
release: cao-monitoring
spec:
selector:
matchLabels:
app.kubernetes.io/name: tspa-service
release: cao-monitoring
namespaceSelector:
matchNames:
- tspa
endpoints:
- path: /tspa-service/actuator/prometheus
port: http
interval: 15s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment