aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/kubernetes/templates/moon_manager.yaml
blob: 9c3772d112d52fcc3f097c328df735006c848e0e (plain)
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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: manager
  namespace: moon
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: manager
    spec:
      hostname: manager
      containers:
      - name: manager
        image: wukongsun/moon_manager:v4.3
        ports:
        - containerPort: 8082
---

apiVersion: v1
kind: Service
metadata:
  name: manager
  namespace: moon
spec:
  ports:
    - port: 8082
      targetPort: 8082
      nodePort: 30001
  selector:
    app: manager
  type: NodePort