0

exploring functionality of Gitlab autodevops find feature then you can use repo/.gitlab/auto-deploy-values.yaml file to customize deploy process with lifecycle.preStop command all works great, but then i try to use application.migrateCommand looks like k8s don't even create job for migration

#my_value_file
# resources:
#   limits:
#     cpu: 100m
#     memory: 128Mi
#   requests:
#     cpu: 100m
#     memory: 128Mi


## preStop

# lifecycle: 
#   preStop:
#     exec:
#       command: ['/bin/sh', '-c', 'curl -X POST XXXXXX'] ## notify

application.migrateCommand: sleep 600 ## sleep for test purpose any command i try wont start. 

i also take look in template file there value apply in process of deploy https://gitlab.com/charts/auto-deploy-app/-/blob/master/templates/db-migrate-hook.yaml

inside template it need to be just command and no other imports

https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/-/tree/master/assets/auto-deploy-app

try to find any example of usage this feature in live projects, read Helm documentation and initial templates, use other feature from same document

but this one don't work at all

N K
  • 1

0 Answers0