<p>I'm trying to execute:</p>
<pre><code>microk8s kubectl apply -f  deployment.yaml 
</code></pre>
<p>and I am always getting:</p>
<pre><code>error: string field contains invalid UTF-8
</code></pre>
<p>No matter which file and string as a file path parameter I'm trying to use. Even if I execute:</p>
<pre><code>microk8s kubectl apply -f  blablabla
</code></pre>
<p>Result is the same.</p>
<hr />
<p>UPD: I resolved the problem by restarting microk8s service. After restart everything is fine, but I still have no idea what it was.</p>

Сергей Коновалов
<p>This is not a wrong format in the manifest, instead, it's a corrupted cache in <code>$HOME/.kube/</code></p>
<p>try to delete the cache:</p>
<p><code>rm -rf $HOME/.kube/http-cache</code></p>
<p><code>rm -rf $HOME/.kube/cache</code></p>
