This commit is contained in:
Lee 2024-09-21 20:24:39 +01:00
parent e115147cb5
commit 3981106457
3 changed files with 50 additions and 0 deletions

25
applications.yml Normal file

@ -0,0 +1,25 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
namespace: argocd
name: apps
spec:
project: default
source:
repoURL: https://git.fascinated.cc/Fascinated/home-ops.git
targetRevision: HEAD
path: apps/
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
validate: true

20
apps/nginx-test Normal file

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-test
namespace: nginx-test
spec:
replicas: 1
selector:
matchLabels:
app: nginx-test
template:
metadata:
labels:
app: nginx-test
spec:
containers:
- name: nginx-test
image: nginx
ports:
- containerPort: 80

@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: nginx-test