44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: apolo-colossus
|
|
namespace: apolo
|
|
labels:
|
|
app.kubernetes.io/name: apolo-colossus
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: colossus
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: apolo-colossus
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: apolo-colossus
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: colossus
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harbor-cred
|
|
containers:
|
|
- name: colossus
|
|
image: harbor.c2et.com/xrf-ssl/xrf-webcolossus:6.0
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 3000
|
|
# Si el contenedor expone / como OK:
|
|
readinessProbe:
|
|
httpGet: { path: /, port: 3000 }
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet: { path: /, port: 3000 }
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 20
|
|
# Si más tarde necesitas forzar backend .net en runtime (solo si la imagen lo lee en runtime):
|
|
# env:
|
|
# - name: NEXT_PUBLIC_APP_BASE_URL
|
|
# value: "https://backend.apolo.c2et.net"
|