Merge pull request #635 from kubernetes-incubator/download_images

Download images as dependencies of roles
This commit is contained in:
Antoine Legrand
2016-11-22 14:53:12 +01:00
committed by GitHub
9 changed files with 87 additions and 17 deletions

View File

@@ -1,6 +1,10 @@
---
- hosts: node1
vars:
test_image_repo: busybox
test_image_tag: latest
tasks:
- name: Force binaries directory for CoreOS
@@ -13,7 +17,7 @@
when: ansible_os_family != "CoreOS"
- name: Run a replica controller composed of 2 pods
shell: "{{bin_dir}}/kubectl run test --image=busybox --replicas=2 --command -- tail -f /dev/null"
shell: "{{bin_dir}}/kubectl run test --image={{test_image_repo}}:{{test_image_tag}} --replicas=2 --command -- tail -f /dev/null"
- name: Pods are running
shell: "{{bin_dir}}/kubectl get pods --no-headers -o json"