Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx 安装补充 #16

Open
nangongchengfeng opened this issue Jan 21, 2022 · 3 comments
Open

nginx 安装补充 #16

nangongchengfeng opened this issue Jan 21, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@nangongchengfeng
Copy link
Contributor

nangongchengfeng commented Jan 21, 2022

yum install nginx nginx-mod-stream -y

安装nginx时,建议 安装上 nginx-mod-stream ,不然在添加
stream {
upstream kube-apiserver {
server 10.4.7.21:6443 max_fails=3 fail_timeout=30s;
server 10.4.7.22:6443 max_fails=3 fail_timeout=30s;
}
server {
listen 7443;
proxy_connect_timeout 2s;
proxy_timeout 900s;
proxy_pass kube-apiserver;
}
}
可能会报错,会显示没有这个stream模块。
感谢楼主分享

@ben1234560
Copy link
Owner

非常nice的建议和解决方法,如果感兴趣可以修改md文件,并提交以便记录你的贡献者身份(默认情况下本周会将你的内容更新到md文件,如图)
image

@ben1234560 ben1234560 added good first issue Good for newcomers and removed good first issue Good for newcomers labels Jan 21, 2022
@nangongchengfeng
Copy link
Contributor Author

已经提交贡献,但不知道方法是否对不对,可能需要您的指导。

@ben1234560
Copy link
Owner

抱歉,没有收到你的Pull requests,请确认下
image

@ben1234560 ben1234560 added the documentation Improvements or additions to documentation label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants