Commit 1
This commit is contained in:
23
00_app.yaml
Normal file
23
00_app.yaml
Normal 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
13
01_service.yaml
Normal 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
26
argomanifest/argo.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user