新增 RSSHub 的 IngressRoute、Service 和 Endpoints 配置,支持通过 Traefik 进行 HTTPS 访问
This commit is contained in:
45
k8s/xiongxiao.me/apps/rsshub/app.yaml
Normal file
45
k8s/xiongxiao.me/apps/rsshub/app.yaml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
# RSSHub - rsshub.xiongxiao.me (端口 1200)
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: rsshub-https
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`rsshub.xiongxiao.me`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: rsshub-external
|
||||||
|
port: 1200
|
||||||
|
tls:
|
||||||
|
certResolver: letsencrypt
|
||||||
|
|
||||||
|
---
|
||||||
|
# RSSHub 服务 (端口 1200, 本地)
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: rsshub-external
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 1200
|
||||||
|
targetPort: 1200
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Endpoints
|
||||||
|
metadata:
|
||||||
|
name: rsshub-external
|
||||||
|
namespace: default
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 121.4.112.18
|
||||||
|
ports:
|
||||||
|
- port: 1200
|
||||||
|
name: http
|
||||||
Reference in New Issue
Block a user