Update k8s/overlays/local/patches/deployment-patch.yaml
Some checks failed
eCommerce-backend/pipeline/head Something is wrong with the build of this commit
Some checks failed
eCommerce-backend/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@@ -1,14 +1,33 @@
|
||||
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
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ecommerce-app
|
||||
namespace: ecommerce
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
spec:
|
||||
initContainers:
|
||||
- name: run-migrations
|
||||
imagePullPolicy: Always
|
||||
# imagePullSecrets are set at pod level below
|
||||
containers:
|
||||
- name: ecommerce-app
|
||||
imagePullPolicy: Always
|
||||
imagePullSecrets:
|
||||
- name: harbor-registry-secret # kubectl create secret docker-registry harbor-registry-secret ...
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user