-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkservice.yaml
42 lines (42 loc) · 1.04 KB
/
kservice.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
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: blog-api
labels:
app.kubernetes.io/part-of: blog-api
spec:
template:
metadata:
annotations:
prometheus.io/path: /actuator/prometheus
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
labels:
app.kubernetes.io/part-of: blog-api
spec:
containers:
- name: workload
image: ghcr.io/categolj/blog-api:native
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
key: DATABASE_URL
name: blog-db
- name: logging.level.io.opentelemetry.exporter.zipkin.ZipkinSpanExporter
value: ERROR
ports:
- containerPort: 8080
protocol: TCP
securityContext:
runAsUser: 1000
livenessProbe:
httpGet:
path: /livez
port: 8080
scheme: HTTP
readinessProbe:
httpGet:
path: /readyz
port: 8080
scheme: HTTP