-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathfrontend.yaml
109 lines (109 loc) · 3.19 KB
/
frontend.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
containers:
- name: front
image: ghcr.io/nginxinc/bos-frontend:v1.3.0
imagePullPolicy: Always
volumeMounts:
- name: publickey
mountPath: /root/.ssh
readOnly: true
env:
- name: VERSION
value: v1.2.0
- name: PORT
value: "8080"
- name: STATSD_HOST
value: statsd-prometheus-statsd-exporter.prometheus.svc.cluster.local:9125
- name: STATSD_PREFIX
value: bos.frontend
- name: OTEL_EXPORTER_OTLP_ENDPOINT
valueFrom:
configMapKeyRef:
name: tracing-config
key: OTEL_EXPORTER_OTLP_ENDPOINT
- name: ENABLE_TRACING
valueFrom:
configMapKeyRef:
name: tracing-config
key: ENABLE_TRACING
- name: ENABLE_METRICS
valueFrom:
configMapKeyRef:
name: tracing-config
key: ENABLE_METRICS
- name: SCHEME
value: http
# Valid levels are debug, info, warning, error, critical. If no valid level is set, defaults to info.
- name: LOG_LEVEL
value: info
# Set to "true" to enable the CymbalBank logo + title
# - name: CYMBAL_LOGO
# value: "false"
# Customize the bank name used in the header. Defaults to 'Bank of Anthos' - when CYMBAL_LOGO is true, uses 'CymbalBank'
- name: BANK_NAME
value: Bank of Sirius
- name: DEFAULT_USERNAME
valueFrom:
configMapKeyRef:
name: demo-data-config
key: DEMO_LOGIN_USERNAME
- name: DEFAULT_PASSWORD
valueFrom:
configMapKeyRef:
name: demo-data-config
key: DEMO_LOGIN_PASSWORD
- name: APP_NAME
value: frontend
envFrom:
- configMapRef:
name: environment-config
- configMapRef:
name: service-api-config
readinessProbe:
httpGet:
path: /z/health/readiness
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
livenessProbe:
httpGet:
path: /z/health/liveness
port: 8080
initialDelaySeconds: 60
periodSeconds: 15
timeoutSeconds: 30
volumes:
- name: publickey
secret:
secretName: jwt-key
items:
- key: jwtRS256.key.pub
path: publickey
---
apiVersion: v1
kind: Service
metadata:
name: frontend
spec:
type: ClusterIP
selector:
app: frontend
ports:
- name: http
port: 80
targetPort: 8080