From 69910cdd22ec3b27f3e1f608b317f9683de1dcf6 Mon Sep 17 00:00:00 2001 From: RHE Date: Tue, 26 Dec 2017 15:38:11 +0100 Subject: moon kubernetes review Change-Id: I49a62f18ac6ecd06cdbc8e51b4e8ba00971ce6aa Signed-off-by: RHE --- tools/moon_kubernetes/templates/db.yaml | 31 +--------------------- .../templates/moon_configuration.yaml | 25 ----------------- tools/moon_kubernetes/templates/moon_forming.yaml | 31 ++++++++++++++++++++++ 3 files changed, 32 insertions(+), 55 deletions(-) delete mode 100644 tools/moon_kubernetes/templates/moon_configuration.yaml create mode 100644 tools/moon_kubernetes/templates/moon_forming.yaml (limited to 'tools/moon_kubernetes/templates') 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_configuration.yaml deleted file mode 100644 index 3bcaa533..00000000 --- a/tools/moon_kubernetes/templates/moon_configuration.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: moonforming - namespace: moon -spec: - template: - metadata: - name: moonforming - spec: - containers: - - name: moonforming - image: asteroide/moonforming:v1.3 - env: - - name: POPULATE_ARGS - value: "--verbose" # debug mode: --debug - volumeMounts: - - name: config-volume - mountPath: /etc/moon - volumes: - - name: config-volume - configMap: - name: moon-config - restartPolicy: Never - #backoffLimit: 4 \ No newline at end of file diff --git a/tools/moon_kubernetes/templates/moon_forming.yaml b/tools/moon_kubernetes/templates/moon_forming.yaml new file mode 100644 index 00000000..efcc51d8 --- /dev/null +++ b/tools/moon_kubernetes/templates/moon_forming.yaml @@ -0,0 +1,31 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: forming + namespace: moon +spec: + template: + metadata: + name: forming + spec: + containers: + - 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 -- cgit 1.2.3-korg