Skip to content

Commit 3166d7f

Browse files
authored
Create app.yaml
1 parent bf2a3fc commit 3166d7f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

app.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: my-app-deployment
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: my-app
10+
template:
11+
metadata:
12+
labels:
13+
app: my-app
14+
spec:
15+
containers:
16+
- name: my-app-container
17+
image: 224498103667.dkr.ecr.ap-south-1.amazonaws.com/ci-cd:latest
18+
ports:
19+
- containerPort: 8080 # The port your application listens on inside the container
20+
---
21+
apiVersion: v1
22+
kind: Service
23+
metadata:
24+
name: my-app-service
25+
spec:
26+
selector:
27+
app: my-app
28+
ports:
29+
- protocol: TCP
30+
port: 9000 # The port you want to expose on the Kubernetes cluster
31+
targetPort: 8080 # The port your application listens on inside the container

0 commit comments

Comments
 (0)