Skip to content

Kubernetes

Kubernetes Configuration

Health Probes

livenessProbe:
httpGet:
path: /live
port: 3100
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 3100
initialDelaySeconds: 2
periodSeconds: 5

Prometheus ServiceMonitor

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: contractshield
spec:
selector:
matchLabels:
app: contractshield
endpoints:
- port: metrics
path: /metrics

Resource Limits

resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi