<p><strong>Summary in one sentence</strong></p>
<p>I want to deploy Mattermost locally on a Kubernetes cluster using Minikube</p>
<p><strong>Steps to reproduce</strong></p>
<p>I used this tutorial and the Github documentation:</p>
<ul>
<li><a href="https://mattermost.com/blog/how-to-get-started-with-mattermost-on-kubernetes-in-just-a-few-minutes/" rel="nofollow noreferrer">https://mattermost.com/blog/how-to-get-started-with-mattermost-on-kubernetes-in-just-a-few-minutes/</a></li>
<li><a href="https://github.com/mattermost/mattermost-operator/tree/v1.15.0" rel="nofollow noreferrer">https://github.com/mattermost/mattermost-operator/tree/v1.15.0</a></li>
</ul>
<ol>
<li>To start minikube: <code>minikube start --kubernetes-version=v1.21.5</code></li>
<li>To start ingress; <code>minikube addons enable ingress</code></li>
<li>I cloned the Github repo with tag v1.15.0 (second link)</li>
<li>In the Github documentation (second link) they state that you need to install Custom Resources by running: <code>kubectl apply -f ./config/crd/bases</code></li>
<li>Afterwards I installed MinIO and MySQL operators by running: <code>make mysql-minio-operators</code></li>
<li>Started the Mattermost-operator locally by running: <code>go run .</code></li>
<li>In the end I deployed Mattermost (I followed step 2, 7 and 9 from the first link)</li>
</ol>
<p><strong>Observed behavior</strong></p>
<p>Unfortunately I keep getting the following error in the mattermost-operator:</p>
<pre class="lang-golang prettyprint-override"><code>INFO[1419] [opr.controllers.Mattermost] Reconciling Mattermost  Request.Name=mm-demo Request.Namespace=mattermost
INFO[1419] [opr.controllers.Mattermost] Updating resource  Reconcile=fileStore Request.Name=mm-demo Request.Namespace=mattermost kind=&quot;&amp;TypeMeta{Kind:,APIVersion:,}&quot; name=mm-demo-minio namespace=mattermost patch=&quot;{\&quot;status\&quot;:{\&quot;availableReplicas\&quot;:0}}&quot;
INFO[1419] [opr.controllers.Mattermost.health-check] mattermost pod not ready: pod mm-demo-ccbd46b9c-9nq8k is in state 'Pending'  Request.Name=mm-demo Request.Namespace=mattermost
INFO[1419] [opr.controllers.Mattermost.health-check] mattermost pod not ready: pod mm-demo-ccbd46b9c-tp567 is in state 'Pending'  Request.Name=mm-demo Request.Namespace=mattermost
ERRO[1419] [opr.controllers.Mattermost] Error checking Mattermost health  Request.Name=mm-demo Request.Namespace=mattermost error=&quot;found 0 updated replicas, but wanted 2&quot;
</code></pre>
<p>By using k9s I can see that mm-demo won't start. See below for photo.</p>
<p><a href="https://i.stack.imgur.com/H4vL3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H4vL3.png" alt="enter image description here" /></a></p>
<hr />
<h1>Another variation of deployment</h1>
<p>Also tried another variation by following all the steps from the first link (without the licences secret step). At this point the mattermost-operator is visible using k9s and won't getting any errors. But unfortunately the mm-demo pod keeps crashing (empty logs, so seeing no errors or something).
Anybody an idea?</p>

Lucas Scheepers
<p>As @Ashish faced the same issue, he fixed it by upgrading the resources.</p>
<p>Minikube will be able to run all the pods by running <code>minikube start --kubernetes-version=v1.21.5 --memory 4000 --cpus 4</code></p>
