Skip to content

Commit 8c7a6c0

Browse files
author
dare
committed
basic-app
1 parent 9614057 commit 8c7a6c0

File tree

7 files changed

+57
-1329
lines changed

7 files changed

+57
-1329
lines changed

argocd/apps/basic-app.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: basic-application
5+
namespace: argocd
6+
spec:
7+
project: default
8+
source:
9+
repoURL: 'https://prometheus-community.github.io'
10+
path: 'argocd/apps/nginx-app'
11+
targetRevision: HEAD
12+
destination:
13+
server: "https://kubernetes.default.svc"
14+
namespace: monitoring
15+
syncPolicy:
16+
automated:
17+
prune: true # This will delete resources that are no longer in the repository.
18+
selfHeal: true # This will automatically fix differences between the desired state in Git and the live state in the cluster.

argocd/apps/elk.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

argocd/apps/gitlab.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: nginx-deployment
5+
labels:
6+
tier: frontend
7+
spec:
8+
replicas: 5
9+
selector:
10+
matchLabels:
11+
tier: frontend
12+
template:
13+
metadata:
14+
labels:
15+
tier: frontend
16+
spec:
17+
containers:
18+
- name: nginx
19+
image: nginx:stable-perl
20+
ports:
21+
- containerPort: 80
22+
resources:
23+
requests:
24+
memory: "64Mi"
25+
cpu: "250m"
26+
limits:
27+
memory: "128Mi"
28+
cpu: "500m"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: nginx-service
5+
spec:
6+
selector:
7+
tier: frontend
8+
ports:
9+
- protocol: TCP
10+
port: 80
11+
targetPort: 80

0 commit comments

Comments
 (0)