feat: add .gitignore and apps/template for new apps
This commit is contained in:
18
apps/template/manifests/app-service.yaml
Normal file
18
apps/template/manifests/app-service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# Service 範本
|
||||
# 使用方式:將 {{APP_NAME}}、{{PORT}} 替換為實際值
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{APP_NAME}}-service
|
||||
namespace: default
|
||||
labels:
|
||||
app: {{APP_NAME}}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{APP_NAME}}
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: {{PORT|8080}
|
||||
Reference in New Issue
Block a user