blob: 4f423e8a21d6e3d6807f407ce20342eaea3d1da5 (
plain)
1
2
3
4
5
6
7
8
9
10
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
|