feat: NCS-74 Frontend Deployment config files #119
@@ -57,6 +57,11 @@ spec:
|
||||
name: ws
|
||||
sources:
|
||||
direct: true
|
||||
- origin:
|
||||
kind: Warehouse
|
||||
name: frontend
|
||||
sources:
|
||||
direct: true
|
||||
promotionTemplate:
|
||||
spec:
|
||||
steps:
|
||||
@@ -140,6 +145,13 @@ spec:
|
||||
direct: false
|
||||
stages:
|
||||
- staging
|
||||
- origin:
|
||||
kind: Warehouse
|
||||
name: frontend
|
||||
sources:
|
||||
direct: false
|
||||
stages:
|
||||
- staging
|
||||
promotionTemplate:
|
||||
spec:
|
||||
steps:
|
||||
|
||||
@@ -132,3 +132,18 @@ spec:
|
||||
imageSelectionStrategy: SemVer
|
||||
repoURL: ghcr.io/now-chess/now-chess-systems/ws
|
||||
strictSemvers: true
|
||||
---
|
||||
apiVersion: kargo.akuity.io/v1alpha1
|
||||
kind: Warehouse
|
||||
metadata:
|
||||
name: frontend
|
||||
namespace: nowchess-kargo
|
||||
spec:
|
||||
freightCreationPolicy: Automatic
|
||||
interval: 5m0s
|
||||
subscriptions:
|
||||
- image:
|
||||
discoveryLimit: 20
|
||||
imageSelectionStrategy: SemVer
|
||||
repoURL: ghcr.io/now-chess/now-chess-systems/frontend
|
||||
strictSemvers: true
|
||||
|
||||
@@ -629,3 +629,61 @@ spec:
|
||||
activeService: nowchess-ws-active
|
||||
previewService: nowchess-ws-preview
|
||||
autoPromotionEnabled: true
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Rollout
|
||||
metadata:
|
||||
name: nowchess-frontend
|
||||
labels:
|
||||
app: nowchess-ws
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nowchess-frontend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nowchess-frontend
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: ghcr-pull-secret
|
||||
containers:
|
||||
- name: nowchess-frontend
|
||||
image: ghcr.io/now-chess/now-chess-systems/frontend:latest
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: REACT_APP_API_URL
|
||||
value: http://nowchess-core-active:8080
|
||||
- name: REACT_APP_ACCOUNT_URL
|
||||
value: http://nowchess-account-active:8083
|
||||
- name: REACT_APP_STORE_URL
|
||||
value: http://nowchess-store-active:8085
|
||||
- name: REACT_APP_WS_URL
|
||||
value: http://nowchess-ws-active:8084
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: "10m"
|
||||
memory: "64Mi"
|
||||
limits:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
strategy:
|
||||
blueGreen:
|
||||
activeService: nowchess-frontend-active
|
||||
previewService: nowchess-frontend-preview
|
||||
autoPromotionEnabled: true
|
||||
|
||||
@@ -223,3 +223,27 @@ spec:
|
||||
- protocol: TCP
|
||||
port: 8084
|
||||
targetPort: 8084
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nowchess-frontend-active
|
||||
spec:
|
||||
selector:
|
||||
app: nowchess-frontend
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nowchess-frontend-preview
|
||||
spec:
|
||||
selector:
|
||||
app: nowchess-frontend
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
|
||||
@@ -41,6 +41,13 @@ spec:
|
||||
name: nowchess-core-active
|
||||
port:
|
||||
number: 8080
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nowchess-frontend-active
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- nowchess.janis-eccarius.de
|
||||
|
||||
@@ -41,6 +41,13 @@ spec:
|
||||
name: nowchess-core-active
|
||||
port:
|
||||
number: 8080
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nowchess-frontend-active
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- st.nowchess.janis-eccarius.de
|
||||
|
||||
Reference in New Issue
Block a user