Bootstrap FreeKB - ArgoCD - Create Project using the CLI
ArgoCD - Create Project using the CLI

Updated:   |  ArgoCD articles

This assumes:

The argoc proj create command can be used to create a project.

argocd proj create my-project

 

Likewise, you can create a YAML file that will be used to create a project.

apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
  name: my-project
  namespace: openshift-gitops
spec:
  clusterResourceWhitelist:
  - group: '*'
    kind: '*'
  destinations:
  - namespace: '*'
    server: '*'
  sourceRepos:
  - '*'

 

And then the kubectl (Kubernetes) or oc (OpenShift) apply command can be used to create the project. This is nice because the YAML file let's you specfiy exactly how you want the project to be configured.

kubectl apply -f myproject.yaml

 

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 7ccf7c in the box below so that we can be sure you are a human.