-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeployment.yaml
More file actions
93 lines (93 loc) · 2.71 KB
/
Copy pathdeployment.yaml
File metadata and controls
93 lines (93 loc) · 2.71 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
apiVersion: apps/v1
kind: Deployment
metadata:
name: finops-backend
namespace: finops-team--finops-tools-backend
labels:
app: finops-backend
spec:
replicas: 1
selector:
matchLabels:
app: finops-backend
template:
metadata:
labels:
app: finops-backend
spec:
automountServiceAccountToken: false
# serviceAccountName: finops-backend # wire when Red Hat provides the service account
securityContext:
runAsNonRoot: true
containers:
- name: finops-backend
image: images.paas.redhat.com/finops/finops-tools:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
env:
- name: FINOPS_BACKEND_ADDR
value: ":8080"
- name: FINOPS_BACKEND_MAX_ROWS
value: "1000"
- name: FINOPS_BACKEND_QUERY_TIMEOUT
value: "60s"
- name: SNOWFLAKE_CONNECTIONS
value: "preprod,sandbox"
- name: SNOWFLAKE_DEFAULT_CONNECTION
value: "preprod"
envFrom:
- secretRef:
name: finops-backend-snowflake-preprod-config
- secretRef:
name: finops-backend-snowflake-sandbox-config
volumeMounts:
- name: snowflake-preprod-key
mountPath: /etc/finops/snowflake/preprod
readOnly: true
- name: snowflake-sandbox-key
mountPath: /etc/finops/snowflake/sandbox
readOnly: true
livenessProbe:
httpGet:
path: /livez
port: http
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /readyz
port: http
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
startupProbe:
httpGet:
path: /livez
port: http
periodSeconds: 5
timeoutSeconds: 5
failureThreshold: 12
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
volumes:
- name: snowflake-preprod-key
secret:
secretName: finops-backend-snowflake-preprod-key
- name: snowflake-sandbox-key
secret:
secretName: finops-backend-snowflake-sandbox-key