Updated SMTP user/password generation/storage

This commit is contained in:
CarlosEDP 2018-05-30 11:01:02 -05:00
parent fda4c711d7
commit 3f71d54a97
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
echo "Please enter your Gmail account";
read username;
echo "Please enter your Gmail password";
read -s password;
echo "Creating secret"
kubectl create secret generic smtp-account -n monitoring --from-literal=username=${username} --from-literal=password=${password}

View File

@ -33,9 +33,15 @@ spec:
protocol: TCP
env:
- name: GMAIL_USER
value: "youremail@gmail.com"
valueFrom:
secretKeyRef:
name: smtp-account
key: username
- name: GMAIL_PASSWORD
value: "yourpassword"
valueFrom:
secretKeyRef:
name: smtp-account
key: password
- name: DISABLE_IPV6
value: "True"
- name: RELAY_DOMAINS