Explorar o código

Cambio apply por create

Celestino Rey hai 9 meses
pai
achega
83378d95b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -110,7 +110,7 @@ pipeline {
         container('kubectl') {
           withCredentials([file(credentialsId: env.Destino, variable: 'KUBECONFIG')]) {
             sh 'sed -i "s/<NS>/${NAMESPACE}/" K8S/namespace.yaml'
-            sh 'kubectl apply -f K8S/namespace.yaml'
+            sh 'kubectl create -f K8S/namespace.yaml'
           }
         }
       }