ArgoCD Deployment

This commit is contained in:
2026-09-28 19:28:51 +01:00
parent 9bc0bce407
commit f487d5e7c1
8 changed files with 225 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
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