[1.03.20] Replica scale back
This commit is contained in:
parent
16b337c5bc
commit
e803153e51
@ -6,7 +6,7 @@ metadata:
|
||||
name: RESOURCE_NAME
|
||||
namespace: production
|
||||
spec:
|
||||
replicas: 0
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: RESOURCE_NAME
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user