Compare commits

..

2 Commits

Author SHA1 Message Date
019c3da82c
feat(consul): 添加注册表暴露控制功能
- 在 templates/consul-ingress.yaml 中添加了 registry_expose 条件判断
- 在 values.yaml 中添加了 registry_expose 配置项,默认为 false
2025-01-21 22:05:04 +08:00
3c9701dab3
feat(ingress): add facade ingress configurations for HTTP and TLS
feat(service): create facade service definition with TCP and UDP ports
2025-01-21 21:59:45 +08:00
4 changed files with 59 additions and 1 deletions

View File

@ -1,3 +1,4 @@
{{- if .Values.registry_expose }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
@ -36,4 +37,6 @@ spec:
service:
name: consul
port:
number: 8500
number: 8500
{{- end }}

View File

@ -0,0 +1,39 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: facade-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- facade.kl.suyiiyii.top
secretName: facade-tls
rules:
- host: facade.kl.suyiiyii.top
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: facade
port:
number: 8500
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: facade-http-ingress
spec:
rules:
- host: facade.kl.suyiiyii.top
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: facade
port:
number: 8500

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: facade
spec:
ports:
- name: "8500"
port: 8500
targetPort: 8500
- name: "8600"
port: 8600
protocol: UDP
targetPort: 8600
selector:
app: facade

View File

@ -1,4 +1,5 @@
registry_expose: false
registry: ghcr.io
tag: "250121-1414be4"
deployments: