From 430ccc0b121973cead6fbe9c175c7022791e05c4 Mon Sep 17 00:00:00 2001 From: Ardalan Kangarlou Date: Mon, 19 Jun 2017 13:47:41 -0400 Subject: [PATCH] Enabled the REST API for the trident-ephemeral pod --- README.md | 2 +- glide.lock | 4 ++-- launcher/launcher.go | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f4270550..f8b4cfb44 100644 --- a/README.md +++ b/README.md @@ -484,7 +484,7 @@ Trident exposes a number of command line options. These are as follows: * `-address `: Optional; specifies the address on which Trident's REST server should listen. Defaults to localhost. When listening on localhost and running inside a Kubernetes pod, the REST interface will not be directly - accessible from outside the pod. Use '-address ""' to make the REST interface + accessible from outside the pod. Use `-address ""` to make the REST interface accessible from the pod IP address. * `-port `: Optional; specifies the port on which Trident's REST server should listen. Defaults to 8000. diff --git a/glide.lock b/glide.lock index 2be30a7db..dea69925d 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: 50859f058e15bafdbcbab034cc000953ae2319dab05624c76c84d668b9bfbe1d -updated: 2017-06-07T17:11:45.346418637-04:00 +hash: 5659eb10f59cfa1c5dcf2b1ad2e37ff18a56077615db7f9a253151423260cfb9 +updated: 2017-06-19T16:52:55.199673911-04:00 imports: - name: cloud.google.com/go version: 3b1ae45394a234c385be014e9a488f2bb6eef821 diff --git a/launcher/launcher.go b/launcher/launcher.go index 3026d48b4..e31a9713c 100644 --- a/launcher/launcher.go +++ b/launcher/launcher.go @@ -108,6 +108,7 @@ func createTridentEphemeralPod(kubeClient k8s_client.Interface) (*v1.Pod, error) Command: []string{"/usr/local/bin/trident_orchestrator"}, Args: []string{ "-port", fmt.Sprintf("%d", tridentDefaultPort), + "-address", "", "-no_persistence", }, Ports: []v1.ContainerPort{