Files
go-otel/k8s/deployment.yaml
T
mats 0ed1cb4355
Build and Publish / Metadata (push) Has been cancelled
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled
some refinement
2026-04-07 12:44:55 +02:00

68 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: otel-debug-receiver
spec:
replicas: 1
selector:
matchLabels:
app: otel-debug-receiver
template:
metadata:
labels:
app: otel-debug-receiver
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- name: otel-debug
image: matst80/otel-debug:latest
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
ports:
- containerPort: 8080
name: http
- containerPort: 4317
name: grpc
- containerPort: 4318
name: otlp-http
env:
- name: GRPC_GO_LOG_SEVERITY_LEVEL
value: "info"
- name: OTELLOG_PATH
value: "/logs/otel-agent.log"
volumeMounts:
- name: log-dir
mountPath: /logs
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"
volumes:
- name: log-dir
emptyDir: {}