背景: Pod处于Terminating 排查: 1、kubectl delete pod pod名 依旧是无法拉为Running状态 2、kubectl get node 输出显示两个Node是NotReady 3、两个节点ip可ping通,登陆到节点上执行 systemctl restart d ...
分类:
其他好文 时间:
2021-03-30 13:49:24
阅读次数:
0
官网对于安装microstack的教程非常简单,似乎只是需要几个命令就可以完美解决问题。然而在安装过程中我出现了如下的问题: error: cannot perform the following tasks: Start snap “microstack” (216) services ([sta ...
分类:
其他好文 时间:
2021-03-30 13:19:48
阅读次数:
0
"scripts": { "start": "cross-env REACT_APP_CHANNEL=wizlong react-app-rewired start" } 参数名必须以REACT_APP_开头,原因是react-script.js中做了正则校验。 ...
分类:
移动开发 时间:
2021-03-29 12:38:06
阅读次数:
0
环境 kubernetes 1.20.4 Spring Boot 2.5.0-M3 目标 timeoutSeconds 执行探测的超时的秒数,默认值 1,最小值 1。 示例 Pod.yaml 定义一个探针需要两秒的命令。 apiVersion: v1 kind: Pod metadata: name ...
分类:
其他好文 时间:
2021-03-29 12:29:00
阅读次数:
0
K8s: minikube start下载iso镜像速度慢 minikube start --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers ...
分类:
其他好文 时间:
2021-03-29 12:10:24
阅读次数:
0
装饰器 定义:是在不改变函数的调用方式,还能为此函数前后添加功能 装饰器的形成过程 一、写一个测试代码时间的函数 import time#导入time模块是为了模拟函数运行时间 def inner(): start=time.time() time.sleep(1) for i in range(1 ...
分类:
其他好文 时间:
2021-03-29 11:52:53
阅读次数:
0
背景介绍 某些情况下,我们在使用Kubernetes作为业务应用的云平台,想要实现应用的蓝绿部署用来迭代应用版本,用lstio太重太复杂,而且它本身定位于流控和网格治理;Ingress-Nginx在0.21版本引入了Canary功能,可以为网关入口配置多个版本的应用程序,使用annotation来控 ...
分类:
Web程序 时间:
2021-03-29 11:40:58
阅读次数:
0
定义和用法 slice() 方法可从已有的数组中返回选定的元素。 arrayObject.slice(start,end) 参数描述 start 必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置。也就是说,-1 指最后一个元素,-2 指倒数第二个元素,以此类推。 end 可选 ...
分类:
编程语言 时间:
2021-03-29 11:38:57
阅读次数:
0
一.首先确保宿主机时间没有问题1. 设置时区timedatectl set-timezone Asia/Shanghai 2. 设置时钟同步systemctl enable chronydsystemctl start chronyd 二. 定制Dockerfile添加时区 $ cat Docker ...
分类:
其他好文 时间:
2021-03-26 15:27:04
阅读次数:
0
方法一、配置shell脚本,使用/etc/rc.local 跟随系统自启动 # cat /home/oracle/script/start.sh lsnrctl start<<EOF EOF sqlplus / as sysdba <<EOF startup alter system registe ...
分类:
数据库 时间:
2021-03-26 15:17:47
阅读次数:
0