diff --git a/deploy/k3s/alpha/frontend/deployment.yml b/deploy/k3s/alpha/frontend/deployment.yml index d9b81ae..5c3105a 100644 --- a/deploy/k3s/alpha/frontend/deployment.yml +++ b/deploy/k3s/alpha/frontend/deployment.yml @@ -15,6 +15,21 @@ spec: spec: containers: - name: hosting-frontend - image: gitea.vidoks.fr/sortifal/hosting-frontend:latest + image: gitea.vidoks.fr/sortifal/hosting-frontend-alpha:latest ports: - - containerPort: 80 + - containerPort: 3000 + env: + - name: NEXT_PUBLIC_API_URL + value: "https://api.portfolio-host.com/api" + livenessProbe: + httpGet: + path: / + port: 3000 + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 3000 + initialDelaySeconds: 5 + periodSeconds: 5 diff --git a/deploy/k3s/alpha/frontend/service.yml b/deploy/k3s/alpha/frontend/service.yml index 0e9a84d..9060a90 100644 --- a/deploy/k3s/alpha/frontend/service.yml +++ b/deploy/k3s/alpha/frontend/service.yml @@ -8,5 +8,6 @@ spec: app: hosting-frontend ports: - port: 80 - targetPort: 80 + targetPort: 3000 + protocol: TCP type: ClusterIP diff --git a/deploy/k3s/prod/frontend/deployment.yml b/deploy/k3s/prod/frontend/deployment.yml index 98f9ce5..ee43876 100644 --- a/deploy/k3s/prod/frontend/deployment.yml +++ b/deploy/k3s/prod/frontend/deployment.yml @@ -15,9 +15,24 @@ spec: spec: containers: - name: hosting-frontend - image: gitea.vidoks.fr/sortifal/hosting-frontend:latest + image: gitea.vidoks.fr/sortifal/hosting-frontend-prod:latest ports: - - containerPort: 80 + - containerPort: 3000 + env: + - name: NEXT_PUBLIC_API_URL + value: "https://api.portfolio-host.com/api" + livenessProbe: + httpGet: + path: / + port: 3000 + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 3000 + initialDelaySeconds: 5 + periodSeconds: 5 diff --git a/deploy/k3s/prod/frontend/service.yml b/deploy/k3s/prod/frontend/service.yml index d6aaff2..854dddd 100644 --- a/deploy/k3s/prod/frontend/service.yml +++ b/deploy/k3s/prod/frontend/service.yml @@ -8,5 +8,6 @@ spec: app: hosting-frontend ports: - port: 80 - targetPort: 80 + targetPort: 3000 + protocol: TCP type: ClusterIP