Skip to content

Commit

Permalink
Extract config in configmaps.
Browse files Browse the repository at this point in the history
  • Loading branch information
BerniVarga committed Feb 16, 2018
1 parent c2e0363 commit 4a602ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 6 additions & 3 deletions helm/splunk-event-reader/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: APP_PORT
value: "{{ .Values.env.APP_PORT }}"
value: "8080"
- name: ENVIRONMENT
valueFrom:
configMapKeyRef:
Expand All @@ -44,6 +44,11 @@ spec:
configMapKeyRef:
name: global-config
key: splunk.index
- name: SPLUNK_URL
valueFrom:
configMapKeyRef:
name: global-config
key: splunk.url
- name: SPLUNK_USER
valueFrom:
secretKeyRef:
Expand All @@ -54,8 +59,6 @@ spec:
secretKeyRef:
name: splunk-event-reader
key: splunk.rest-api.password
- name: SPLUNK_URL
value: "{{ .Values.env.SPLUNK_URL }}"
ports:
- containerPort: 8080
livenessProbe:
Expand Down
3 changes: 0 additions & 3 deletions helm/splunk-event-reader/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@ resources:
memory: 300Mi
limits:
memory: 550Mi
env:
APP_PORT: "8080"
SPLUNK_URL: "https://financialtimes.splunkcloud.com:8089"


0 comments on commit 4a602ea

Please sign in to comment.