feat(grainlab): Added Staging environment to ArgoCD.
This commit is contained in:
57
manifests/artemis/grainlab-production/app-deployment.yaml
Normal file
57
manifests/artemis/grainlab-production/app-deployment.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: grainlab
|
||||
namespace: grainlab-production
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: grainlab
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: grainlab
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: ghcr-cred
|
||||
containers:
|
||||
- name: grainlab
|
||||
image: ghcr.io/daniel-luke/grainlab:1.0.0
|
||||
imagePullPolicy: Always
|
||||
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
- name: PORT
|
||||
value: "3000"
|
||||
- name: HOST
|
||||
value: "0.0.0.0"
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: grainlab-app
|
||||
- secretRef:
|
||||
name: grainlab-database
|
||||
- secretRef:
|
||||
name: grainlab-s3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
failureThreshold: 6
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
memory: 512Mi
|
||||
Reference in New Issue
Block a user