Skip to content

Commit

Permalink
implement: add environments to chart
Browse files Browse the repository at this point in the history
  • Loading branch information
estherk0 committed May 9, 2022
1 parent 2932b87 commit b9bd786
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
14 changes: 5 additions & 9 deletions install/charts/templates/deployment.yaml
Expand Up @@ -24,18 +24,14 @@ spec:
- name: aws-dms-task-exporter
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: http
- name: metrics
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
8 changes: 6 additions & 2 deletions install/charts/templates/service.yaml
Expand Up @@ -4,12 +4,16 @@ metadata:
name: aws-dms-task-exporter
labels:
app: aws-dms-task-exporter
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 6 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: metrics
protocol: TCP
name: http
name: metrics
selector:
app: aws-dms-task-exporter
9 changes: 8 additions & 1 deletion install/charts/values.yaml
Expand Up @@ -30,4 +30,11 @@ affinity: {}

labels: {}

podAnnotations: {}
podAnnotations:
prometheus.io/scrape: "true"

env: []
# - name: AWS_ACCESS_KEY_ID
# value: YOUR_AWS_ACCESS_KEY
# - name: AWS_SECRET_ACCESS_KEY
# value: YOUR_AWS_SECRET_ACCESS_KEY

0 comments on commit b9bd786

Please sign in to comment.