k8s部署
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
k8s.kuboard.cn/displayName: 【wu-smart-acw-server】后台服务端
labels:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: wu-smart-acw-server
name: wu-smart-acw-server
namespace: default
resourceVersion: '7282869'
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: wu-smart-acw-server
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
kubectl.kubernetes.io/restartedAt: '2024-02-23T18:34:13+08:00'
creationTimestamp: null
labels:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: wu-smart-acw-server
spec:
containers:
- env:
- name: MAIN_DB_HOST
value: 'cloud-mysql:3306'
- name: JAVA_OPTS
value: '-Xms128m -Xmx256m'
image: >-
registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-smart-acw-server:1.2.2-JDK17-SNAPSHOT
imagePullPolicy: Always
name: wu-smart-acw-server
resources:
limits:
memory: 512Mi
requests:
memory: 512Mi
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: svc
k8s.kuboard.cn/name: wu-smart-acw-server
name: wu-smart-acw-server
namespace: default
resourceVersion: '7042572'
spec:
clusterIP: 10.96.194.59
externalTrafficPolicy: Cluster
ports:
- name: ikr7he
nodePort: 30193
port: 18080
protocol: TCP
targetPort: 18080
- name: c6hyh3
nodePort: 31193
port: 19080
protocol: TCP
targetPort: 19080
selector:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: wu-smart-acw-server
sessionAffinity: None
type: NodePort
版本: 1.2.2-JDK17-SNAPSHOT
项目地址:wu-smart-acw
演示地址:演示地址 admin/admin
Java增删改查代码生成
找到对应菜单
选择你需要的数据实例
选择数据库
选择数据库表
选择客户端(如果是本地ACW服务代码启动默认注册上的客户端ID是 acw-server 如果使用的是acw客户端选择你配置的客户端ID)
输入你要生成的文件地址(绝对地址 选择到项目所在位置即可,不需要选择到src)
文件前缀(可选择)
选择你项目的架构:DDD、MVC、FEIGN
ORM选择:mybatis、Lazy
输入包名称
客户端使用