[1.03.20] Replica scale back
This commit is contained in:
parent
16b337c5bc
commit
e803153e51
@ -6,7 +6,7 @@ metadata:
|
|||||||
name: RESOURCE_NAME
|
name: RESOURCE_NAME
|
||||||
namespace: production
|
namespace: production
|
||||||
spec:
|
spec:
|
||||||
replicas: 0
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: RESOURCE_NAME
|
app: RESOURCE_NAME
|
||||||
|
|||||||
@ -92,16 +92,8 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
executeShellScript("configuration/scripts/deployToKubernetes.sh",
|
||||||
sh "kubectl apply -f configuration/kubernetes/deployment.yaml"
|
env.APPLICATION_NAME)
|
||||||
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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,4 +7,4 @@ kubectl apply -f configuration/kubernetes/service.yaml
|
|||||||
|
|
||||||
kubectl get pods
|
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