ci-cd使用crd yaml完成更新mengning.com.cn (#8)
All checks were successful
CI/CD Pipeline for mengning.com.cn / build (push) Successful in 1m51s
All checks were successful
CI/CD Pipeline for mengning.com.cn / build (push) Successful in 1m51s
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>
This commit is contained in:
52
.gitea/workflows/application.yaml
Normal file
52
.gitea/workflows/application.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user