forked from IBM/spring-boot-microservices-on-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
send-notification.yaml
50 lines (50 loc) · 1.14 KB
/
send-notification.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
apiVersion: v1
kind: Service
metadata:
name: send-notification
labels:
app: office-space
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: office-space
tier: notification
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: send-notification
labels:
app: office-space
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: office-space
tier: notification
spec:
containers:
- image: anthonyamanse/send-notification:v1
imagePullPolicy: Always
name: send-notification
env:
- name: GMAIL_SENDER_USER
value: '[email protected]'
- name: GMAIL_SENDER_PASSWORD
value: '[email protected]'
- name: EMAIL_RECEIVER
value: '[email protected]'
- name: OPENWHISK_API_URL_SLACK
value: ''
- name: NOTIFICATION_MESSAGE
value: 'Your balance is over $50,000.00'
- name: OPENWHISK_API_URL_EMAIL
value: ''
ports:
- containerPort: 8080