-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6bacf0e
Showing
17 changed files
with
460 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Argo CD Sample Repo | ||
|
||
Used in [The DevOps Toolkit: Catalog, Patterns, And Blueprints](https://www.devopstoolkitseries.com/posts/catalog/) course and book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: production | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: production | ||
source: | ||
repoURL: https://github.com/vfarcic/argocd-production.git | ||
targetRevision: HEAD | ||
path: helm | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: production | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: production | ||
source: | ||
repoURL: https://github.com/vfarcic/argocd-production.git | ||
targetRevision: HEAD | ||
path: helm | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: production | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
prune: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
|
||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: production | ||
|
||
--- | ||
|
||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: production | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
description: Production project | ||
sourceRepos: | ||
- '*' | ||
destinations: | ||
- namespace: production | ||
server: https://kubernetes.default.svc | ||
- namespace: argocd | ||
server: https://kubernetes.default.svc | ||
clusterResourceWhitelist: | ||
- group: '' | ||
kind: Namespace | ||
namespaceResourceBlacklist: | ||
- group: '' | ||
kind: ResourceQuota | ||
- group: '' | ||
kind: LimitRange | ||
- group: '' | ||
kind: NetworkPolicy | ||
namespaceResourceWhitelist: | ||
- group: 'apps' | ||
kind: Deployment | ||
- group: 'apps' | ||
kind: StatefulSet | ||
- group: 'extensions/v1beta1' | ||
kind: Ingress | ||
- group: 'v1' | ||
kind: Service | ||
|
||
--- | ||
|
||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: production | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: production | ||
source: | ||
repoURL: https://github.com/vfarcic/argocd-production.git | ||
targetRevision: HEAD | ||
path: helm | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: production | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
prune: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version: "1.0" | ||
kind: pipeline | ||
metadata: | ||
name: devops-catalog/argocd-production | ||
description: Argo CD production environment app | ||
project: devops-catalog | ||
spec: | ||
triggers: | ||
- type: git | ||
provider: github | ||
name: main | ||
repo: vfarcic/argocd-production | ||
events: | ||
- push | ||
branchRegex: /master/gi | ||
modifiedFilesGlob: "argocd/**" | ||
verified: true | ||
contexts: [] | ||
steps: | ||
main_clone: | ||
title: Cloning main repository | ||
type: git-clone | ||
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}' | ||
revision: '${{CF_REVISION}}' | ||
git: devops-catalog | ||
apply_env: | ||
title: Applying production environment | ||
image: codefresh/kubectl | ||
commands: | ||
- kubectl config use-context my-cluster | ||
- kubectl apply --filename argocd/apps.yaml | ||
stages: [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
|
||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: codefresh | ||
|
||
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: codefresh | ||
rules: | ||
- apiGroups: [ "*"] | ||
resources: ["*"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: codefresh | ||
namespace: codefresh | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: codefresh | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: codefresh | ||
subjects: | ||
- kind: ServiceAccount | ||
name: codefresh | ||
namespace: codefresh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
description: Production environment | ||
name: devops-toolkit | ||
version: "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: devops-paradox | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: production | ||
source: | ||
path: helm | ||
repoURL: https://github.com/vfarcic/devops-paradox.git | ||
targetRevision: HEAD | ||
helm: | ||
values: | | ||
image: | ||
tag: latest | ||
ingress: | ||
host: devopsparadox.com | ||
version: v3 | ||
destination: | ||
namespace: production | ||
server: https://kubernetes.default.svc | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
prune: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: devops-toolkit | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: production | ||
source: | ||
path: helm | ||
repoURL: https://github.com/vfarcic/devops-toolkit.git | ||
targetRevision: HEAD | ||
helm: | ||
values: | | ||
image: | ||
tag: latest | ||
ingress: | ||
host: devopstoolkitseries.com | ||
version: v3 | ||
destination: | ||
namespace: production | ||
server: https://kubernetes.default.svc | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
prune: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: production | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: production | ||
source: | ||
repoURL: https://github.com/vfarcic/argocd-production.git | ||
targetRevision: HEAD | ||
path: helm | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: production | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
prune: true | ||
syncOptions: | ||
- CreateNamespace=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argo-rollouts | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: production | ||
source: | ||
path: charts/argo-rollouts | ||
repoURL: https://github.com/argoproj/argo-helm | ||
targetRevision: HEAD | ||
destination: | ||
namespace: argo-rollouts | ||
server: https://kubernetes.default.svc | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
prune: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version: "1.0" | ||
kind: pipeline | ||
metadata: | ||
name: CF_PROJECT/argocd-production | ||
description: Argo CD production environment app | ||
project: CF_PROJECT | ||
spec: | ||
triggers: | ||
- type: git | ||
provider: github | ||
name: main | ||
repo: GH_ORG/argocd-production | ||
events: | ||
- push | ||
branchRegex: /master/gi | ||
modifiedFilesGlob: "argocd/**" | ||
verified: true | ||
contexts: [] | ||
steps: | ||
main_clone: | ||
title: Cloning main repository | ||
type: git-clone | ||
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}' | ||
revision: '${{CF_REVISION}}' | ||
git: CF_GIT_CONTEXT | ||
apply_env: | ||
title: Applying production environment | ||
image: codefresh/kubectl | ||
commands: | ||
- kubectl config use-context CF_CLUSTER | ||
- kubectl apply --filename argocd/apps.yaml | ||
stages: [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
|
||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: codefresh | ||
|
||
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: codefresh | ||
rules: | ||
- apiGroups: [ "*"] | ||
resources: ["*"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: codefresh | ||
namespace: codefresh | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: codefresh | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: codefresh | ||
subjects: | ||
- kind: ServiceAccount | ||
name: codefresh | ||
namespace: codefresh |
Oops, something went wrong.