diff --git a/00_app.yaml b/00_app.yaml new file mode 100644 index 0000000..61d7dfa --- /dev/null +++ b/00_app.yaml @@ -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 \ No newline at end of file diff --git a/01_service.yaml b/01_service.yaml new file mode 100644 index 0000000..49a98a9 --- /dev/null +++ b/01_service.yaml @@ -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 \ No newline at end of file diff --git a/argomanifest/argo.yaml b/argomanifest/argo.yaml new file mode 100644 index 0000000..321a1b4 --- /dev/null +++ b/argomanifest/argo.yaml @@ -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 \ No newline at end of file