mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-03 03:47:55 +08:00
90 lines
2.5 KiB
YAML
90 lines
2.5 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
k8s.kuboard.cn/layer: gateway
|
|
k8s.kuboard.cn/name: wu-lazy-cloud-heartbeat-server
|
|
name: wu-lazy-cloud-heartbeat-server
|
|
namespace: infrastructure-construction
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
k8s.kuboard.cn/layer: gateway
|
|
k8s.kuboard.cn/name: wu-lazy-cloud-heartbeat-server
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s.kuboard.cn/layer: gateway
|
|
k8s.kuboard.cn/name: wu-lazy-cloud-heartbeat-server
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: spring.datasource.url
|
|
value: >-
|
|
jdbc:mysql://cloud-mysql:3306/net_infrastructure_construction?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&databaseTerm=SCHEMA
|
|
- name: JAVA_OPTS
|
|
value: '-Xms64m -Xmx128m'
|
|
- name: spring.datasource.username
|
|
value: root
|
|
- name: spring.datasource.password
|
|
value: wujiawei
|
|
- name: spring.datasource.driver-class-name
|
|
value: com.mysql.cj.jdbc.Driver
|
|
image: >-
|
|
registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server-start:1.3.1-JDK17-SNAPSHOT
|
|
imagePullPolicy: Always
|
|
name: wu-lazy-cloud-heartbeat-server
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
k8s.kuboard.cn/layer: gateway
|
|
k8s.kuboard.cn/name: wu-lazy-cloud-heartbeat-server
|
|
name: wu-lazy-cloud-heartbeat-server
|
|
namespace: infrastructure-construction
|
|
spec:
|
|
ports:
|
|
- name: pecjjh
|
|
nodePort: 30560
|
|
port: 7001
|
|
protocol: TCP
|
|
targetPort: 7001
|
|
- name: z4bg3n
|
|
nodePort: 30273
|
|
port: 30273
|
|
protocol: TCP
|
|
targetPort: 30273
|
|
- name: wfcigf
|
|
nodePort: 30550
|
|
port: 6001
|
|
protocol: TCP
|
|
targetPort: 6001
|
|
selector:
|
|
k8s.kuboard.cn/layer: gateway
|
|
k8s.kuboard.cn/name: wu-lazy-cloud-heartbeat-server
|
|
sessionAffinity: None
|
|
type: NodePort
|
|
|