aboutsummaryrefslogtreecommitdiffstats
path: root/tools/moon_kubernetes/templates/moon_manager.yaml
blob: 28913f484b48b9b2b44c24de17280ad7582fce33 (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:latest
        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