aboutsummaryrefslogtreecommitdiffstats
path: root/tools/moon_kubernetes/templates/moon_forming.yaml
blob: 334ee1754606923752fd26d5fa2eefdc0c71cdd9 (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
apiVersion: batch/v1
kind: Job
metadata:
  name: forming
  namespace: moon
spec:
  template:
    metadata:
      name: forming
    spec:
      containers:
      - name: forming
        image: wukongsun/moon_forming:latest
        env:
        - name: POPULATE_ARGS
          value: "--verbose" # debug mode: --debug
        volumeMounts:
        - name: config-volume
          mountPath: /etc/moon
        - name: templates-volume
          mountPath: /data
      volumes:
      - name: config-volume
        configMap:
          name: moon-config
      - name: templates-volume
        configMap:
          name: moon-policy-templates
      restartPolicy: Never
      #backoffLimit: 4