feat: NCS-74 Frontend Deployment config files (#119)
Co-authored-by: Copilot <copilot@github.com> --------- Co-authored-by: shahdlala66 <shahd.lala66@gmail.com> Reviewed-on: #119 Co-authored-by: Shahd Lala <shosho996@blackhole.local> Co-committed-by: Shahd Lala <shosho996@blackhole.local>
This commit was merged in pull request #119.
This commit is contained in:
@@ -57,6 +57,11 @@ spec:
|
|||||||
name: ws
|
name: ws
|
||||||
sources:
|
sources:
|
||||||
direct: true
|
direct: true
|
||||||
|
- origin:
|
||||||
|
kind: Warehouse
|
||||||
|
name: frontend
|
||||||
|
sources:
|
||||||
|
direct: true
|
||||||
promotionTemplate:
|
promotionTemplate:
|
||||||
spec:
|
spec:
|
||||||
steps:
|
steps:
|
||||||
@@ -140,6 +145,13 @@ spec:
|
|||||||
direct: false
|
direct: false
|
||||||
stages:
|
stages:
|
||||||
- staging
|
- staging
|
||||||
|
- origin:
|
||||||
|
kind: Warehouse
|
||||||
|
name: frontend
|
||||||
|
sources:
|
||||||
|
direct: false
|
||||||
|
stages:
|
||||||
|
- staging
|
||||||
promotionTemplate:
|
promotionTemplate:
|
||||||
spec:
|
spec:
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -132,3 +132,18 @@ spec:
|
|||||||
imageSelectionStrategy: SemVer
|
imageSelectionStrategy: SemVer
|
||||||
repoURL: ghcr.io/now-chess/now-chess-systems/ws
|
repoURL: ghcr.io/now-chess/now-chess-systems/ws
|
||||||
strictSemvers: true
|
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
|
||||||
|
|||||||
@@ -665,3 +665,61 @@ spec:
|
|||||||
activeService: nowchess-ws-active
|
activeService: nowchess-ws-active
|
||||||
previewService: nowchess-ws-preview
|
previewService: nowchess-ws-preview
|
||||||
autoPromotionEnabled: true
|
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
|
- protocol: TCP
|
||||||
port: 8084
|
port: 8084
|
||||||
targetPort: 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
|
name: nowchess-core-active
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 8080
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: nowchess-frontend-active
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- nowchess.janis-eccarius.de
|
- nowchess.janis-eccarius.de
|
||||||
|
|||||||
@@ -41,6 +41,13 @@ spec:
|
|||||||
name: nowchess-core-active
|
name: nowchess-core-active
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 8080
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: nowchess-frontend-active
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- st.nowchess.janis-eccarius.de
|
- st.nowchess.janis-eccarius.de
|
||||||
|
|||||||
Reference in New Issue
Block a user