blob: a04b89b0337b9627f4076c0f27641b9ae5e7a243 [file] [log] [blame]
apiVersion: apps/v1
kind: Deployment
metadata:
name: dubbo-samples-mesh-provider-v2
namespace: dubbo-demo
spec:
replicas: 2
selector:
matchLabels:
app: dubbo-samples-mesh-provider
version: v2
template:
metadata:
labels:
app: dubbo-samples-mesh-provider
version: v2
annotations:
# Prevent istio rewrite http probe
sidecar.istio.io/rewriteAppHTTPProbers: "false"
spec:
containers:
- name: server
image: dubboteam/dubbo-samples-mesh-provider-v2:0.1
imagePullPolicy: Always
ports:
- name: grpc-tri
containerPort: 50052
protocol: TCP
- name: http-health
containerPort: 22222
protocol: TCP
livenessProbe:
httpGet:
path: /live
port: http-health
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 1
# readinessProbe:
# httpGet:
# path: /ready
# port: http-health
# initialDelaySeconds: 5
# periodSeconds: 5
# timeoutSeconds: 2
startupProbe:
httpGet:
path: /startup
port: http-health
failureThreshold: 30
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2