<p>I would like to change my deployed(GKE) Helm Chart values file with the ones that are inside my local file, basically to do this:</p>
<pre><code>helm upgrade -f new-values.yml {release name} {package name or path}
</code></pre>
<p>So I've make all the changes inside my local file, but the deployment is inside the GKE cluster.
I've connected to my cluster via ssh, but how can I run the above command in order to perform  the update if the file with the new values is on my local machine and the deployment is inside GKE cluster?
Maybe somehow via the <code>scp</code> command?</p>

Anna
<h3>Solution by setting up required tools locally (you need a while or two for that)</h3>
<p>You just need to reconfigure your <code>kubectl</code> client, which can be done pretty straighforward. When you log in to <a href="http://console.cloud.google.com/" rel="nofollow noreferrer">GCP Console</a> -&gt; go to <strong>Kubernetes Engine</strong> -&gt; <strong>Clusters</strong> -&gt; click on <strong>Actions</strong> (3 vertical dots to the right of the cluster name) -&gt; select <strong>Connect</strong> -&gt; copy the command, which may resemble the following one:</p>
<pre><code>gcloud container clusters get-credentials my-gke-cluster --zone europe-west4-c --project my-project
</code></pre>
<p>It assumes you have your <strong>Cloud SDK</strong> and <code>kubectl</code> already installed on your local machine. If you have not, here you have step-by-step description how to do that:</p>
<ul>
<li><a href="https://cloud.google.com/sdk/docs/install#deb" rel="nofollow noreferrer">Installing Google Cloud SDK</a> [Debian/Ubuntu] (if you use a different OS, simply choose another tab)</li>
<li><a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-using-native-package-management" rel="nofollow noreferrer">Installing kubectl tool</a> [Debian/Ubuntu] (choose your OS if it is something different)</li>
</ul>
<p>Once you run the above command on your local machine, your <code>kubectl</code> context will be automatically set to your <strong>GKE Cluster</strong> even if it was set before e.g. to your local <strong>Minikube</strong> instance. You can check it by running:</p>
<pre><code>kubectl config current-context
</code></pre>
<p>OK, almost done. Did I also mention <code>helm</code> ? Well, you will also need it. So if you have not installed it on your local machine previously, please do it now:</p>
<ul>
<li><a href="https://helm.sh/docs/intro/install/#from-apt-debianubuntu" rel="nofollow noreferrer">Install helm</a> [Debian/Ubuntu]</li>
</ul>
<h3>Alternative slution using Cloud Shell (much quicker)</h3>
<p>If installing and configuring it locally seems to you too much hassle, you can simply use a <strong>Cloud Shell</strong> (I bet you've used it before). In case you didn't, once logged in to your <strong>GCP Console</strong> click on the following icon:</p>
<p><a href="https://i.stack.imgur.com/RX1am.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RX1am.png" alt="enter image description here" /></a></p>
<p>Once logged into <strong>Cloud Shell</strong>, you can choose to upload your local files there:</p>
<p>simply click on <strong>More</strong> (3 dots again):</p>
<p><a href="https://i.stack.imgur.com/uUZ7M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uUZ7M.png" alt="enter image description here" /></a></p>
<p>and choose <strong>Upload a file</strong>:</p>
<p><a href="https://i.stack.imgur.com/IKvav.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IKvav.png" alt="enter image description here" /></a></p>
