forked from sudheer76R/java-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yaml
More file actions
31 lines (31 loc) · 736 Bytes
/
app.yaml
File metadata and controls
31 lines (31 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app-deployment
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app-container
image: 224498103667.dkr.ecr.ap-south-1.amazonaws.com/ci-cd:latest
ports:
- containerPort: 8080 # The port your application listens on inside the container
---
apiVersion: v1
kind: Service
metadata:
name: my-app-service
spec:
selector:
app: my-app
ports:
- protocol: TCP
port: 9000 # The port you want to expose on the Kubernetes cluster
targetPort: 8080 # The port your application listens on inside the container