generated from apeirora/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdice-java.yaml
More file actions
47 lines (47 loc) · 1.08 KB
/
dice-java.yaml
File metadata and controls
47 lines (47 loc) · 1.08 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: dice-java
spec:
replicas: 1
selector:
matchLabels:
app: dice-java
template:
metadata:
labels:
app: dice-java
spec:
containers:
- name: dice-java
image: ghcr.io/apeirora/audit-log-poc-for-otel/dice-java:latest
imagePullPolicy: IfNotPresent
env:
- name: REST_PORT
value: "8082"
- name: OTEL_EXPORTER_OTLP_ENDPOINT_GRPC
value: "http://otel-collector:4317"
- name: OTEL_EXPORTER_OTLP_ENDPOINT_HTTP
value: "http://otel-collector:4318"
ports:
- containerPort: 8082
volumeMounts:
- name: audit-logs
mountPath: /var/log/audit
volumes:
- name: audit-logs
emptyDir: {} # Survives container crashes, not pod restarts
---
apiVersion: v1
kind: Service
metadata:
name: dice-java
spec:
selector:
app: dice-java
ports:
- protocol: TCP
port: 8082
targetPort: 8082
nodePort: 30382
type: NodePort