<p>I am trying to follow steps from
ref URL: <a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="nofollow noreferrer">Secrets-Kubernetes</a> to create a Secret Using kubectl,
I was able to create files</p>
<ol>
<li>username.txt</li>
<li>password.txt</li>
</ol>
<p>which show under pwd</p>
<pre><code>[root@1161 cdp]# ls
password.txt  username.txt
</code></pre>
<p>and now when I try to execute the next statement which is</p>
<pre><code>kubectl create secret generic db-user-pass --from-file=./username.txt --from-file=./password.txt
</code></pre>
<p>I get following error:</p>
<pre><code>error: Missing or incomplete configuration info.  Please point to an existing, complete config file:
 1. Via the command-line flag --kubeconfig
 2. Via the KUBECONFIG environment variable
 3. In your home directory as ~/.kube/config

 To view or setup config directly use the 'config' command.
</code></pre>
<p>Note: I'm running the statement behind corporate proxy, Please advise on how to proceed further</p>
<blockquote>
<p>This is on centos 7</p>
</blockquote>
<pre><code>kubectl version --client
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.2&quot;,
GitCommit:&quot;52c56ce7a8272c798dbc29846288d7cd9fbae032&quot;, GitTreeState:&quot;clean&quot;,
BuildDate:&quot;2020-04-16T11:56:40Z&quot;, GoVersion:&quot;go1.13.9&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
</code></pre>
<p>Best Regards,
MK</p>

<p>Please check if you have setup the Kubectl config credentials correctly. </p>

<p>You can fetch the credentials like below:</p>

<p>For google:</p>

<pre><code>gcloud container clusters get-credentials &lt;cluster name&gt; --zone &lt;zone&gt; --project &lt;project id&gt;
</code></pre>

<p>For AWS:</p>

<pre><code>aws eks --region region update-kubeconfig --name cluster_name
kubectl get pods --kubeconfig ~/.kube/config
</code></pre>
