-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspringboot.yml
More file actions
34 lines (34 loc) · 592 Bytes
/
Copy pathspringboot.yml
File metadata and controls
34 lines (34 loc) · 592 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
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: springboot
name: spring-controller
spec:
replicas: 2
template:
metadata:
labels:
name: springboot
spec:
containers:
- image: dockerhandson/spring-boot-mongo:latest
name: springboot
ports:
- name: springboot
containerPort: 8080
---
# Node Port Service
apiVersion: v1
kind: Service
metadata:
labels:
name: springboot
name: springboot
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
selector:
name: springboot