Update vars/deployToK3s.groovy

This commit is contained in:
khaled committed 2026-09-30 14:42:12 +00:00
1 parent 62cfc5b06a
commit 828b75ad7e
1 file changed
+2
+2
View File
@@ -6,6 +6,7 @@ def call(Map config = [:]) {
def image = config.image ?: error('deployToK3s: "image" is required')
def replicas = config.replicas ?: 1
def namespace = config.namespace ?: 'default'
container('kubectl') {
stage("Deploy ${name}") {
writeFile file: 'deploy.yaml', text: """
apiVersion: apps/v1
@@ -30,4 +31,5 @@ spec:
sh 'kubectl apply -f deploy.yaml'
sh "kubectl rollout status deployment/${name} -n ${namespace} --timeout=90s"
}
}
}