上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 1. promethus配置 1. 配置 -- 2. 更新 热更新: # 配置文件添加配置 --web.enable-lifecycle reload: curl -XPOST http://10.10.1.162:9090/-/reload 2. alertmanagers配置 告警配置参考 ht 阅读全文
posted @ 2023-03-15 11:01 wanghhhh 阅读(48) 评论(0) 推荐(0)
摘要: 生命周期 1. 强制删除 kubectl delete pod hook-demo1 --force --grace-period=0 默认所有的优雅退出时间都在30秒内。kubectl delete 命令支持 --grace-period=<seconds>选项,这个选项允许用户用他们自己指定的值 阅读全文
posted @ 2023-02-08 15:42 wanghhhh 阅读(179) 评论(0) 推荐(0)
摘要: 一. 安装前沿 1. 重磅改动 2022 年 5 月 3 日,Kubernetes 1.24 正式发布,在新版本中,我们看到 Kubernetes 作为容器编排的事实标准,正愈发变得成熟,有 12 项功能都更新到了稳定版本,同时引入了很多 实 用 的 功 能 , 例 如 StatefulSets 支 阅读全文
posted @ 2023-01-31 10:32 wanghhhh 阅读(482) 评论(0) 推荐(0)
摘要: import os import sys import subprocess import shutil """ 功能: 1. 拷贝python的proto到go的对应目录之下 2. 生成python的源码 - import . 3. 生成go的源码 """ class cd: def __init 阅读全文
posted @ 2022-11-27 15:30 wanghhhh 阅读(104) 评论(0) 推荐(0)
摘要: 一.新建商品 1. 配置路由 goods-web/router/goods.go package router import ( "github.com/gin-gonic/gin" "mxshop-api/goods-web/api/goods" ) func InitGoodsRoute(Rou 阅读全文
posted @ 2022-11-26 14:56 wanghhhh 阅读(139) 评论(0) 推荐(0)
摘要: 一.目录 1. 新建目录 goods-web/utils/register/consul/register.go 2.目录截图 二.注册配置 1. 概述 1. 创建目录:为了后续支持其他注册中心,保证程序的拓展性,目前只支持consul 2. 利用go语言的特性,实现struct和interfact 阅读全文
posted @ 2022-11-26 12:35 wanghhhh 阅读(106) 评论(0) 推荐(0)
摘要: 一.项目初始化 1.目录结构 C:. │ config-debug.yaml │ config-pro.yaml │ main.go │ ├─api │ └─goods │ goods.go │ ├─config │ config.go │ ├─forms │ goods.go │ ├─global 阅读全文
posted @ 2022-11-15 18:41 wanghhhh 阅读(68) 评论(0) 推荐(0)
摘要: 一.项目初始化 1. 微服务接口分析 2. 数据库表分析 3. 订单支付全流程 4.目录结构 5.初始化model代码 创建goods_srv及model目录 创建goods_srv/model/models.py文件 from datetime import datetime from peewe 阅读全文
posted @ 2022-11-15 11:34 wanghhhh 阅读(106) 评论(0) 推荐(0)
摘要: 一. nacos介绍及安装 1. 官网 https://nacos.io/zh-cn/docs/quick-start.html 二.集成go 1.官网地址 https://github.com/nacos-group/nacos-sdk-go 2. 使用 package main import ( 阅读全文
posted @ 2022-11-12 13:54 wanghhhh 阅读(376) 评论(0) 推荐(0)
摘要: 一. nacos介绍及安装 1. 官网 https://nacos.io/zh-cn/docs/quick-start.html 二.集成python 1.官网地址 https://github.com/nacos-group/nacos-sdk-python 2. 使用 import json i 阅读全文
posted @ 2022-11-11 16:44 wanghhhh 阅读(1431) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页