Bootstrap FreeKB - ArgoCD - Create Project
ArgoCD - Create Project

Updated:   |  ArgoCD articles

This assumes:

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

argocd proj create my-project

 

Or in the ArgoCD console, at Settings > Projects > New Project, give your project a name and description and click the Create button.

 

You will then have a form that allows you to configure the project, for example, if you want to update the project so that it can only be used for applications in a particular namespace.

 

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 481b27 in the box below so that we can be sure you are a human.