本文主要是介绍【ACW 服务端】k8s部署,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
k8s部署
---
apiVersion: apps/v1
kind: Deployment
metadata:annotations:k8s.kuboard.cn/displayName: 【wu-smart-acw-server】后台服务端labels:k8s.kuboard.cn/layer: svck8s.kuboard.cn/name: wu-smart-acw-servername: wu-smart-acw-servernamespace: defaultresourceVersion: '7282869'
spec:progressDeadlineSeconds: 600replicas: 1revisionHistoryLimit: 10selector:matchLabels:k8s.kuboard.cn/layer: svck8s.kuboard.cn/name: wu-smart-acw-serverstrategy:rollingUpdate:maxSurge: 25%maxUnavailable: 25%type: RollingUpdatetemplate:metadata:annotations:kubectl.kubernetes.io/restartedAt: '2024-02-23T18:34:13+08:00'creationTimestamp: nulllabels:k8s.kuboard.cn/layer: svck8s.kuboard.cn/name: wu-smart-acw-serverspec:containers:- env:- name: MAIN_DB_HOSTvalue: 'cloud-mysql:3306'- name: JAVA_OPTSvalue: '-Xms128m -Xmx256m'image: >-registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-smart-acw-server:1.2.2-JDK17-SNAPSHOTimagePullPolicy: Alwaysname: wu-smart-acw-serverresources:limits:memory: 512Mirequests:memory: 512MiterminationMessagePath: /dev/termination-logterminationMessagePolicy: FilednsPolicy: ClusterFirstrestartPolicy: AlwaysschedulerName: default-schedulersecurityContext: {}terminationGracePeriodSeconds: 30---
apiVersion: v1
kind: Service
metadata:annotations: {}labels:k8s.kuboard.cn/layer: svck8s.kuboard.cn/name: wu-smart-acw-servername: wu-smart-acw-servernamespace: defaultresourceVersion: '7042572'
spec:clusterIP: 10.96.194.59externalTrafficPolicy: Clusterports:- name: ikr7henodePort: 30193port: 18080protocol: TCPtargetPort: 18080- name: c6hyh3nodePort: 31193port: 19080protocol: TCPtargetPort: 19080selector:k8s.kuboard.cn/layer: svck8s.kuboard.cn/name: wu-smart-acw-serversessionAffinity: Nonetype: 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
输入包名称
客户端使用
这篇关于【ACW 服务端】k8s部署的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!