Some checks failed
eCommerce-backend/pipeline/head Something is wrong with the build of this commit
34 lines
807 B
YAML
34 lines
807 B
YAML
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
|