• kubectl get pod -n default | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n default # -n 指定命名空间, grep 搜索条件 #...
  • # 开启 kubectl -n kubesphere-system patch cc ks-installer --type merge --patch '{"spec":{"logging":{"enabled":true},"auditing...
  • 设置副本 # 格式: kubectl patch deployment ${deployment_name} -p '{"spec":{"replicas":10}}' -n ${namespace} # 给admin-plus-nginx设置副...
  • 有这么一个场景,在某个运行docker容器的主机上,查看到某个java进程占用的系统资源比较高,比如内存比较高,我们知道了这个进程是容器的进程,那么,我们怎么能够知道,这个进程是属于哪个容器的呢? 下面的命令,就会向你说明,如何在主机上,通过一个...
  • docker ps -q | xargs docker inspect --format '{{.State.Pid}}, {{.Id}}, {{.Name}}, {{.GraphDriver.Data.WorkDir}}' | grep "f2...
  • create user shishuo identified by 'shishuo@4321..'; grant all privileges on shishuo.* to shishuo@'%' identified by 'shishu2...
  • pip3 install opencv-python==4.6.0.66 -i https://pypi.tuna.tsinghua.edu.cn/simple pip3 install opencv-contrib-python==4.6.0....
  • SELECT CONCAT( 'alter table ', table_schema, '.', table_name, ' modify column ', column_name, ' ', column_type, IF(is_nulla...
  • https://www.cnblogs.com/jakaBlog/p/11381595.html docker-compose.yaml # version: '3.7' services: dns-server: container_name:...