Browse Source
Change calicoctl deployment to use container
Change calicoctl deployment to use container
Improves upgradability of calicoctl by leveraging docker tags.pull/335/head
Matthew Mosesohn
8 years ago
6 changed files with 21 additions and 39 deletions
Split View
Diff Options
-
12roles/download/defaults/main.yml
-
2roles/network_plugin/calico/defaults/main.yml
-
2roles/network_plugin/calico/meta/main.yml
-
25roles/network_plugin/calico/tasks/main.yml
-
8roles/network_plugin/calico/templates/calicoctl-container.j2
-
11roles/uploads/defaults/main.yml
@ -1,7 +1,5 @@ |
|||
--- |
|||
dependencies: |
|||
- role: download |
|||
file: "{{ downloads.calico }}" |
|||
- role: download |
|||
file: "{{ downloads.calico_cni_plugin }}" |
|||
- role: download |
|||
|
@ -0,0 +1,8 @@ |
|||
#!/bin/bash |
|||
/usr/bin/docker run --privileged --rm \ |
|||
--net=host -e ETCD_AUTHORITY=127.0.0.1:2379 \ |
|||
-v /usr/bin/docker:/usr/bin/docker \ |
|||
-v /var/run/docker.sock:/var/run/docker.sock \ |
|||
-v /var/run/calico:/var/run/calico \ |
|||
{{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \ |
|||
$@ |
Write
Preview
Loading…
Cancel
Save