Files
docs/.gitea/workflows/application.yaml
潘舒啸23 fdecce139d
All checks were successful
CI/CD Pipeline for mengning.com.cn / build (push) Successful in 1m51s
ci-cd使用crd yaml完成更新mengning.com.cn (#8)
Co-authored-by: panshuxiao <panshuxiao@mail.ustc.edu.cn>
Reviewed-on: #8
Co-authored-by: 潘舒啸23 <chitu438@163.com>
Co-committed-by: 潘舒啸23 <chitu438@163.com>
2025-12-09 06:34:44 +00:00

53 lines
1.1 KiB
YAML

apiVersion: application.devstar.cn/v1
kind: Application
metadata:
name: mengningsoftware
namespace: web-servers
labels:
app.kubernetes.io/component: web-server
app.kubernetes.io/managed-by: devstar
app.kubernetes.io/name: mengningsoftware
spec:
environment:
NGINX_VERSION: "1.24.0"
expose: true
networkPolicy:
gateway:
enabled: true
hosts:
- "mengning.com.cn"
ports:
- name: http
number: 80
protocol: HTTP
- name: https
number: 443
protocol: HTTPS
tls:
- hosts:
- "mengning.com.cn"
minProtocolVersion: "TLSv1_2"
mode: SIMPLE
secretName: mengningsoftware-tls
secretNamespace: istio-system
replicas: 2
resources:
cpu: "500m"
memory: "512Mi"
service:
enabled: true
type: ClusterIP
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
template:
type: stateless
image: ${DOCKER_REGISTRY_ADDRESS}/${DOCKER_REPOSITORY_ARTIFACT}:${DOCKER_IMAGE_TAG}
ports:
- name: http
port: 80
protocol: TCP