Commit 2
This commit is contained in:
23
deploy/deploy.yaml
Normal file
23
deploy/deploy.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
deploy/svc.yaml
Normal file
13
deploy/svc.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
|
||||
Reference in New Issue
Block a user