0b5f4260d9
Add enable_tiller label to install tiller in k8s_fedora_atomic clusters. Defaults to false. Add tiller_tag label to select the version of tiller. If the tag is not set the tag that matches the helm client version in the heat-agent will be picked. The tiller image can be stored in a private registry and the cluster can pull it using the container_infra_prefix label. Install tiller securely using helper container. TODO: *add instructions on how RBAC is designed https://docs.helm.sh/using_helm/#example-deploy-tiller-in-a-namespace-restricted-to-deploying-resources-in-another-namespace * add docs on how to install addon in the cluster using this tiller * how users can get the creds to talk to tiller NOTE: The main goal of this tiller is internal usage! Users can still deploy other tillers in other namespaces. story: 2003902 task: 26780 Change-Id: I99d3a78085ba10030200f12bbfe58a72964e2326 Signed-off-by: dioguerra <dy090.guerra@gmail.com>
24 lines
1.0 KiB
YAML
24 lines
1.0 KiB
YAML
- hosts: all
|
|
tasks:
|
|
- include_vars: container-builder-vars.yaml
|
|
|
|
- name: Push images to DockerHub
|
|
block:
|
|
- command: docker login -u {{ magnum_docker_login.user }} -p {{ magnum_docker_login.password }}
|
|
no_log: True
|
|
retries: 5
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ item.tag }}
|
|
with_items: "{{ magnum_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ kubernetes_version_v1_11 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ kubernetes_version_v1_12 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ kubernetes_version_v1_13 }}
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/helm-client:{{ helm_version }}
|
|
retries: 10
|