feat: add .gitignore and apps/template for new apps

This commit is contained in:
2026-04-01 16:32:59 +08:00
parent 98cd6b71cb
commit 19342c6821
10 changed files with 292 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Ingress 範本 - Traefik
# 使用方式:將 {{APP_NAME}}、{{HOST}} 替換為實際值
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{APP_NAME}}-ingress
labels:
app: {{APP_NAME}}
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
spec:
ingressClassName: traefik
rules:
- host: {{HOST}}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{APP_NAME}}-service
port:
number: {{PORT|8080}}