ubuntu 安装nfs
摘要:#server 端 apt install nfs-kernel-servermkdir -p /data/volumesecho "/data/volumes 192.168.31.0/24(rw,no_root_squash)" >> /etc/exports service nfs-kerne
阅读全文
crictl报错
摘要:root@k8s-master:~# crictl images ls WARN[0000] image connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containe
阅读全文
容器运行时及其命令
摘要:ContainerRuntime 负责容器的整个生命周期。 k8s 1.5之后,k8s通过CRI(容器运行时接口)对接“容器运行时” 为何弃用docker docker使用的容器运行时containerd。本身是符合CRI标准的。 之前: k8s-> dockershim(k8s维护)-> dock
阅读全文
k8s NetworkPolicy
摘要:https://kubernetes.io/zh-cn/docs/concepts/services-networking/network-policies/#the-two-sorts-of-pod-isolation apiVersion: networking.k8s.io/v1 kind:
阅读全文
安装metrics
摘要:components.yaml如下,改了image和认证,直接复制之后执行 kubectl create -f components.yaml apiVersion: v1 kind: ServiceAccount metadata: labels: k8s-app: metrics-server
阅读全文
rbac cka
摘要:题目: Create a new ClusterRole named deployment-clusterrole which only allows to create the following resource types.DeploymentStatefulSetDaemonSet Crea
阅读全文
k8s 升级 cka
摘要:题目: Given an existing Kubernetes cluster running version 1.18.8, upgrade all of the Kubernetes control plane and node Components on the master node on
阅读全文
etcd备份
摘要:CKA题目: TaskFirst, create a snapshot of the existing etcd instance runningat https://127.0.0.1:2379 , saving the snapshot to/srv/data/etcd-snapshot.db
阅读全文
jenkins构建报错
摘要:问题:提交blue ocean的时候报错 解决: jenkins-》全局安全配置 问题:构建刚开始报错 解决: jenkins-》配置节点 报错: 分析: 解决: chmod -R 777 /opt/workspace/
阅读全文
配置告警
摘要:https://github.com/dotbalo/k8s/blob/master/prometheus-operator/alertmanager.yaml vi alertmanager-secret.yaml "global": "resolve_timeout": "5m" #下面新加的
阅读全文
k8s集群外的linux加入prometheus监控
摘要:client 配置:准备一台linux,不在k8s集群中,安装node_exporter wget https://github.com/prometheus/node_exporter/releases/download/v1.6.0/node_exporter-1.6.0.linux-amd64
阅读全文