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

View File

@@ -0,0 +1,22 @@
# On the SPOKE's internal Gateway. The hub rewrites Host to this name before forwarding
# (deploy/hub/remote-route.yaml), so it must match remote_hostname there.
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: demo-vivek-11
spec:
parentRefs:
- name: pe-gatewayapi-int
namespace: gatewayapi
# The hub forwards plaintext to port 80 across Private Link.
sectionName: http
hostnames:
- demo-vivek-11.int.apps.lab.crucible.kyndemo.live
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: demo-vivek-11
port: 80

View File

@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: demo-vivek-11
resources:
- deployment.yaml
- service.yaml
- httproute.yaml
images:
- name: demo-vivek-11
newName: cruciblecoredevacr.azurecr.io/demo-vivek-11
# Replace with the commit sha "Build and Push to ACR (lab)" pushed.
newTag: latest

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: demo-vivek-11
labels:
app: demo-vivek-11
spec:
selector:
app: demo-vivek-11
ports:
- name: web
port: 80
targetPort: http