This commit is contained in:
2025-08-24 19:04:30 -04:00
commit 0a7e02a2a6
3 changed files with 57 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
namespace: argocd
spec:
project: default
source:
repoURL: https://gitlab.com/nanuchi/argocd-app-config.git
targetRevision: HEAD
path: dev
destination:
server: https://kubernetes.default.svc
namespace: myapp
# pulls every 3 minutes! YAY!
# NOTE: THESE ARE OFF BY DEFAULT!!!
syncPolicy:
syncOptions:
# create namespace if not found
- CreateNamespace=true
automated:
selfHeal: true
# yeet the local
prune: true
+19
View File
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
spec:
selector:
matchLabels:
app: myapp
replicas: 2
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: nanajanashia/argocd-app:1.2
ports:
- containerPort: 8080
+12
View File
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: myapp-service
spec:
selector:
app: myapp
ports:
- port: 8080
protocol: TCP
targetPort: 8080