Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argocd-course-apps-definitions
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nisum-DevOps
N
Nisum Pakistan Devops 2024
ArgoCD
argocd-course-apps-definitions
Commits
d2e90a4c
Commit
d2e90a4c
authored
Dec 31, 2024
by
Azhar Hassan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Argocd training course app definitions
parent
4e19b2b4
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
569 additions
and
0 deletions
+569
-0
.DS_Store
.DS_Store
+0
-0
application - kustomize options.yaml
...cations_and_projects/application - kustomize options.yaml
+23
-0
application10 - Automated Sync.yaml
...ications_and_projects/application10 - Automated Sync.yaml
+22
-0
application11 - Automated Prune.yaml
...cations_and_projects/application11 - Automated Prune.yaml
+24
-0
application12 - Automated Self-Healing.yaml
..._and_projects/application12 - Automated Self-Healing.yaml
+25
-0
application13 - remote cluster.yaml
...ications_and_projects/application13 - remote cluster.yaml
+17
-0
application2 - Helm options.yaml
applications_and_projects/application2 - Helm options.yaml
+21
-0
application3 - Directory options.yaml
...ations_and_projects/application3 - Directory options.yaml
+21
-0
application5 - set project.yaml
applications_and_projects/application5 - set project.yaml
+17
-0
application7 - dev project.yaml
applications_and_projects/application7 - dev project.yaml
+17
-0
application8-with-private-repo.yaml
...ications_and_projects/application8-with-private-repo.yaml
+17
-0
application9-with-private-repo-ssh.yaml
...ions_and_projects/application9-with-private-repo-ssh.yaml
+17
-0
local-cluster.yaml
applications_and_projects/clusters/local-cluster.yaml
+21
-0
staging-digitalocean.yaml
applications_and_projects/clusters/staging-digitalocean.yaml
+21
-0
project - role.yaml
applications_and_projects/project - role.yaml
+27
-0
project4.yaml
applications_and_projects/project4.yaml
+21
-0
project6 - whitelist namespace.yaml
...ications_and_projects/project6 - whitelist namespace.yaml
+21
-0
application - Fail On Shared Resources.yaml
.../sync-options/application - Fail On Shared Resources.yaml
+24
-0
application - No prune.yaml
...ons_and_projects/sync-options/application - No prune.yaml
+22
-0
application - Replace.yaml
...ions_and_projects/sync-options/application - Replace.yaml
+24
-0
application1 - Selective Sync.yaml
..._projects/sync-options/application1 - Selective Sync.yaml
+23
-0
application - sync waves.yaml
..._projects/sync-phases-waves/application - sync waves.yaml
+19
-0
application1 - resources hooks.yaml
...cts/sync-phases-waves/application1 - resources hooks.yaml
+19
-0
application - tracking git commit sha.yaml
...ing-strategies/application - tracking git commit sha.yaml
+22
-0
application - tracking git head.yaml
.../tracking-strategies/application - tracking git head.yaml
+22
-0
application - tracking git tag.yaml
...s/tracking-strategies/application - tracking git tag.yaml
+22
-0
application - tracking helm latest version.yaml
...trategies/application - tracking helm latest version.yaml
+20
-0
application - tracking helm range.yaml
...racking-strategies/application - tracking helm range.yaml
+20
-0
No files found.
.DS_Store
0 → 100644
View file @
d2e90a4c
File added
applications_and_projects/application - kustomize options.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
kustomize-app
namespace
:
argocd
spec
:
destination
:
namespace
:
kustomize-app
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
kustomize-guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
kustomize
:
namePrefix
:
staging-
commonLabels
:
app
:
demo
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application10 - Automated Sync.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
auto-sync-app
namespace
:
argocd
spec
:
destination
:
namespace
:
auto-sync-app
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook-with-sub-directories
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application11 - Automated Prune.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
auto-pruning-demo
namespace
:
argocd
spec
:
destination
:
namespace
:
auto-pruning-demo
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook-with-sub-directories
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
syncPolicy
:
automated
:
prune
:
true
syncOptions
:
-
CreateNamespace=true
#for this demo try to delete some resources from git repo like service and see there
#if the changes are reflecting there or not
applications_and_projects/application12 - Automated Self-Healing.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
auto-selfheal-demo
namespace
:
argocd
spec
:
destination
:
namespace
:
auto-selfheal-demo
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook-with-sub-directories
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
syncPolicy
:
automated
:
selfHeal
:
true
syncOptions
:
-
CreateNamespace=true
#you can manually change the replicas using kubectl then will see that its not reflecting because
#argocd healing it back to the replicas which is defined in the git repo
applications_and_projects/application13 - remote cluster.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
guestbook-staging
namespace
:
argocd
spec
:
destination
:
namespace
:
guestbook-staging
server
:
"
https://c50189b1-bb18-4a46-b772-b045e0ed4fde.k8s.ondigitalocean.com"
project
:
default
source
:
path
:
guestbook
repoURL
:
"
https://github.com/mabusaa/argocd-example-apps.git"
targetRevision
:
master
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application2 - Helm options.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
helm-app
namespace
:
argocd
spec
:
destination
:
namespace
:
helm-app
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
helm-guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
# helm:
# releaseName: my-release
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application3 - Directory options.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
directory-app
namespace
:
argocd
spec
:
destination
:
namespace
:
directory-app
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook-with-sub-directories
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
# make it true or false for release
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application5 - set project.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
guestbook-demo-project
namespace
:
argocd
spec
:
destination
:
namespace
:
guestbook-demo-project
server
:
"
https://kubernetes.default.svc"
project
:
demo-project
source
:
path
:
guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application7 - dev project.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
guestbook-dev-project
namespace
:
argocd
spec
:
destination
:
namespace
:
ns-1
# change this to anyting
server
:
"
https://kubernetes.default.svc"
project
:
dev-project
source
:
path
:
guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application8-with-private-repo.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
guestbook-with-cred-template
namespace
:
argocd
spec
:
destination
:
namespace
:
guestbook-1
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook
repoURL
:
"
https://github.com/ahassan613/argocd-example-apps-private.git"
targetRevision
:
main
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/application9-with-private-repo-ssh.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
guestbook-ssh
namespace
:
argocd
spec
:
destination
:
namespace
:
guestbook-ssh
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook
repoURL
:
"
git@github.com:ahassan613/argocd-example-apps-private.git"
targetRevision
:
main
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/clusters/local-cluster.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
v1
kind
:
Secret
metadata
:
namespace
:
argocd
name
:
local-cluster
labels
:
argocd.argoproj.io/secret-type
:
cluster
environment
:
"
dev"
provider
:
"
local"
non-prod
:
"
true"
type
:
Opaque
stringData
:
name
:
local-cluster
server
:
https://kubernetes.default.svc
config
:
|
{
"tlsClientConfig": {
"insecure": false
}
}
applications_and_projects/clusters/staging-digitalocean.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
v1
kind
:
Secret
metadata
:
namespace
:
argocd
name
:
staging-digitalocean-ams3-1
labels
:
argocd.argoproj.io/secret-type
:
cluster
environment
:
"
staging"
provider
:
"
digitalocean"
type
:
Opaque
stringData
:
name
:
staging-digitalocean-ams3-1
server
:
https://c50189b1-bb18-4a46-b772-b045e0ed4fde.k8s.ondigitalocean.com
config
:
|
{
"bearerToken": "###", # dont push secrets into git NOTE: use sealed secrets as a solution for secrets in gitops.
"tlsClientConfig": {
"insecure": false,
"caData": "###"
}
}
applications_and_projects/project - role.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
AppProject
metadata
:
name
:
project-with-role
namespace
:
argocd
spec
:
description
:
project-with-role description
sourceRepos
:
-
'
*'
destinations
:
-
namespace
:
'
*'
server
:
'
*'
clusterResourceWhitelist
:
-
group
:
'
*'
kind
:
'
*'
namespaceResourceWhitelist
:
-
group
:
'
*'
kind
:
'
*'
roles
:
-
name
:
ci-role
description
:
Sync privileges for project-with-role
policies
:
-
p, proj:project-with-role:ci-role, applications, sync, project-with-role/*, allow
\ No newline at end of file
applications_and_projects/project4.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
AppProject
metadata
:
name
:
demo-project
namespace
:
argocd
spec
:
description
:
Demo Project
sourceRepos
:
-
'
*'
destinations
:
-
namespace
:
'
*'
server
:
'
*'
clusterResourceWhitelist
:
-
group
:
'
*'
kind
:
'
*'
namespaceResourceWhitelist
:
-
group
:
'
*'
kind
:
'
*'
applications_and_projects/project6 - whitelist namespace.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
AppProject
metadata
:
name
:
dev-project
namespace
:
argocd
spec
:
description
:
Dev Project
sourceRepos
:
-
'
*'
destinations
:
-
namespace
:
ns-1
server
:
https://kubernetes.default.svc
clusterResourceWhitelist
:
-
group
:
'
*'
kind
:
'
*'
namespaceResourceWhitelist
:
-
group
:
'
*'
kind
:
'
*'
applications_and_projects/sync-options/application - Fail On Shared Resources.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
demo-shared-resources
namespace
:
argocd
spec
:
destination
:
namespace
:
guestbook-demo-project
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
-
FailOnSharedResource=true
# remove and add this for demo
#applicationn5 and this are in same namespacespace so it will be failing
applications_and_projects/sync-options/application - No prune.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
no-prune-resources
namespace
:
argocd
spec
:
destination
:
namespace
:
no-prune-resources
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
sync-options/no-prune
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
applications_and_projects/sync-options/application - Replace.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
replace-resources
namespace
:
argocd
spec
:
destination
:
namespace
:
replace-resources
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
sync-options/replace
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
-
Replace=true
#first you can add at resource level and then try to add here at application level
#resource will recreate and there will be no history of last changes in annotations
applications_and_projects/sync-options/application1 - Selective Sync.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
selective-sync
namespace
:
argocd
spec
:
destination
:
namespace
:
selective-sync
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
sync-options/selective-sync
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
-
ApplyOutOfSyncOnly=true
applications_and_projects/sync-phases-waves/application - sync waves.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
sync-waves
namespace
:
argocd
spec
:
destination
:
namespace
:
sync-waves
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
sync-waves
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/sync-phases-waves/application1 - resources hooks.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
sync-phases
namespace
:
argocd
spec
:
destination
:
namespace
:
sync-phases
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
sync-phases
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
main
syncPolicy
:
syncOptions
:
-
CreateNamespace=true
applications_and_projects/tracking-strategies/application - tracking git commit sha.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
track-commit
namespace
:
argocd
spec
:
destination
:
namespace
:
track-commit
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
dc61e33
#full commit id : dc61e3345348ce961c81177104903d7862690d1d
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
applications_and_projects/tracking-strategies/application - tracking git head.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
track-head
namespace
:
argocd
spec
:
destination
:
namespace
:
track-head
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
HEAD
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
applications_and_projects/tracking-strategies/application - tracking git tag.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
track-git-tag
namespace
:
argocd
spec
:
destination
:
namespace
:
track-git-tag
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
path
:
guestbook
repoURL
:
"
https://github.com/wriaz/argocd-example-apps.git"
targetRevision
:
v1.0.0
directory
:
recurse
:
true
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
applications_and_projects/tracking-strategies/application - tracking helm latest version.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
track-helm-latest-version
namespace
:
argocd
spec
:
destination
:
namespace
:
track-helm-latest-version
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
chart
:
ingress-nginx
repoURL
:
"
https://kubernetes.github.io/ingress-nginx"
targetRevision
:
'
*'
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
applications_and_projects/tracking-strategies/application - tracking helm range.yaml
0 → 100644
View file @
d2e90a4c
apiVersion
:
argoproj.io/v1alpha1
kind
:
Application
metadata
:
name
:
track-helm-range
namespace
:
argocd
spec
:
destination
:
namespace
:
track-helm-range
server
:
"
https://kubernetes.default.svc"
project
:
default
source
:
chart
:
sealed-secrets
repoURL
:
"
https://charts.bitnami.com/bitnami"
targetRevision
:
1.*
# you can use greater than and smaller than ex: >=3.0.0 <4.1.0 or 1.16.1 or 1.*
syncPolicy
:
automated
:
{}
syncOptions
:
-
CreateNamespace=true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment