190 lines
5.4 KiB
YAML
190 lines
5.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: order-service
|
|
namespace: kagent-demo
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: order-service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: order-service
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: ocir-secret
|
|
containers:
|
|
- name: order-service
|
|
image: <region-key>.ocir.io/<tenancy-namespace>/kagent-demo/order-service:<image-tag>
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8080
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1024Mi
|
|
env:
|
|
- name: SERVICES_INVENTORY_BASE_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: demo-config
|
|
key: INVENTORY_BASE_URL
|
|
- name: SERVICES_PAYMENT_BASE_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: demo-config
|
|
key: PAYMENT_BASE_URL
|
|
- name: DEMO_ORDERS_STUCK_REVIEW_MODE
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: demo-config
|
|
key: ORDER_STUCK_REVIEW_MODE
|
|
- name: DEMO_ORDERS_MANUAL_REVIEW_RATE_THRESHOLD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: demo-config
|
|
key: ORDER_MANUAL_REVIEW_RATE_THRESHOLD
|
|
- name: DEMO_ORDERS_REVENUE_AT_RISK_THRESHOLD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: demo-config
|
|
key: ORDER_REVENUE_AT_RISK_THRESHOLD
|
|
startupProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 8080
|
|
failureThreshold: 30
|
|
periodSeconds: 5
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health/readiness
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
failureThreshold: 6
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 8080
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
---
|
|
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
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: inventory-service
|
|
namespace: kagent-demo
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: inventory-service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: inventory-service
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: ocir-secret
|
|
containers:
|
|
- name: inventory-service
|
|
image: <region-key>.ocir.io/<tenancy-namespace>/kagent-demo/inventory-service:<image-tag>
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8081
|
|
env:
|
|
- name: DEMO_INVENTORY_FORCE_OUTAGE
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: demo-config
|
|
key: INVENTORY_FORCE_OUTAGE
|
|
startupProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 8081
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 18
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health/readiness
|
|
port: 8081
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 6
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 8081
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 20
|
|
timeoutSeconds: 5
|
|
failureThreshold: 6
|