diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 8a7b286..14fc2f4 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -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 diff --git a/playbooks/functional/run.yaml b/playbooks/functional/run.yaml index e171c56..2946e57 100644 --- a/playbooks/functional/run.yaml +++ b/playbooks/functional/run.yaml @@ -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" +