上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 58 下一页
摘要: 什么是controller 实际存在的,管理和运行容器的对象 Pod 和 Controller 关系 Pod 是通过 Controller 实现应用的运维,比如伸缩、滚动升级等等 Pod 和 Controller 之间通过 label 标签建立关系 Deployment 控制器应用场景 场景:Web 阅读全文
posted @ 2022-11-30 08:49 VipSoft 阅读(103) 评论(0) 推荐(0)
摘要: 定义一组 Pod 的访问规则 存在的意义 防止 Pod 失联(服务发现),Pod 重启后,IP会变 定义一组 Pod 访问策略,负载均衡 Pod 和 Service 关系 根据 label 和 selector 标签建立关联,实现 Pod 的负载均衡和服务发现,Service 或者Ingress 资 阅读全文
posted @ 2022-11-29 15:19 VipSoft 阅读(67) 评论(0) 推荐(0)
摘要: Pod 是 k8s 系统中可以创建和管理的最小单元, 是资源对象模型中由用户创建或部署的最小资源对象模型, 也是在 k8s 上运行容器化应用的资源对象, 其他的资源对象都是用来支撑或者扩展 Pod 对象功能的, 比如控制器对象是用来管控 Pod 对象的, Service 或者Ingress 资源对象 阅读全文
posted @ 2022-11-28 09:08 VipSoft 阅读(282) 评论(0) 推荐(0)
摘要: 使用空格做为缩进 缩进的空格数目不重要, 只要相同层级的元素左侧对齐即可 低版本缩进时不允许使用 Tab 键, 只允许使用空格 使用#标识注释, 从这个字符一直到行尾, 都会被解释器忽略 使用 三个 - 进行多项配置 | | | | | | | apiVersion | API版本 可以用 kube 阅读全文
posted @ 2022-11-25 10:20 VipSoft 阅读(80) 评论(0) 推荐(0)
摘要: Docker 常用命令 Docker 常用命令 # 查看API版本 [root@k8smaster ~]# kubectl api-versions # 重启 K8S [root@k8smaster ~]# systemctl restart kubelet # 查看 kubelet 状态 [roo 阅读全文
posted @ 2022-11-24 17:56 VipSoft 阅读(845) 评论(0) 推荐(1)
摘要: Master Api Server 统一入口,以 Restful 方式,交给 etcd 存储 Scheduler 节点调试,选择 Node 节点,做应用部署 Controller Manager 处理集群中常规后台任务,一个资源对应一个控制器 etcd 存储系统,用于保存集群相关的数据 Node k 阅读全文
posted @ 2022-11-24 15:53 VipSoft 阅读(132) 评论(0) 推荐(0)
摘要: K8S Pod 一直处于 Pending 状态 有几个原因可以阻止 Pod 运行,但我们将描述三个主要问题: 调度问题:无法在任何节点上调度 Pod。 镜像问题:下载容器镜像时出现问题。 依赖性问题:Pod 需要一个卷、Secret 或 ConfigMap 才能运行。 [root@k8smaster 阅读全文
posted @ 2022-11-23 10:05 VipSoft 阅读(1576) 评论(0) 推荐(0)
摘要: Kubernetes(K8S) 配置静态资源服务 apiVersion: v1 kind: ConfigMap metadata: name: img-config namespace: vipsoft data: img.conf: | server { charset utf-8; listen 阅读全文
posted @ 2022-11-21 13:10 VipSoft 阅读(395) 评论(0) 推荐(0)
摘要: 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 阅读(407) 评论(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 阅读(993) 评论(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 阅读(466) 评论(0) 推荐(0)
摘要: k8s 线上集群中 Node 节点状态变成 NotReady 状态,导致整个 Node 节点中容器停止服务。 一个 Node 节点中是可以运行多个 Pod 容器,每个 Pod 容器可以运行多个实例 App 容器。Node 节点不可用,就会直接导致 Node 节点中所有的容器不可用,Node 节点是否 阅读全文
posted @ 2022-11-16 15:58 VipSoft 阅读(2912) 评论(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 阅读(838) 评论(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 阅读(447) 评论(0) 推荐(0)
摘要: 前置条件:使用 Kubeadm 部署 Kubernetes(K8S) 安装 安装ingress-nginx组件(在master节点执行) 通过 ip+port 号进行访问,使用 Service 里的 NodePort 实现,把端口对外暴露 缺陷:一个端口只能使用一次,一个端口对应一个应用,实际使用中 阅读全文
posted @ 2022-11-10 16:04 VipSoft 阅读(483) 评论(0) 推荐(0)
摘要: 使用 Kubeadm 部署 Kubernetes(K8S) 安装 -- Ingress-Ngnix 使用 Kubeadm 部署 Kubernetes(K8S) 安装 -- 持久化存储(NFS网络存储) NFS 存在一个弊端,需要知道NFS服务器的地址,配在 yaml 中 PV:持久化存储,对存储资源 阅读全文
posted @ 2022-11-10 15:58 VipSoft 阅读(273) 评论(0) 推荐(0)
摘要: 使用 Kubeadm 部署 Kubernetes(K8S) 安装 使用 Kubeadm 部署 Kubernetes(K8S) 安装 -- Ingress-Ngnix Volume 是 Pod 中能够被多个容器访问的共享目录。 Kubernetes 的 Volume 定义在 Pod 上,它被一个 Po 阅读全文
posted @ 2022-11-10 13:05 VipSoft 阅读(430) 评论(0) 推荐(0)
摘要: Intellij IDEA 中运行正常,linux 运行正常, cmd 下运行 报:MalformedInputException: Input length = 1 微服务项目,在Nacos中做了配置,在引用 Nacos中配置时,编码问题,导致的错误 org.yaml.snakeyaml.erro 阅读全文
posted @ 2022-11-09 10:13 VipSoft 阅读(735) 评论(0) 推荐(0)
摘要: 镜像仓库,镜像已更新,版本没更新, K8S 拉取后,还是早的服务,原因:imagePullPolicy 镜像拉取策略 默认为本地有了就不拉取,需要修改 [root@k8smaster ~]# kubectl edit deployment/javademo1 ..... spec: containe 阅读全文
posted @ 2022-11-08 11:28 VipSoft 阅读(759) 评论(0) 推荐(0)
摘要: Jenkins Pipeline SSH Publisher 环境变量、参数引用 要用双引号 在 Pipeline 脚本中,如果要使用变量,就必须使用 “ 双引号 pipeline { agent any environment { PROJECT_NAME='vipsoft' } stages { 阅读全文
posted @ 2022-11-07 11:59 VipSoft 阅读(2268) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 58 下一页