This directory contains helpful scripts for working with deployKF.
This script automatically syncs the ArgoCD applications that make up deployKF.
- Bash
4.2
or later (macOS has3.2
by default, update withbrew install bash
) - The
kubectl
CLI is installed (install guide) - The
argocd
CLI is installed (install guide) - The
jq
CLI is installed (install guide) - A deployKF "app of apps" has been applied to the cluster (example for plugin mode)
- The deployKF version being used is
0.1.2
or later (release notes)
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 inSecret/argocd-initial-admin-secret
. - Prompt for confirmation before pruning (deleting) resources during a sync (defaults to
no
after 30 seconds).
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.