forked from diegoferigo/ros-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
master-deployment.yaml
48 lines (46 loc) · 925 Bytes
/
master-deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: roscore-deployment
labels:
app: roscluster
node: roscore
spec:
replicas: 1
# The deployment handles all matching templated pods
selector:
matchLabels:
node: roscore
# Template for a replica.
# The deployment makes sure that a POD containing the containers
# defined below is always running.
template:
metadata:
labels:
node: roscore
spec:
containers:
- name: rosclustermaster
image: roscluster/master:v0
args:
- roscore
ports:
- containerPort: 11311
name: roscoreport
env:
- name: ROS_MASTER_URI
value: http://0.0.0.0:11311
---
apiVersion: v1
kind: Service
metadata:
name: service-master
labels:
app: roscluster
node: roscore
spec:
clusterIP: None
ports:
- port: 11311
selector:
node: roscore