140 lines
4.0 KiB
YAML
140 lines
4.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: imes-basic-mom-auth
|
|
name: imes-basic-mom-auth
|
|
namespace: prd
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app: imes-basic-mom-auth
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: imes-basic-mom-auth
|
|
annotations:
|
|
mom.nalinv.group/source-revision: a35906e66528af61adc3e11fb36aa4153c36d8e6
|
|
mom.nalinv.group/jar-sha256: 69ba92146c302108bfdd566d6bf13eecfe68d2f75cd6e09ab04f80273ac6cccb
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- amd64
|
|
containers:
|
|
- args:
|
|
- start
|
|
- web
|
|
env:
|
|
- name: PORT
|
|
value: '3000'
|
|
- name: GR05A18C8848_HOST
|
|
value: mom-register
|
|
- name: GR05A18C8848_PORT
|
|
value: '8848'
|
|
- name: NACOS_HOST
|
|
value: mom-register
|
|
- name: NACOS_PORT
|
|
value: '8848'
|
|
- name: REDIS_HOST
|
|
value: mom-redis
|
|
- name: REDIS_PORT
|
|
value: '6379'
|
|
- name: SPRING_REDIS_HOST
|
|
value: mom-redis
|
|
- name: SPRING_REDIS_PORT
|
|
value: '6379'
|
|
- name: SPRING_DATA_REDIS_HOST
|
|
value: mom-redis
|
|
- name: SPRING_DATA_REDIS_PORT
|
|
value: '6379'
|
|
- name: MYSQL_HOST
|
|
value: mysql-prd
|
|
- name: MYSQL_PORT
|
|
value: '3306'
|
|
- name: HOST_IP
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: status.hostIP
|
|
- name: POD_IP
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: status.podIP
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: metadata.name
|
|
- name: MEMORY_SIZE
|
|
value: 4xlarge
|
|
- name: SERVER_SHUTDOWN
|
|
value: graceful
|
|
- name: SPRING_LIFECYCLE_TIMEOUT_PER_SHUTDOWN_PHASE
|
|
value: 30s
|
|
- name: JAVA_TOOL_OPTIONS
|
|
value: -Ddruid.testOnBorrow=true -Ddruid.mysql.usePingMethod=false -Ddruid.validationQueryTimeout=3 -Ddruid.phyTimeoutMillis=1800000
|
|
- name: SPRING_DATASOURCE_DRUID_TEST_ON_BORROW
|
|
value: 'true'
|
|
- name: SPRING_DATASOURCE_DRUID_VALIDATION_QUERY_TIMEOUT
|
|
value: '3'
|
|
- name: SPRING_DATASOURCE_DRUID_PHY_TIMEOUT_MILLIS
|
|
value: '1800000'
|
|
- name: APP_SHUTDOWN_DRAIN_SECONDS
|
|
value: '40'
|
|
image: 192.168.100.49:30002/prd/imes-basic-mom-auth@sha256:d1d989112ee6ecdd92955a6e7c868904d5b2d80f62fd44ae5e993ac08aaf44b1
|
|
imagePullPolicy: IfNotPresent
|
|
name: mom-auth
|
|
ports:
|
|
- containerPort: 3000
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
memory: 4Gi
|
|
requests:
|
|
memory: 256Mi
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
readinessProbe:
|
|
tcpSocket: null
|
|
httpGet:
|
|
path: /actuator/health/readiness
|
|
port: 3000
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 6
|
|
startupProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 3000
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 60
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 3000
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 6
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 90
|
|
minReadySeconds: 90
|