зеркало из https://github.com/Azure/acs-engine.git
revert --image-pull-policy=IfNotPresent for win (#3553)
This commit is contained in:
Родитель
b6314623f6
Коммит
8029c54d9f
|
@ -102,7 +102,7 @@ func RunLinuxDeploy(image, name, namespace, command string, replicas int) (*Depl
|
|||
// CreateWindowsDeploy will crete a deployment for a given image with a name in a namespace
|
||||
func CreateWindowsDeploy(image, name, namespace string, port int, hostport int) (*Deployment, error) {
|
||||
overrides := `{ "apiVersion": "extensions/v1beta1", "spec":{"template":{"spec": {"nodeSelector":{"beta.kubernetes.io/os":"windows"}}}}}`
|
||||
cmd := exec.Command("kubectl", "run", name, "-n", namespace, "--image", "--image-pull-policy=IfNotPresent", image, "--port", strconv.Itoa(port), "--hostport", strconv.Itoa(hostport), "--overrides", overrides)
|
||||
cmd := exec.Command("kubectl", "run", name, "-n", namespace, "--image", image, "--port", strconv.Itoa(port), "--hostport", strconv.Itoa(hostport), "--overrides", overrides)
|
||||
out, err := util.RunAndLogCommand(cmd)
|
||||
if err != nil {
|
||||
log.Printf("Error trying to deploy %s [%s] in namespace %s:%s\n", name, image, namespace, string(out))
|
||||
|
|
Загрузка…
Ссылка в новой задаче