mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-12-22 19:09:30 +01:00
Updated SMTP user/password generation/storage
This commit is contained in:
parent
fda4c711d7
commit
3f71d54a97
10
manifests/smtp-server/create_secret.sh
Executable file
10
manifests/smtp-server/create_secret.sh
Executable 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}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user