60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: demo-vivek-11
|
|
labels:
|
|
app: demo-vivek-11
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: demo-vivek-11
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: demo-vivek-11
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
containers:
|
|
- name: main
|
|
image: demo-vivek-11
|
|
# Only while the tag is `latest`. Remove once kustomization.yaml pins a sha.
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
env:
|
|
- name: OTEL_SERVICE_NAME
|
|
value: demo-vivek-11
|
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
|
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
|
- name: OTEL_EXPORTER_OTLP_PROTOCOL
|
|
value: http/protobuf
|
|
- name: OTEL_RESOURCE_ATTRIBUTES
|
|
value: service.name=demo-vivek-11
|
|
- name: OTEL_METRICS_EXPORTER
|
|
value: otlp
|
|
- name: OTEL_TRACES_EXPORTER
|
|
value: otlp
|
|
- name: OTEL_LOGS_EXPORTER
|
|
value: none
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: http
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 20
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
limits:
|
|
memory: 1Gi
|