aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/kubernetes/templates/moon_orchestrator.yaml
blob: 419f2d522d98c49a35a00a2f4cf84a52a9f89ae6 (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
34
35
36
37
38
39
40
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  namespace: moon
  name: orchestrator
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: orchestrator
    spec:
      hostname: orchestrator
      containers:
      - name: orchestrator
        image: wukongsun/moon_orchestrator:v4.3
        ports:
        - containerPort: 8083
        volumeMounts:
        - name: config-volume
          mountPath: /root/.kube
      volumes:
      - name: config-volume
        configMap:
          name: config
---

apiVersion: v1
kind: Service
metadata:
  name: orchestrator
  namespace: moon
spec:
  ports:
    - port: 8083
      targetPort: 8083
      nodePort: 30003
  selector:
    app: orchestrator
  type: NodePort