镜像下载、域名解析、时间同步请点击 阿里云开源镜像站
在nginx中增加了这个配置
[root@k8s-node2 ~]# cat /etc/nginx/nginx.confstream {upstream kube-apiserver {server 192.168.10.64:6443 max_fails=3 fail_timeout=30s;server 192.168.10.65:6443 max_fails=3 fail_timeout=30s;}server {listen 7443;proxy_connect_timeout 2s;proxy_timeout 900s;proxy_pass kube-apiserver;}}
nginx -t报错

# 安装nginx源curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo# 先安装yum -y install epel-release#应该是缺少modules模块yum -y install nginx-all-modules.noarch然后在用nginx -t就好了[root@k8s-node2 ~]# nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful
本文转自:https://blog.csdn.net/weixin_45858439/article/details/122215639
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号