stg-liquibase-deploy-steps

Steps:

  1. release liquibase deploy image:
  1. Log on to stgk8smaster-pci-01
  2. cd into /opt/iad2_kubernetes_for_liquibase/stg/application/liquibase
  3. Git checkout latest version, currently tianyitao-liquibase, future master
  4. sudo bash apply.sh [job_type] [image_version] [action] or sudo bash apply.sh for help message
  5. Log folder and other information will be printed. Example below:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    replacing {IMAGE_VERSION} with 551.0.20211214.799.9f6a920.nocm.1639467754, outputting to liquibase-job-nucleus.liquibase.cassandra.deploy.yaml.211214075413
    job exists, will delete using
    kubectl delete job -n stg-liquibase stgliquibase-nucleus-liquibase-cassandra-deploy
    job.batch "stgliquibase-nucleus-liquibase-cassandra-deploy" deleted
    applying job using
    kubectl apply -n stg-liquibase -f liquibase-job-nucleus.liquibase.cassandra.deploy.yaml.211214075413
    job.batch/stgliquibase-nucleus-liquibase-cassandra-deploy created
    Job running, scanning for log folder
    Checking new serv dir...
    New folder not found, sleep for 5 seconds
    Checking new serv dir...
    New folder not found, sleep for 5 seconds
    Checking new serv dir...
    New folder is 211214075420
    Job is running
    check log file: /central_log_stg/app_logs/stgliquibase/nucleus.liquibase.cassandra.deploy/serv/211214075420/status.log
    or
    check pod: kubectl logs -n stg-liquibase stgliquibase-nucleus-liquibase-cassandra-deploy-qn6fs