Skip to content

Commit b9bd786

Browse files
committed
implement: add environments to chart
1 parent 2932b87 commit b9bd786

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

install/charts/templates/deployment.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,14 @@ spec:
2424
- name: aws-dms-task-exporter
2525
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
2626
imagePullPolicy: {{ .Values.image.pullPolicy }}
27+
{{- with .Values.env }}
28+
env:
29+
{{- toYaml . | nindent 12 }}
30+
{{- end }}
2731
ports:
28-
- name: http
32+
- name: metrics
2933
containerPort: {{ .Values.service.port }}
3034
protocol: TCP
31-
livenessProbe:
32-
httpGet:
33-
path: /
34-
port: http
35-
readinessProbe:
36-
httpGet:
37-
path: /
38-
port: http
3935
resources:
4036
{{- toYaml .Values.resources | nindent 12 }}
4137
{{- with .Values.nodeSelector }}

install/charts/templates/service.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ metadata:
44
name: aws-dms-task-exporter
55
labels:
66
app: aws-dms-task-exporter
7+
{{- with .Values.podAnnotations }}
8+
annotations:
9+
{{- toYaml . | nindent 6 }}
10+
{{- end }}
711
spec:
812
type: {{ .Values.service.type }}
913
ports:
1014
- port: {{ .Values.service.port }}
11-
targetPort: http
15+
targetPort: metrics
1216
protocol: TCP
13-
name: http
17+
name: metrics
1418
selector:
1519
app: aws-dms-task-exporter

install/charts/values.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,11 @@ affinity: {}
3030

3131
labels: {}
3232

33-
podAnnotations: {}
33+
podAnnotations:
34+
prometheus.io/scrape: "true"
35+
36+
env: []
37+
# - name: AWS_ACCESS_KEY_ID
38+
# value: YOUR_AWS_ACCESS_KEY
39+
# - name: AWS_SECRET_ACCESS_KEY
40+
# value: YOUR_AWS_SECRET_ACCESS_KEY

0 commit comments

Comments
 (0)