Skip to content

Commit

Permalink
kube/minikube: add email configuration variables
Browse files Browse the repository at this point in the history
Define `ConfigMap` variables for email-related
configurations. Update `api` deployment file to
use newly added configurations.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia committed Dec 28, 2023
1 parent 2adeddc commit 8c3219e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions kube/minikube/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@ spec:
configMapKeyRef:
name: kernelci-api-config
key: mongo_service
- name: EMAIL_SENDER
valueFrom:
configMapKeyRef:
name: kernelci-api-config
key: email_sender
- name: EMAIL_PASSWORD
valueFrom:
secretKeyRef:
name: kernelci-api-secret
key: email-password
- name: SMTP_HOST
valueFrom:
configMapKeyRef:
name: kernelci-api-config
key: smtp_host
- name: SMTP_PORT
valueFrom:
configMapKeyRef:
name: kernelci-api-config
key: smtp_port
volumeMounts:
- name: api-volume
mountPath: /home/kernelci/api
Expand Down
3 changes: 3 additions & 0 deletions kube/minikube/configmap/api-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ metadata:
data:
redis_host: "kernelci-api-redis.default.svc.cluster.local"
mongo_service: "mongodb://kernelci-api-db.default.svc.cluster.local:27017"
email_sender: "[email protected]"
smtp_host: "smtp.gmail.com"
smtp_port: "465"

0 comments on commit 8c3219e

Please sign in to comment.