Skip to content

Commit

Permalink
Add ConfigMap
Browse files Browse the repository at this point in the history
  • Loading branch information
cant-code committed Mar 25, 2024
1 parent f9db31b commit 698f1a0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
27 changes: 27 additions & 0 deletions charts/templates/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "charts.fullname" . }}
labels:
{{- include "charts.labels" . | nindent 4 }}
data:
config.yml: |
mq:
host: localhost
port: 61616
user: artemis
password: artemis
jobs:
transcodingQueue: jms/transcoderQueue
managementQueue: jms/managementQueue
aws:
baseUrl: http://localhost:9000
region: ap-south-1
buckets:
rawVideos: raw-videos
transcodedVideos: transcoded-videos
db:
url: localhost:5432
username: postgres
password: pass
11 changes: 11 additions & 0 deletions charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@ spec:
name: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: "/bin"
name: config
readOnly: true
{{- with .Values.nodeSelector }}
volumes:
- name: config
configMap:
name: {{ include "charts.fullname" . }}
items:
- key: config.yml
path: config.yml
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit 698f1a0

Please sign in to comment.