downgrade helm version and do playbook

Change-Id: Id451effe1286742e5e17e1a85c3627f6429905ac
This commit is contained in:
oleksandr k 2020-03-12 19:22:37 +00:00
parent 493a70c883
commit 1cbb18788e
2 changed files with 15 additions and 6 deletions

View File

@ -1,9 +1,5 @@
apiVersion: v2
apiVersion: v1
name: lodgeit
description: Helm charts for deploying Lodgeit
type: application
version: 0.0.0
appVersion: 0.0.1

View File

@ -5,11 +5,24 @@
helm_release_name: lodgeit
helm_chart: ./chart
tasks:
- name: Get the Node Port
command: >
kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services lodgeit
register: nodePort
- name: Get the Node IP
command: >
kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}"
register: nodeIP
- name: post to lodget
uri:
url: http://marathon.service.consul:30009
url: http://{{ nodeIP.stdout }}:{{ nodePort.stdout }}
method: POST
body: "{{ lookup('file','mesos-consul.json') }}"
body_format: json
headers:
Content-Type: "application/json"