G-EIP-700-TLS-7-1-eip-steph.../website/manifests/common/app.yaml
ange df8cd1ea54
All checks were successful
/ mirror (push) Successful in 4s
/ deploy (push) Successful in 34s
Add pitch (#7)
Co-authored-by: stcb <21@stcb.cc>
Reviewed-on: #7
Co-authored-by: ange <ange@yw5n.com>
Co-committed-by: ange <ange@yw5n.com>
2024-12-20 09:43:39 +00:00

65 lines
1.1 KiB
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: nginx
tls:
- secretName: tls-app
hosts:
- "$BASE_URL"
rules:
- host: "$BASE_URL"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app
port:
name: http
---
apiVersion: v1
kind: Service
metadata:
name: app
labels:
app: app
spec:
selector:
app: app
ports:
- name: http
port: 80
targetPort: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
labels:
app: app
spec:
replicas: $NB_REPLICAS
selector:
matchLabels:
app: app
template:
metadata:
labels:
app: app
spec:
imagePullSecrets:
- name: regcred
containers:
- name: app
image: "$IMAGEAPP"
imagePullPolicy: Always
ports:
- name: http
containerPort: 3000