[1.03.20] Replica scale back

This commit is contained in:
andrewso 2020-03-01 20:57:00 +00:00
parent 16b337c5bc
commit e803153e51
3 changed files with 4 additions and 12 deletions

View File

@ -6,7 +6,7 @@ metadata:
name: RESOURCE_NAME
namespace: production
spec:
replicas: 0
replicas: 1
selector:
matchLabels:
app: RESOURCE_NAME

View File

@ -92,16 +92,8 @@ try {
}
stage('Deploy') {
sh "kubectl apply -f configuration/kubernetes/deployment.yaml"
sh "kubectl apply -f configuration/kubernetes/service.yaml"
sh "kubectl get pods"
sh "kubectl rollout status deployment/${APPLICATION_NAME}"
// executeShellScript("configuration/scripts/deployToKubernetes.sh",
// env.APPLICATION_NAME)
executeShellScript("configuration/scripts/deployToKubernetes.sh",
env.APPLICATION_NAME)
}
}
}

View File

@ -7,4 +7,4 @@ kubectl apply -f configuration/kubernetes/service.yaml
kubectl get pods
kubectl rollout status deployment/${APPLICATION_NAME}
kubectl rollout status deployment/${APPLICATION_NAME} --namespace=production