aboutsummaryrefslogtreecommitdiffstats
path: root/operations/scripts/k8s_get_node_ip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'operations/scripts/k8s_get_node_ip.sh')
-rw-r--r--operations/scripts/k8s_get_node_ip.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/operations/scripts/k8s_get_node_ip.sh b/operations/scripts/k8s_get_node_ip.sh
new file mode 100644
index 0000000..4f423e8
--- /dev/null
+++ b/operations/scripts/k8s_get_node_ip.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# Copyright (C) 2018 by Samsung Electronics Co., Ltd.
+#
+# This software is the confidential and proprietary information of Samsung Electronics co., Ltd.
+# ("Confidential Information"). You shall not disclose such Confidential Information and shall use
+# it only in accordance with the terms of the license agreement you entered into with Samsung.
+
+#
+# Echo Kubernetes cluster first node's internal IP address
+#
+kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="InternalIP")].address }' | cut -d ' ' -f 1