[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
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

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/LABEL/${env.APPLICATION_LABEL}/g' configuration/kubernetes/service.yaml"
// Run kubernetes start-build
}
stage('Deploy') {