Move basicstack.org deployment manifests from basicstack.org/k8s to stack.basicstack.de/apps/basicstack-org to centralize infrastructure configuration and use Harbor registry. Changes: - Created apps/basicstack-org/ with deployment manifests - Updated Argo CD app to point to stack.basicstack.de repo - Deployment now uses Harbor registry at 10.106.73.119:5000 - Set imagePullPolicy: Always for continuous deployment Related: DEV-336 Co-Authored-By: Paperclip <noreply@paperclip.ing>
64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: basicstack-web
|
|
namespace: basicstack-web
|
|
labels:
|
|
app: basicstack-web
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: basicstack-web
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 0
|
|
maxSurge: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: basicstack-web
|
|
spec:
|
|
containers:
|
|
- name: basicstack-web
|
|
image: 10.106.73.119:5000/basicstack-web:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3000
|
|
name: http
|
|
envFrom:
|
|
- configMapRef:
|
|
name: basicstack-web-config
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "200m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: basicstack-web
|
|
namespace: basicstack-web
|
|
spec:
|
|
selector:
|
|
app: basicstack-web
|
|
ports:
|
|
- port: 80
|
|
targetPort: 3000
|
|
name: http
|