We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf2a3fc commit 3166d7fCopy full SHA for 3166d7f
1 file changed
app.yaml
@@ -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
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
24
+ name: my-app-service
25
26
27
28
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