distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | tee /etc/yum.repos.d/nvidia-docker.repo yum install -y nv
##卸载旧的 sudo rpm -e kernel-5.15.13-1.x86_64 sudo rpm -e kernel-devel-5.15.13-1.x86_64 grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg grub2-mkconfig -o /boot/grub2/grub.cfg sed -i 's/GRUB_CMDLINE_LINU
docker pull registry.cn-hangzhou.aliyuncs.com/rancher/rancher:v2.7.9 docker tag registry.cn-hangzhou.aliyuncs.com/rancher/rancher:v2.7.9 rancher/rancher:v2.7.9 docker run --privileged --name ranche
准备工作: CentOS Linux release 7.9 hostnamectl set-hostname k8s-master hostnamectl set-hostname k8s-node1 192.168.117.224 k8s-master 192.168.117.225 k8s-node1 yum -y install wget jq psmisc vim net-t
#!/bin/bash # https://github.com/sklochkov/performance-tuner/blob/master/src/network-queues.sh # https://github.com/torvalds/linux/blob/master/Documentation/networking/scaling.rst yum install redhat-
mkdir -p /data/influx cd /data/influx docker run --rm influxdb:latest influxd print-config > config.yml vim docker-compose.yaml version: "3" services: influxdb: image: influxdb:latest
安装爱快镜像。网络设置登录爱快 界面 ,设置pppoe账号 和 启用pppoe
以下是CentOS 7的详细步骤: 确保您的计算机已连接到Internet。根据您提供的信息,您的计算机已通过enp1s0接口连接到Internet,IP地址为192.168.1.226。 选择一个未使用的网络接口用于连接其他设备。您可以选择enp2s0、eno1或enp4s0中的任何一个,因为它们的状态都显示为DOWN。 在终端中安装iptables工具(如果尚未安
centos7 tty模式不支持中文,需要去github走 修改后的内核
ip vpn-instance testipv4-family route-distinguisher 250:80#interface Vlanif2ip binding vpn-instance testip address 192.168.37.2 255.255.255.252 ip address 192.168.38.2 255.255.255.252 sub#interface
interface Vlan-interface2ip address x.x.x.x 255.255.255.0ip address 192.168.1.2 255.255.255.252 subip policy-based-route aaa#acl number 3000rule 0 permit ip source x.x.x.x 0.0.0.255#policy-based-route
加联合索引ALTER TABLE netADD UNIQUE KEY(time, id,name);删除联合索引ALTER TABLE net DROP INDEX `time`;查询重复值SELECT*FROM`net`WHERE( `time`, `id`,`name` ) IN ( SELECT `time`, `id`,`name` FROM `net` GROUP BY `time
#version=DEVELinstallcmdlinelang en_US.UTF-8keyboard usrootpw --iscrypted $1$8_CHARAC$3G2QA50K.Cqd0wTxGPfs81selinux --disabledfirewall --enabledtimezone Asia/Shanghaireboot%packages@^minimal@corechron
kind: PersistentVolumeClaimapiVersion: v1metadata: name: nginx-web-claimspec: storageClassName: nfs-client accessModes: - ReadWriteMany resources: requests: storage: 1000Mi---apiVersion
yum install -y nfs-utils rpcbind存储节点:vim /etc/exports/data1 192.168.100.0/24(rw,async,no_root_squash,no_all_squash)mkdir -p /data1systemctl start rpcbindsystemctl enable rpcbindexportfs -arv所有节点show
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.1/deploy/static/provider/cloud/deploy.yamlkubectl label nodes k8s-node1 hasIngress=truegrep -rn image deploy.yamlcrictl
监控 metrics-serverwget https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yamlsed -i "s#k8s.gcr.io/metrics-server#registry.cn-hangzhou.aliyuncs.com/chenby#g" compon
Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "k8s.gcr.io/pause:3.6": failed to pull image "k8s.gcr.io/pause:3.6": failed to pull and unpack image "k8s.gcr
Container runtime network not ready" networkReady="NetworkRe报错解决:先部署了calico,后加入node节点,没有同步 calico认证#报错解决cd /etc/cni/net.d/scp * root@k8s-node1:/etc/cni/net.d/
master节点kubeadm token createkubeadm token listopenssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'node节点&nb
curl -L https://github.com/projectcalico/calico/releases/download/v3.23.0/calicoctl-linux-amd64 -o calicoctlchmod +x ./calicoctlmv calicoctl /usr/local/bin/wget https://docs.projectcalico.org/manifest
git clone https://github.com/yuyicai/update-kube-cert.gitcd update-kube-certchmod 755 update-kubeadm-cert.sh./update-kubeadm-cert.sh all
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yamlkubectl edit svc -n kubernetes-dashboard kubernetes-dashboard type: ClusterIP --> type:
准备工作:CentOS Linux release 8.5.2111uname -aLinux k8s-master 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linuxhostnamectl set-hostname k8s-masterhostnamectl
yum install -y epel-release bash-completionsource /usr/share/bash-completion/bash_completionsource <(kubectl completion bash)echo "source <(kubectl completion bash)" >> ~/.bashrc
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/curl -LO https://storage.googleap
open as下载软件链接:https://pan.baidu.com/s/1k-1EGPzSc6bQU6Yf9f_7yA 提取码:heic部署yum install 软件passwd openvpn mv pyovpn-2.0-py3.6.egg /usr/local/openvpn_as/lib/python/pyovpn-2.0-py3.6.eggsystemctl restart
!1.png(https://s2.51cto.com/images/20211025/1635145418782228.png?xossprocess=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)!2.png(
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号