This commit is contained in:
2026-01-10 00:08:52 +01:00
parent bffc331c81
commit 1e1c2e34c2
3 changed files with 62 additions and 0 deletions

23
00_app.yaml Normal file
View File

@@ -0,0 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: swiggy-app
labels:
app: swiggy-app
spec:
replicas: 3
selector:
matchLabels:
app: swiggy-app
template:
metadata:
labels:
app: swiggy-app
spec:
terminationGracePeriodSeconds: 30
containers:
- name: swiggy-app
image: veeranarni/hotstar:latest
imagePullPolicy: "Always"
ports:
- containerPort: 3000

13
01_service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: swiggy-app
labels:
app: swiggy-app
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 3000
selector:
app: swiggy-app

26
argomanifest/argo.yaml Normal file
View File

@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: myapp-argo-application
namespace: argocd
spec:
project: default
source:
repoURL: http://192.168.1.194:3000/daxweb/01_hello_argo.git
targetRevision: HEAD
path: /
destination:
server: https://kubernetes.default.svc
namespace: myapp
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
prune: true