Explorar el Código

Cambio apply por create

Celestino Rey hace 7 meses
padre
commit
83378d95b5
Se han modificado 1 ficheros con 1 adiciones y 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'
           }
         }
       }