上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: 第一种方法用yum 安装,快捷方便 yum install epel-release yum install nginx 第二种方法是编译安装: 注:nginx安装需要依赖pcre、openssl,所以提前安装后依赖包然后再安装nginx 1、官网下载nginx版本 2、./configure 3、 阅读全文
posted @ 2022-06-29 10:09 opscool 阅读(30) 评论(0) 推荐(0)
摘要: 1、docker pull 一个nginx(可自选版本或默认最新版本) 2、将容器运行起来,挂载前端目录与配置文件 docker run -d -p 9999:80 --name 名称 -v /data/ui/dist:/usr/share/nginx/html -v /data/ui/nginx. 阅读全文
posted @ 2022-06-29 09:51 opscool 阅读(163) 评论(0) 推荐(0)
摘要: apiVersion: v1 kind: Service metadata: name: ingress-nginx namespace: ingress-nginx spec: type: ClusterIP ports: - name: http port: 80 targetPort: 80 阅读全文
posted @ 2022-06-28 17:43 opscool 阅读(42) 评论(0) 推荐(0)
摘要: 步骤如下: 1、yum install -y bash-completion 2、source /usr/share/bash-completion/bash_completion 3、source <(kubectl completion bash) 4、echo "source <(kubect 阅读全文
posted @ 2022-06-28 17:03 opscool 阅读(150) 评论(0) 推荐(0)
摘要: 一般情况下 我们是在maste节点上安装网络插件的,然后在join node 节点,这样导致node节点可能无法加载到这些插件 使用如下命令查看kubelet状态 journalctl -f -u kubelet 显示如下内容 no valid networks found in /etc/cni 阅读全文
posted @ 2022-06-28 17:03 opscool 阅读(213) 评论(0) 推荐(0)
摘要: 1、使用 reset命令清理之前加入的信息。 kubeadm reset -f 2、根据提示执行 iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X 3、在master上获取token kubeadm t 阅读全文
posted @ 2022-06-28 17:02 opscool 阅读(1518) 评论(0) 推荐(0)
摘要: 步骤如下: 1、kubeadm reset -f 2、rm -rf ~/.kube/ 3、rm -rf /etc/kubernetes/ 4、rm -rf /etc/systemd/system/kubelet.service.d 5、rm -rf /etc/systemd/system/kubel 阅读全文
posted @ 2022-06-28 17:01 opscool 阅读(844) 评论(0) 推荐(0)
摘要: journalctl -xefu kubelet 阅读全文
posted @ 2022-06-28 17:01 opscool 阅读(378) 评论(0) 推荐(0)
摘要: 解决方法步骤: 1、yum install firewalld 2、systemctl unmask firewalld 3、systemctl enable firewalld 4、systemctl start firewalld 阅读全文
posted @ 2022-06-28 16:59 opscool 阅读(680) 评论(0) 推荐(0)
摘要: 总是拉取 pull imagePullPolicy:Always 只使用本地镜像,从不拉取 imagePullPolicy:Nerver 默认值,本地有则使用本地镜像,不拉取 imagePullPolicy:IfNotPresent 阅读全文
posted @ 2022-06-28 16:58 opscool 阅读(110) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页