New User Failed Run Kubectl with Error "The connection to the server xxx.xxx.xxx was refused - did you specify the right host or port?"

(Doc ID 2366085.1)

Last updated on MAY 29, 2018

Applies to:

Linux OS - Version Oracle Linux 7.2 with Unbreakable Enterprise Kerne [4.1.12] and later
Linux x86-64

Symptoms

When run kubectl from a new created user, failed with error:

The connection to the server xxx.xxx.xxx was refused - did you specify the right host or port?

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms