[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,17 +1,15 @@
kind: Service
apiVersion: v1 apiVersion: v1
objects: metadata:
- kind: Service labels:
apiVersion: v1 name: LABEL
metadata: name: RESOURCE_NAME
labels: spec:
name: LABEL selector:
name: db-RESOURCE_NAME app: RESOURCE_NAME
spec: ports:
selector: - port: 9090
app: db-RESOURCE_NAME protocol: TCP
ports: targetPort: 9090
- port: 9090 sessionAffinity: None
protocol: TCP type: ClusterIP
targetPort: 9090
sessionAffinity: None
type: ClusterIP

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') {