add kubectl create

This commit is contained in:
Nana Janashia
2020-12-04 16:46:59 +01:00
parent 322a9fb1b9
commit 127fe8818c

5
Jenkinsfile vendored
View File

@@ -20,7 +20,10 @@ pipeline {
stage('deploy') {
steps {
script {
echo 'deploying docker image to EC2...'
echo 'deploying docker image...'
withKubeConfig([credentialsId: 'k8s-credentials', serverUrl: 'https://10A6677B7BAA541A0D643A33CD044365.yl4.eu-west-3.eks.amazonaws.com']) {
sh 'kubectl create deployment nginx-depl --image=nginx'
}
}
}
}