# 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}
