From f351176daa1e36d1deef9fec47d4ad93a08d11c0 Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Sat, 15 Feb 2020 22:44:57 +0000 Subject: [PATCH] [15.02.20] Service Yaml fixed --- configuration/kubernetes/service.yaml | 30 +++++++++++++-------------- configuration/pipelines/build.groovy | 1 - 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/configuration/kubernetes/service.yaml b/configuration/kubernetes/service.yaml index da89c61..94c0fb6 100644 --- a/configuration/kubernetes/service.yaml +++ b/configuration/kubernetes/service.yaml @@ -1,17 +1,15 @@ +kind: Service apiVersion: v1 -objects: - - kind: Service - apiVersion: v1 - metadata: - labels: - name: LABEL - name: db-RESOURCE_NAME - spec: - selector: - app: db-RESOURCE_NAME - ports: - - port: 9090 - protocol: TCP - targetPort: 9090 - sessionAffinity: None - type: ClusterIP +metadata: + labels: + name: LABEL + name: RESOURCE_NAME +spec: + selector: + app: RESOURCE_NAME + ports: + - port: 9090 + protocol: TCP + targetPort: 9090 + sessionAffinity: None + type: ClusterIP diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 452076d..a4dd4d3 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -80,7 +80,6 @@ try { sh "sed -it 's/RESOURCE_NAME/${env.APPLICATION_NAME}/g' configuration/kubernetes/service.yaml" sh "sed -it 's/LABEL/${env.APPLICATION_LABEL}/g' configuration/kubernetes/service.yaml" - // Run kubernetes start-build } stage('Deploy') {