Files
kagent-oci-devops-demo/k8s/remediation/imagepull-payment.yaml
Oracle Public Cloud User 8b3cc8dd10 adding files 2
2026-09-04 13:54:16 +00:00

59 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: payment-service
namespace: kagent-demo
spec:
replicas: 1
selector:
matchLabels:
app: payment-service
template:
metadata:
labels:
app: payment-service
spec:
imagePullSecrets:
- name: ocir-secret
containers:
- name: payment-service
image: <region-key>.ocir.io/<tenancy-namespace>/kagent-demo/payment-service:<image-tag>
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8082
env:
- name: DEMO_PAYMENT_FORCE_TIMEOUT
valueFrom:
configMapKeyRef:
name: demo-config
key: PAYMENT_FORCE_TIMEOUT
- name: DEMO_PAYMENT_MANUAL_REVIEW_CARD_PREFIX
valueFrom:
configMapKeyRef:
name: demo-config
key: PAYMENT_MANUAL_REVIEW_CARD_PREFIX
startupProbe:
httpGet:
path: /actuator/health/liveness
port: 8082
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 18
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: 8082
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: 8082
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 6