Revert to Docker image deployment
This commit is contained in:
@@ -15,64 +15,29 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: storefront
|
app: storefront
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
|
||||||
- name: git-clone
|
|
||||||
image: alpine/git
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
mkdir -p /root/.ssh
|
|
||||||
ssh-keyscan -p 222 -t rsa 100.74.155.73 > /root/.ssh/known_hosts 2>/dev/null || true
|
|
||||||
GIT_SSH_COMMAND="ssh -p 222 -o StrictHostKeyChecking=accept-new" git clone ssh://git@100.74.155.73:222/unchained/manoon-headless.git /app-src
|
|
||||||
volumeMounts:
|
|
||||||
- name: app-source
|
|
||||||
mountPath: /app-src
|
|
||||||
- name: npm-install
|
|
||||||
image: node:22-alpine
|
|
||||||
workingDir: /app-src
|
|
||||||
command:
|
|
||||||
- npm
|
|
||||||
- ci
|
|
||||||
- --legacy-peer-deps
|
|
||||||
volumeMounts:
|
|
||||||
- name: app-source
|
|
||||||
mountPath: /app-src
|
|
||||||
- name: npm-build
|
|
||||||
image: node:22-alpine
|
|
||||||
workingDir: /app-src
|
|
||||||
command:
|
|
||||||
- npm
|
|
||||||
- run
|
|
||||||
- build
|
|
||||||
volumeMounts:
|
|
||||||
- name: app-source
|
|
||||||
mountPath: /app-src
|
|
||||||
containers:
|
containers:
|
||||||
- name: storefront
|
- name: storefront
|
||||||
image: node:22-alpine
|
image: manoonoils-store:latest
|
||||||
workingDir: /app-src
|
imagePullPolicy: Never
|
||||||
command:
|
|
||||||
- npm
|
|
||||||
- start
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
|
env:
|
||||||
|
- name: NODE_ENV
|
||||||
|
value: "production"
|
||||||
|
- name: PORT
|
||||||
|
value: "3000"
|
||||||
|
- name: HOSTNAME
|
||||||
|
value: "0.0.0.0"
|
||||||
startupProbe:
|
startupProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: 3000
|
port: 3000
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
failureThreshold: 60
|
failureThreshold: 30
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "256Mi"
|
memory: "128Mi"
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
limits:
|
limits:
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
volumeMounts:
|
|
||||||
- name: app-source
|
|
||||||
mountPath: /app-src
|
|
||||||
volumes:
|
|
||||||
- name: app-source
|
|
||||||
emptyDir: {}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user