Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.46 KB

setup_argocd_dev_environment.md

File metadata and controls

53 lines (41 loc) · 1.46 KB

Deploying a development environment

Prequisites

  • An OCP 4.x Development cluster.
  • Must have cluster admin.
  • Follow the steps here.

Instructions

Create the project aicoe-argocd-dev and argocd-test. The latter will be used for deploying a dev application via ArgoCD.

oc new-project argocd-test
oc new-project aicoe-argocd-dev

Deploy ArgoCD

git clone [email protected]:AICoE/aicoe-cd.git
cd aicoe-cd

# Deploy Cluser objects
kustomize build manifests/crds --enable_alpha_plugins | oc apply -f -

# Deploy Non Cluster objects
kustomize build manifests/overlays/dev --enable_alpha_plugins | oc apply -f -

Configure Auth

Once deployed, there are some additional configurations, run this script:

examples/configure_development.sh

Feel free to look inside the script for detailed comments on what configurations are applied.

Cleanup

Run the following commands to clean up your environment.

kustomize build manifests/overlays/dev --enable_alpha_plugins | oc delete -f -
kustomize build manifests/crds --enable_alpha_plugins | oc delete -f -
oc delete group dev
oc delete project argocd-test
oc delete project aicoe-argocd-dev

You may ignore the following error when removing secrets:

Error from server (NotFound): error when deleting "STDIN": secrets "argocd-dex-server-oauth-token" not found
Error from server (NotFound): error when deleting "STDIN": secrets "dev-cluster-spec" not found