简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
k8s中删除处于Terminating状态的namespace
将ns以json输出的内容保存到tmp.json文件中kubectl get namespace monitoring -o json > tmp.json删除finalizers 字段中的内容{"apiVersion": "v1","kind": "Namespace","metadata": {"annotations": {"kubectl.kubernetes.io/last-app
k8s集群中pod的时间与宿主机不一致
1.在pod中添加如下信息。volumeMounts:- mountPath: /etc/localtimename: date-configvolumes:- name: date-confighostPath:path: /usr/share/zoneinfo/Asia/Shanghai2.重新apply一下pod。kubectl apply -f xxx.yam
使用prometheus监控k8s集群+grafana出图
prometheus官方:https://prometheus.io/grafana官方:https://grafana.com/1.部署prometheus我这里是采用的二进制安装,写了个脚本;包可以提前下好上传到主机,内网环境下wget不下来会安装失败;sh install_prometheusvim install_prometheus#!/bin/bash##***************
到底了