上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 60 下一页
摘要: 7z压缩测试 为了方便,将7z的安装目录,添加到环境变量中 # 不加环境变量的话,需要带上全路径 C:\Users\vipsoft>"C:\\Program Files\\7-Zip\\7z" a -tzip a.zip D:\workspace\admin\dist\* 7-Zip 19.00 ( 阅读全文
posted @ 2022-11-18 15:14 VipSoft 阅读(422) 评论(0) 推荐(0)
摘要: 原因,数据库为 MySQL 5.7 需要在yaml加上参数 mysql.db.param: "characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&serverTim 阅读全文
posted @ 2022-11-17 11:20 VipSoft 阅读(1016) 评论(0) 推荐(0)
摘要: kubectl top (metrics-server) node NotFound components.yaml 网上的各种方法都有问题,找到了一个完整版的 yaml apiVersion: v1 kind: ServiceAccount metadata: labels: k8s-app: m 阅读全文
posted @ 2022-11-16 16:54 VipSoft 阅读(483) 评论(0) 推荐(0)
摘要: k8s 线上集群中 Node 节点状态变成 NotReady 状态,导致整个 Node 节点中容器停止服务。 一个 Node 节点中是可以运行多个 Pod 容器,每个 Pod 容器可以运行多个实例 App 容器。Node 节点不可用,就会直接导致 Node 节点中所有的容器不可用,Node 节点是否 阅读全文
posted @ 2022-11-16 15:58 VipSoft 阅读(2936) 评论(2) 推荐(0)
摘要: POM 添加依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.3.7</version> </dependency> <!--添加依赖--> <dependency> 阅读全文
posted @ 2022-11-16 12:03 VipSoft 阅读(851) 评论(0) 推荐(0)
摘要: WebService cxf No compiler detected, make sure you are running on top of a JDK instead of a JRE [2022-11-14 09:55:01.644] ERROR [scheduling-1] ZysoftS 阅读全文
posted @ 2022-11-14 10:17 VipSoft 阅读(456) 评论(0) 推荐(0)
摘要: 前置条件:使用 Kubeadm 部署 Kubernetes(K8S) 安装 安装ingress-nginx组件(在master节点执行) 通过 ip+port 号进行访问,使用 Service 里的 NodePort 实现,把端口对外暴露 缺陷:一个端口只能使用一次,一个端口对应一个应用,实际使用中 阅读全文
posted @ 2022-11-10 16:04 VipSoft 阅读(496) 评论(0) 推荐(0)
摘要: 使用 Kubeadm 部署 Kubernetes(K8S) 安装 -- Ingress-Ngnix 使用 Kubeadm 部署 Kubernetes(K8S) 安装 -- 持久化存储(NFS网络存储) NFS 存在一个弊端,需要知道NFS服务器的地址,配在 yaml 中 PV:持久化存储,对存储资源 阅读全文
posted @ 2022-11-10 15:58 VipSoft 阅读(278) 评论(0) 推荐(0)
摘要: 使用 Kubeadm 部署 Kubernetes(K8S) 安装 使用 Kubeadm 部署 Kubernetes(K8S) 安装 -- Ingress-Ngnix Volume 是 Pod 中能够被多个容器访问的共享目录。 Kubernetes 的 Volume 定义在 Pod 上,它被一个 Po 阅读全文
posted @ 2022-11-10 13:05 VipSoft 阅读(442) 评论(0) 推荐(0)
摘要: Intellij IDEA 中运行正常,linux 运行正常, cmd 下运行 报:MalformedInputException: Input length = 1 微服务项目,在Nacos中做了配置,在引用 Nacos中配置时,编码问题,导致的错误 org.yaml.snakeyaml.erro 阅读全文
posted @ 2022-11-09 10:13 VipSoft 阅读(751) 评论(0) 推荐(0)
摘要: 镜像仓库,镜像已更新,版本没更新, K8S 拉取后,还是早的服务,原因:imagePullPolicy 镜像拉取策略 默认为本地有了就不拉取,需要修改 [root@k8smaster ~]# kubectl edit deployment/javademo1 ..... spec: containe 阅读全文
posted @ 2022-11-08 11:28 VipSoft 阅读(774) 评论(0) 推荐(0)
摘要: Jenkins Pipeline SSH Publisher 环境变量、参数引用 要用双引号 在 Pipeline 脚本中,如果要使用变量,就必须使用 “ 双引号 pipeline { agent any environment { PROJECT_NAME='vipsoft' } stages { 阅读全文
posted @ 2022-11-07 11:59 VipSoft 阅读(2287) 评论(0) 推荐(0)
摘要: Jenkins 多分支流水线 构建过程中报错。 [Pipeline] // node [Pipeline] End of Pipeline java.nio.charset.MalformedInputException: Input length = 1 at java.base/java.nio 阅读全文
posted @ 2022-11-04 11:27 VipSoft 阅读(457) 评论(0) 推荐(0)
摘要: 实际应用过程中,一般多分支流水线的方式用得比较多一些, master 对应 生成环境 develop 对应 测试环境, 将不同分支的代码构建到不同的环境中 添加 Jenkinsfile 文件 Jenkinsfile 内容见:Jenkins Pipeline 流水线 - 完整构建 Pipeline S 阅读全文
posted @ 2022-11-03 17:23 VipSoft 阅读(1538) 评论(0) 推荐(0)
摘要: Docker Jenkins 安装配置 Windows 2016 安装 Jenkins 前置条件可参考 Jenkins Pipeline 流水线 - 拉代码(SVN) + Maven 编译打包 Jenkins Pipeline 流水线 - 添加节点 使用代理 Jenkins Pipeline 流水线 阅读全文
posted @ 2022-11-03 09:43 VipSoft 阅读(1156) 评论(2) 推荐(1)
摘要: 可以通过参数的方式,指定构建的版本 有两种方式 界面添加 Pipeline Script 脚本配置 (需要Build 一次,然后生效,不知道有没有其它办法) General 界面添加 Pipeline Script Declarative Directive Generator pipeline { 阅读全文
posted @ 2022-11-03 09:38 VipSoft 阅读(1045) 评论(2) 推荐(1)
摘要: Jenkins Pipeline 流水线 - K8S kubectl 升级 使用代理节点 Remote SSH 远程执行命令进行升级 Remote SSH 方式 安装插件 SSH Pipeline Steps Pipeline SSH 脚本 credentialsId: 'K8SMaster' pi 阅读全文
posted @ 2022-11-02 16:59 VipSoft 阅读(722) 评论(0) 推荐(0)
摘要: Jenkins Pipeline 流水线 Publish over SSH 将jar上传到远程 Docker 服务器、执行编译命令生成镜像、将镜像上传到阿里仓库 Publish over SSH Jar包上传、编译、上传 生成上传 jar 包脚本配置 生成上传 Dockerfile 脚本配置 注意在 阅读全文
posted @ 2022-11-02 15:21 VipSoft 阅读(904) 评论(0) 推荐(0)
摘要: Jenkins Pipeline 流水线 - 上传文件 Publish over SSH 执行命令 Jenkins插件安装 Publish over SSH 系统配置 生成代码 sshPublisher: Send build artifacts over SSH 需要在 生成 sshPublish 阅读全文
posted @ 2022-11-02 14:19 VipSoft 阅读(7303) 评论(0) 推荐(0)
摘要: 添加凭证 Pipeline script pipeline { agent any stages { stage('withCredentials 使用凭证') { steps { withCredentials([usernamePassword(credentialsId: 'DockerSer 阅读全文
posted @ 2022-11-02 09:44 VipSoft 阅读(3815) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 60 下一页