diff options
Diffstat (limited to 'tools/moon_kubernetes/templates')
-rw-r--r-- | tools/moon_kubernetes/templates/db.yaml | 31 | ||||
-rw-r--r-- | tools/moon_kubernetes/templates/moon_forming.yaml (renamed from tools/moon_kubernetes/templates/moon_configuration.yaml) | 14 |
2 files changed, 11 insertions, 34 deletions
diff --git a/tools/moon_kubernetes/templates/db.yaml b/tools/moon_kubernetes/templates/db.yaml index 38418643..a055507e 100644 --- a/tools/moon_kubernetes/templates/db.yaml +++ b/tools/moon_kubernetes/templates/db.yaml @@ -1,33 +1,3 @@ -#apiVersion: v1 -#kind: PersistentVolume -#metadata: -# name: local-pv-1 -# labels: -# type: local -#spec: -# capacity: -# storage: 5Gi -# accessModes: -# - ReadWriteOnce -# hostPath: -# path: /tmp/data/pv-1 -#--- -# -#apiVersion: v1 -#kind: PersistentVolumeClaim -#metadata: -# name: mysql-pv-claim -# labels: -# platform: moon -# app: db -#spec: -# accessModes: -# - ReadWriteOnce -# resources: -# requests: -# storage: 5Gi -#--- - apiVersion: apps/v1beta1 kind: Deployment metadata: @@ -71,6 +41,7 @@ spec: # persistentVolumeClaim: # claimName: mysql-pv-claim --- + apiVersion: v1 kind: Service metadata: diff --git a/tools/moon_kubernetes/templates/moon_configuration.yaml b/tools/moon_kubernetes/templates/moon_forming.yaml index 3bcaa533..efcc51d8 100644 --- a/tools/moon_kubernetes/templates/moon_configuration.yaml +++ b/tools/moon_kubernetes/templates/moon_forming.yaml @@ -1,25 +1,31 @@ apiVersion: batch/v1 kind: Job metadata: - name: moonforming + name: forming namespace: moon spec: template: metadata: - name: moonforming + name: forming spec: containers: - - name: moonforming - image: asteroide/moonforming:v1.3 + - name: forming + image: wukongsun/moon_forming:v1.3 env: - name: POPULATE_ARGS value: "--verbose" # debug mode: --debug volumeMounts: - name: config-volume mountPath: /etc/moon + - name: test-volume + mountPath: /data volumes: - name: config-volume configMap: name: moon-config + - name: test-volume + hostPath: + path: tests/functional/scenario_enabled + type: Directory restartPolicy: Never #backoffLimit: 4
\ No newline at end of file |