Comments (4)
返回http状态码403,而不是404,说明流量已经流入服务器,没有通过验证。具体问题,可以猜一下:
1.检查证书是否有误。
2.本人使用的ingress的部署文件deployment资源中指定端口为hostport模式,即使用物理机的端口。检查traefik容器所运行的服务器端口是否能正常访问。
3.试试代理别的服务,如nginx服务,配置一个traefik https路由规则进行代理,进行尝试。
4.可以降低traefik配置文件中的日志级别,访问出错后观察容器日志,查看有无相关错误信息。
大晚上睡觉前暂时只能想这么多,实在不行可以将配置发我邮箱 [email protected] 给看下。
from blog-example.
我是用的是Docker Desktop中继承的Kubernetes,没使用虚拟机。
尝试代理其他服务也是一样的,比如Nginx:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: nginx-route
namespace: nginx
spec:
entryPoints:
- web
routes:
- match: Host(`nginx.test.com`)
kind: Rule
services:
- name: nginx
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: nginx-route
namespace: nginx
spec:
entryPoints:
- websecure
tls:
secretName: nginx-test-tls
hosts:
- nginx.test.com
routes:
- match: Host(`nginx.test.com`)
kind: Rule
services:
- name: nginx
port: 80
域名均加入hosts,证书都是使用OpenSSL生成的,应该没问题。
我把部署脚本整理一下发你邮箱,麻烦帮我看看,谢谢!
from blog-example.
您好,相关的部署脚本我已发送到您的邮箱,麻烦查收一下。
from blog-example.
弄出来了,还需要装一个metallb,云环境比如ECS中是自带了的,但本地还得自己配。
from blog-example.
Related Issues (15)
- &特殊符号问题 HOT 2
- springcloud-kubernetes-feign-demo使用问题 HOT 2
- 运行springcloud-kubernetes-discovery-demo报错 HOT 3
- 用ttrss订阅贵博rss失败 HOT 1
- 博客相关的问题 HOT 3
- 搭建prometheus的时候,一直提示“CrashLoopBackOff” HOT 7
- 按照这个部署文件部署treafikv2,报错 HOT 1
- kafka logs 不能产生 mq 消息 HOT 3
- 是否能升级到ES7 HOT 1
- 按你的文件部署,为什么node上的80和443端口不是open状态 HOT 4
- https如何自动跳转 HOT 9
- 请教大神,你这个数据怎么来的 HOT 2
- kubernetes-dashboard2.1.0-deploy errers with kubernetes v1.19.7 HOT 1
- trafik2.4按照 部署后出现问题 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog-example.