added nginx app

This commit is contained in:
2024-11-22 18:31:35 -06:00
parent 8b996e57fa
commit 5aaaa83b4d
3 changed files with 57 additions and 0 deletions

24
app-nginx-test.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-nginx-test
namespace: argocd
spec:
project: default
source:
repoURL: https://git.curringtoncloud.com/ldc/HomeLab-GitOps.git
targetRevision: HEAD
path: nginx-test
destination:
server: https://kubernetes.default.svc
namespace: homelab
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
prune: true

20
nginx-test/deployment.yml Normal file
View File

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

13
nginx-test/service.yml Normal file
View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: nginx-test
spec:
ipFamilyPolicy: PreferDualStack
selector:
app: nginx-test
ports:
- port: 80
targetPort: 80
type: LoadBalancer