Add Naviya production GitOps deployment
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: application-metier-migrate
|
||||
namespace: application-metier
|
||||
labels:
|
||||
app.kubernetes.io/name: application-metier
|
||||
app.kubernetes.io/component: migration
|
||||
spec:
|
||||
backoffLimit: 2
|
||||
ttlSecondsAfterFinished: 86400
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: application-metier
|
||||
app.kubernetes.io/component: migration
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
automountServiceAccountToken: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: goose
|
||||
image: git.guillin.ovh/baptiste/application-metier/api@sha256:6e0707e2deb796718f432f111cfa96afb60c890ec74c7dc5ab4e7c0ed7904991
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["/app/goose"]
|
||||
args: ["up"]
|
||||
env:
|
||||
- name: GOOSE_DRIVER
|
||||
value: postgres
|
||||
- name: GOOSE_MIGRATION_DIR
|
||||
value: /app/migrations
|
||||
- name: GOOSE_DBSTRING
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: application-metier-secrets
|
||||
key: DATABASE_URL
|
||||
- name: NO_COLOR
|
||||
value: "1"
|
||||
resources:
|
||||
requests:
|
||||
cpu: 25m
|
||||
memory: 32Mi
|
||||
limits:
|
||||
cpu: 250m
|
||||
memory: 128Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
Reference in New Issue
Block a user