Revert to Docker image deployment
This commit is contained in:
@@ -15,64 +15,29 @@ spec:
|
||||
labels:
|
||||
app: storefront
|
||||
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:
|
||||
- name: storefront
|
||||
image: node:22-alpine
|
||||
workingDir: /app-src
|
||||
command:
|
||||
- npm
|
||||
- start
|
||||
image: manoonoils-store:latest
|
||||
imagePullPolicy: Never
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
- name: PORT
|
||||
value: "3000"
|
||||
- name: HOSTNAME
|
||||
value: "0.0.0.0"
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
periodSeconds: 10
|
||||
failureThreshold: 60
|
||||
failureThreshold: 30
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
volumeMounts:
|
||||
- name: app-source
|
||||
mountPath: /app-src
|
||||
volumes:
|
||||
- name: app-source
|
||||
emptyDir: {}
|
||||
|
||||
Reference in New Issue
Block a user