forked from PL-DevOps-GenAI-0625/java-webapp-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkdeploy.yaml
More file actions
37 lines (36 loc) · 646 Bytes
/
kdeploy.yaml
File metadata and controls
37 lines (36 loc) · 646 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
32
33
34
35
36
37
apiVersion: apps/v1
kind: Deployment
metadata:
name: loksai-eta-deploy
labels:
app: loksai-eta-deploy-lbl
spec:
replicas: 3
selector:
matchLabels:
app: loksai-eta-app
template:
metadata:
labels:
app: loksai-eta-app
spec:
containers:
- name: loksai-eta-container
image: loksaieta/pl-javawebappimg
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: loksai-eta-np-service
labels:
app: loksai-eta-app
spec:
selector:
app: loksai-eta-deploy-lbl
type: NodePort
ports:
- nodePort: 31028
port: 8080
targetPort: 8080