Skip to main content

Declarative Specs

The Akuity CLI can be used to apply declarative specs to the Akuity Platform. See akuity argocd apply and akuity kargo apply to learn how to use them.

ArgoCD Example:

First create your ArgoCD spec then apply it with the following command:

akuity argocd apply -f argocd-spec.yaml --organization-name <name of your organization>

apiVersion: argocd.akuity.io/v1alpha1
kind: ArgoCD
metadata:
name: declarative-specs <name of your instance>
spec:
description: ""
instanceSpec:
clusterCustomizationDefaults:
kustomization: {}
declarativeManagementEnabled: true <declarative management enabled>
subdomain: 5b0rw97jfpseuaiz
shard: ""
version: v2.8.0
FileManageable via Argo CDManageable via Declarative Specs
argocd-cm.yamlNoYes
argocd-rbac-cm.yamlNoYes
argocd-secret.yamlNoYes
argocd-ssh-known-hosts-cm.yamlYesYes
argocd-tls-certs-cm.yamlYesYes
single repo credentialsYesYes
repo template credentialsYesYes
application.yamlYesYes
project.yamlYesYes
applicationset.yamlYesYes

Kargo Example:

First create your Kargo spec then apply it with the following command:

akuity kargo apply -f kargo-spec.yaml --organization-name <name of your organization>

apiVersion: kargo.akuity.io/v1alpha1
kind: Kargo
metadata:
name: test-2
spec:
description: test-description
version: v1.2.2

There are more comprehensive examples in here.

FileManageable via KargoManageable via Declarative Specs
kargo-cm.yamlNoYes
kargo-secret.yamlNoYes