Skip to content

Latest commit

 

History

History
 
 

scripts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

deployKF Reference Scripts

This directory contains helpful scripts for working with deployKF.

This script automatically syncs the ArgoCD applications that make up deployKF.

Requirements:

Behavior:

By default, the script will:

  • Use kubectl port-forwarding to connect to the ArgoCD API server.
  • Assume ArgoCD is installed to the argocd Namespace.
  • Assume the ArgoCD admin password can be found in Secret/argocd-initial-admin-secret.
  • Prompt for confirmation before pruning (deleting) resources during a sync (defaults to no after 30 seconds).

Usage:

To run the script with the default settings:

# clone the deploykf repository (at the 'main' branch)
git clone -b main https://github.com/deployKF/deployKF.git ./deploykf

# change to the argocd-plugin directory
cd ./deploykf/scripts

# ensure the script is executable
chmod +x ./sync_argocd_apps.sh

# sync all deployKF ArgoCD applications
./sync_argocd_apps.sh

NOTE:

  • The script can take around 5-10 minutes to run on first install.
  • If the script fails or is interrupted, you can safely re-run it, and it will pick up where it left off.
  • There are a number of configuration variables at the top of the script which change the default behavior.