[15.02.20] Service Yaml fixed

This commit is contained in:
andyjk15 2020-02-15 22:44:57 +00:00
parent 7d0d136b18
commit f351176daa
2 changed files with 14 additions and 17 deletions

View File

@ -1,14 +1,12 @@
kind: Service
apiVersion: v1 apiVersion: v1
objects: metadata:
- kind: Service
apiVersion: v1
metadata:
labels: labels:
name: LABEL name: LABEL
name: db-RESOURCE_NAME name: RESOURCE_NAME
spec: spec:
selector: selector:
app: db-RESOURCE_NAME app: RESOURCE_NAME
ports: ports:
- port: 9090 - port: 9090
protocol: TCP protocol: TCP

View File

@ -80,7 +80,6 @@ try {
sh "sed -it 's/RESOURCE_NAME/${env.APPLICATION_NAME}/g' configuration/kubernetes/service.yaml" 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" sh "sed -it 's/LABEL/${env.APPLICATION_LABEL}/g' configuration/kubernetes/service.yaml"
// Run kubernetes start-build
} }
stage('Deploy') { stage('Deploy') {