[19.02.20] Script extraction for kube deployment and script permissions
This commit is contained in:
parent
2cee2d52c7
commit
686cfcaddf
@ -94,12 +94,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/${env.APPLICATION_NAME}"
|
||||
executeShellScript("configuration/scripts/deployToKubernetes.sh",
|
||||
env.APPLICATION_NAME)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
configuration/scripts/deployToKubernetes.sh
Normal file → Executable file
8
configuration/scripts/deployToKubernetes.sh
Normal file → Executable file
@ -1,2 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
APPLICATION_NAME=$1
|
||||
|
||||
kubectl apply -f configuration/kubernetes/deployment.yaml
|
||||
kubectl apply -f configuration/kubernetes/service.yaml
|
||||
|
||||
kubectl get pods
|
||||
|
||||
kubectl rollout status deployment/${APPLICATION_NAME}
|
||||
Loading…
x
Reference in New Issue
Block a user