738119cf6d
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 3m0s
Add staging-ca.crt to the Dockerfile so the ASP.NET runtime inside the container trusts the internal staging CA. This fixes server-side gRPC calls from FrontOffice (Blazor Server) to https://cms.se.kbs1.ir which were failing with PartialChain because the container CA store did not include the staging root certificate. Also adds GW_URL env support alongside GwUrl for parity with BackOffice. Co-authored-by: Cursor <cursoragent@cursor.com>
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
---
|
|
# FrontOffice (Blazor Server) staging.
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontoffice
|
|
namespace: default
|
|
labels:
|
|
app: frontoffice
|
|
environment: staging
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontoffice
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontoffice
|
|
spec:
|
|
containers:
|
|
- name: frontoffice
|
|
image: 194.5.195.53:30080/admin/frontoffice:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
env:
|
|
- name: ASPNETCORE_ENVIRONMENT
|
|
value: "Staging"
|
|
- name: GW_URL
|
|
value: "https://cms.se.kbs1.ir"
|
|
- name: GwUrl
|
|
value: "https://cms.se.kbs1.ir"
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "250m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
imagePullSecrets:
|
|
- name: gitea-registry-secret
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: frontoffice-svc
|
|
namespace: default
|
|
labels:
|
|
app: frontoffice
|
|
spec:
|
|
selector:
|
|
app: frontoffice
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
name: http
|
|
type: ClusterIP
|