-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest.yaml
57 lines (55 loc) · 1.3 KB
/
rest.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: filefighter-rest-deployment
labels:
app: filefighter
spec:
selector:
matchLabels:
app: filefighter-rest
template:
metadata:
labels:
app: filefighter-rest
spec:
containers:
- name: ff-rest
image: filefighter/rest # https://hub.docker.com/r/filefighter/rest
env:
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: ff-secret
key: username
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: ff-secret
key: password
- name: DB_NAME
value: "filefighter"
- name: DB_CONTAINER_NAME
value: "ff-db-service" # hostname of the database
- name: SPRING_PROFILES_ACTIVE
value: "prod"
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 10
periodSeconds: 3
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: ff-rest-service
spec:
selector:
app: filefighter-rest
ports:
- protocol: TCP
port: 80
targetPort: 8080