forked from IBM/spring-boot-microservices-on-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compute-interest-api.yaml
58 lines (58 loc) · 1.31 KB
/
compute-interest-api.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
51
52
53
54
55
56
57
58
---
apiVersion: v1
kind: Service
metadata:
name: compute-interest-api
labels:
app: office-space
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: office-space
tier: compute
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: compute-interest-api
labels:
app: office-space
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: office-space
tier: compute
spec:
containers:
- image: anthonyamanse/compute-interest-api:v1
imagePullPolicy: Always
name: compute-interest-api
env:
- name: MYSQL_DB_USER
valueFrom:
secretKeyRef:
name: demo-credentials
key: username
- name: MYSQL_DB_PASSWORD
valueFrom:
secretKeyRef:
name: demo-credentials
key: password
- name: MYSQL_DB_HOST
valueFrom:
secretKeyRef:
name: demo-credentials
key: host
- name: MYSQL_DB_PORT
valueFrom:
secretKeyRef:
name: demo-credentials
key: port
ports:
- containerPort: 8080