added required k8s and docker file

This commit is contained in:
tusuii
2026-02-19 18:09:25 +05:30
parent 09ea6d4efb
commit 173293efaa
17 changed files with 405 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ecommerce
resources:
- ../../base
images:
- name: ecommerce-backend
newName: ecommerce-backend
newTag: latest
patches:
- path: patches/deployment-patch.yaml
target:
kind: Deployment
name: ecommerce-app

View File

@@ -0,0 +1,14 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ecommerce-app
namespace: ecommerce
spec:
template:
spec:
initContainers:
- name: run-migrations
imagePullPolicy: Never
containers:
- name: ecommerce-app
imagePullPolicy: Never