-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspringboot.yaml
More file actions
56 lines (56 loc) · 1.23 KB
/
springboot.yaml
File metadata and controls
56 lines (56 loc) · 1.23 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: apps/v1
kind: Deployment
metadata:
name: springboot-deployment
labels:
app: springboot_app
spec:
replicas: 1
selector:
matchLabels:
app: springboot_app
template:
metadata:
labels:
app: springboot_app
spec:
containers:
- name: springboot
image: pyronaid/custom_springboot_app:0.0.1
ports:
- containerPort: 7071
env:
- name: mongo-url
valueFrom:
configMapKeyRef:
name: mongo-config
key: mongo-url
- name: mongo-springboot-db
valueFrom:
configMapKeyRef:
name: mongo-config
key: mongo-springboot-db
- name: mongo-user
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo-user
- name: mongo-password
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo-password
---
apiVersion: v1
kind: Service
metadata:
name: springboot-service-ext
spec:
type: LoadBalancer
selector:
app: springboot_app
ports:
- protocol: TCP
port: 7071
targetPort: 7071
nodePort: 30071