46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: payment
|
|
labels:
|
|
app: eshop
|
|
service: payment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
service: payment
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: eshop
|
|
service: payment
|
|
spec:
|
|
containers:
|
|
- name: payment-api
|
|
image: {{ .Values.registry }}/payment.api:linux-net6-initial
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
- name: grpc
|
|
containerPort: 81
|
|
protocol: TCP
|
|
livenessProbe:
|
|
httpGet:
|
|
port: 80
|
|
path: /liveness
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 15
|
|
readinessProbe:
|
|
httpGet:
|
|
port: 80
|
|
path: /hc
|
|
initialDelaySeconds: 90
|
|
periodSeconds: 60
|
|
timeoutSeconds: 5
|
|
envFrom:
|
|
- configMapRef:
|
|
name: payment-cm
|