Skip to content

Commit 4eb1152

Browse files
committedMar 14, 2021
Initial commit
0 parents  commit 4eb1152

File tree

9 files changed

+144
-0
lines changed

9 files changed

+144
-0
lines changed
 

‎apps.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
3+
apiVersion: argoproj.io/v1alpha1
4+
kind: Application
5+
metadata:
6+
name: production
7+
namespace: argocd
8+
finalizers:
9+
- resources-finalizer.argocd.argoproj.io
10+
spec:
11+
project: production
12+
source:
13+
repoURL: https://github.com/vfarcic/combine-infra-services-apps.git
14+
targetRevision: HEAD
15+
path: controller
16+
destination:
17+
server: https://kubernetes.default.svc
18+
namespace: production
19+
syncPolicy:
20+
automated:
21+
selfHeal: true
22+
prune: true
23+

‎argo-cd/base/ingress.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: argocd-server
5+
annotations:
6+
ingress.kubernetes.io/ssl-redirect: "false"
7+
nginx.ingress.kubernetes.io/ssl-redirect: "false"
8+
ingress.kubernetes.io/rewrite-target: /
9+
nginx.ingress.kubernetes.io/rewrite-target: /
10+
spec:
11+
rules:
12+
- http:
13+
paths:
14+
- path: /
15+
pathType: ImplementationSpecific
16+
backend:
17+
service:
18+
name: argocd-server
19+
port:
20+
number: 80
21+
host: acme.com
22+

‎argo-cd/base/kustomization.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- namespace.yaml
5+
- github.com/argoproj/argo-cd/manifests/crds
6+
- github.com/argoproj/argo-cd/manifests/base
7+
- github.com/argoproj/argo-cd/manifests/cluster-rbac/
8+
namespace: argocd

‎argo-cd/base/namespace.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
3+
apiVersion: v1
4+
kind: Namespace
5+
metadata:
6+
name: argocd
7+
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: argocd-server
5+
annotations:
6+
ingress.kubernetes.io/ssl-redirect: "false"
7+
nginx.ingress.kubernetes.io/ssl-redirect: "false"
8+
ingress.kubernetes.io/rewrite-target: /
9+
nginx.ingress.kubernetes.io/rewrite-target: /
10+
spec:
11+
rules:
12+
- http:
13+
paths:
14+
- path: /
15+
pathType: ImplementationSpecific
16+
backend:
17+
service:
18+
name: argocd-server
19+
port:
20+
number: 80
21+
host: argo-cd.192.168.64.215.xip.io
22+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- ../../base
5+
- ingress.yaml
6+
patchesStrategicMerge:
7+
- server.yaml
8+
namespace: argocd
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: argocd-server
5+
spec:
6+
template:
7+
spec:
8+
containers:
9+
- name: argocd-server
10+
command: [argocd-server, --staticassets, /shared/app, --insecure]
11+

‎controller/argo-cd.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: argo-cd
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: production
10+
source:
11+
path: argo-cd/overlays/production
12+
repoURL: https://github.com/vfarcic/combine-infra-services-apps
13+
targetRevision: HEAD
14+
destination:
15+
server: https://kubernetes.default.svc
16+
syncPolicy:
17+
automated:
18+
selfHeal: true
19+
prune: true
20+

‎project.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
3+
apiVersion: argoproj.io/v1alpha1
4+
kind: AppProject
5+
metadata:
6+
name: production
7+
namespace: argocd
8+
finalizers:
9+
- resources-finalizer.argocd.argoproj.io
10+
spec:
11+
description: Production project
12+
sourceRepos:
13+
- '*'
14+
destinations:
15+
- namespace: '*'
16+
server: https://kubernetes.default.svc
17+
clusterResourceWhitelist:
18+
- group: '*'
19+
kind: '*'
20+
namespaceResourceWhitelist:
21+
- group: '*'
22+
kind: '*'
23+

0 commit comments

Comments
 (0)
Please sign in to comment.