<p><strong>Summary in one sentence</strong></p>
<p>I want to deploy Mattermost locally on a Kubernetes cluster using Minikube. I'm using Minikube v1.23.2 and Kubernetes v1.22.2</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</code></li>
<li>To start ingress; <code>minikube addons enable ingress</code></li>
<li>In the Github documentation they state that you need to install Custom Resources by running: <code>kubectl apply -f ./config/crd/bases</code></li>
<li>Afterwards I followed step 4 to 9 from the first tutorial I noted above (without step 8)</li>
</ol>
<p><strong>Observed behavior</strong></p>
<p>Unfortunately I keep getting the following error in the mattermost-operator: <code>no matches for kind \&quot;Ingress\&quot; in version \&quot;networking.k8s.io/v1beta1\</code>.</p>
<p>See below for mattermost-operator logs:</p>
<pre class="lang-yaml prettyprint-override"><code>time=&quot;2021-10-13T15:56:47Z&quot; level=info msg=&quot;[opr] Go Version: go1.16.3&quot;
time=&quot;2021-10-13T15:56:47Z&quot; level=info msg=&quot;[opr] Go OS/Arch: linux/amd64&quot;
time=&quot;2021-10-13T15:56:47Z&quot; level=info msg=&quot;[opr.controller-runtime.metrics] metrics server is starting to listen&quot; addr=&quot;0.0.0.0:8383&quot;
time=&quot;2021-10-13T15:56:47Z&quot; level=info msg=&quot;[opr] Registering Components&quot;
time=&quot;2021-10-13T15:56:47Z&quot; level=info msg=&quot;[opr] Starting manager&quot;
I1013 15:56:47.972667       1 leaderelection.go:243] attempting to acquire leader lease mattermost-operator/b78a986e.mattermost.com...
time=&quot;2021-10-13T15:56:47Z&quot; level=info msg=&quot;[opr.controller-runtime.manager] starting metrics server&quot; path=/metrics
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.events] Normal&quot; message=&quot;mattermost-operator-74bc664c46-866xd_4b3f7a90-923b-4b0a-ab01-4a1ebe955088 became leader&quot; object=&quot;{ConfigMap mattermost-operator b78a986e.mattermost.com c7462714-0cda-4e03-9765-a2e8599fdbcf v1 11389 }&quot; reason=LeaderElection
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.events] Normal&quot; message=&quot;mattermost-operator-74bc664c46-866xd_4b3f7a90-923b-4b0a-ab01-4a1ebe955088 became leader&quot; object=&quot;{Lease mattermost-operator b78a986e.mattermost.com ffe4104b-efa9-42da-8d16-5a85766366e3 coordination.k8s.io/v1 11390 }&quot; reason=LeaderElection
I1013 15:57:05.433562       1 leaderelection.go:253] successfully acquired lease mattermost-operator/b78a986e.mattermost.com
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermost] Starting EventSource&quot; reconciler group=installation.mattermost.com reconciler kind=Mattermost source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermostrestoredb] Starting EventSource&quot; reconciler group=mattermost.com reconciler kind=MattermostRestoreDB source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.clusterinstallation] Starting EventSource&quot; reconciler group=mattermost.com reconciler kind=ClusterInstallation source=&quot;kind source: /, Kind=&quot;
E1013 15:57:05.460380       1 event.go:264] Server rejected event '&amp;v1.Event{TypeMeta:v1.TypeMeta{Kind:&quot;&quot;, APIVersion:&quot;&quot;}, ObjectMeta:v1.ObjectMeta{Name:&quot;b78a986e.mattermost.com.16ada23da3ddb598&quot;, GenerateName:&quot;&quot;, Namespace:&quot;mattermost-operator&quot;, SelfLink:&quot;&quot;, UID:&quot;&quot;, ResourceVersion:&quot;&quot;, Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:&quot;&quot;, ManagedFields:[]v1.ManagedFieldsEntry(nil)}, InvolvedObject:v1.ObjectReference{Kind:&quot;ConfigMap&quot;, Namespace:&quot;mattermost-operator&quot;, Name:&quot;b78a986e.mattermost.com&quot;, UID:&quot;c7462714-0cda-4e03-9765-a2e8599fdbcf&quot;, APIVersion:&quot;v1&quot;, ResourceVersion:&quot;11389&quot;, FieldPath:&quot;&quot;}, Reason:&quot;LeaderElection&quot;, Message:&quot;mattermost-operator-74bc664c46-866xd_4b3f7a90-923b-4b0a-ab01-4a1ebe955088 became leader&quot;, Source:v1.EventSource{Component:&quot;mattermost-operator-74bc664c46-866xd_4b3f7a90-923b-4b0a-ab01-4a1ebe955088&quot;, Host:&quot;&quot;}, FirstTimestamp:v1.Time{Time:time.Time{wall:0xc051de5459b4cb98, ext:17770579701, loc:(*time.Location)(0x2333fe0)}}, LastTimestamp:v1.Time{Time:time.Time{wall:0xc051de5459b4cb98, ext:17770579701, loc:(*time.Location)(0x2333fe0)}}, Count:1, Type:&quot;Normal&quot;, EventTime:v1.MicroTime{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, Series:(*v1.EventSeries)(nil), Action:&quot;&quot;, Related:(*v1.ObjectReference)(nil), ReportingController:&quot;&quot;, ReportingInstance:&quot;&quot;}': 'events is forbidden: User &quot;system:serviceaccount:mattermost-operator:mattermost-operator&quot; cannot create resource &quot;events&quot; in API group &quot;&quot; in the namespace &quot;mattermost-operator&quot;' (will not retry!)
E1013 15:57:05.469732       1 event.go:264] Server rejected event '&amp;v1.Event{TypeMeta:v1.TypeMeta{Kind:&quot;&quot;, APIVersion:&quot;&quot;}, ObjectMeta:v1.ObjectMeta{Name:&quot;b78a986e.mattermost.com.16ada23da3fa25ac&quot;, GenerateName:&quot;&quot;, Namespace:&quot;mattermost-operator&quot;, SelfLink:&quot;&quot;, UID:&quot;&quot;, ResourceVersion:&quot;&quot;, Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:&quot;&quot;, ManagedFields:[]v1.ManagedFieldsEntry(nil)}, InvolvedObject:v1.ObjectReference{Kind:&quot;Lease&quot;, Namespace:&quot;mattermost-operator&quot;, Name:&quot;b78a986e.mattermost.com&quot;, UID:&quot;ffe4104b-efa9-42da-8d16-5a85766366e3&quot;, APIVersion:&quot;coordination.k8s.io/v1&quot;, ResourceVersion:&quot;11390&quot;, FieldPath:&quot;&quot;}, Reason:&quot;LeaderElection&quot;, Message:&quot;mattermost-operator-74bc664c46-866xd_4b3f7a90-923b-4b0a-ab01-4a1ebe955088 became leader&quot;, Source:v1.EventSource{Component:&quot;mattermost-operator-74bc664c46-866xd_4b3f7a90-923b-4b0a-ab01-4a1ebe955088&quot;, Host:&quot;&quot;}, FirstTimestamp:v1.Time{Time:time.Time{wall:0xc051de5459d13bac, ext:17772215701, loc:(*time.Location)(0x2333fe0)}}, LastTimestamp:v1.Time{Time:time.Time{wall:0xc051de5459d13bac, ext:17772215701, loc:(*time.Location)(0x2333fe0)}}, Count:1, Type:&quot;Normal&quot;, EventTime:v1.MicroTime{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, Series:(*v1.EventSeries)(nil), Action:&quot;&quot;, Related:(*v1.ObjectReference)(nil), ReportingController:&quot;&quot;, ReportingInstance:&quot;&quot;}': 'events is forbidden: User &quot;system:serviceaccount:mattermost-operator:mattermost-operator&quot; cannot create resource &quot;events&quot; in API group &quot;&quot; in the namespace &quot;mattermost-operator&quot;' (will not retry!)
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermost] Starting EventSource&quot; reconciler group=installation.mattermost.com reconciler kind=Mattermost source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermostrestoredb] Starting Controller&quot; reconciler group=mattermost.com reconciler kind=MattermostRestoreDB
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.clusterinstallation] Starting EventSource&quot; reconciler group=mattermost.com reconciler kind=ClusterInstallation source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermost] Starting EventSource&quot; reconciler group=installation.mattermost.com reconciler kind=Mattermost source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.clusterinstallation] Starting EventSource&quot; reconciler group=mattermost.com reconciler kind=ClusterInstallation source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermostrestoredb] Starting workers&quot; reconciler group=mattermost.com reconciler kind=MattermostRestoreDB worker count=1
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermost] Starting EventSource&quot; reconciler group=installation.mattermost.com reconciler kind=Mattermost source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.clusterinstallation] Starting EventSource&quot; reconciler group=mattermost.com reconciler kind=ClusterInstallation source=&quot;kind source: /, Kind=&quot;
time=&quot;2021-10-13T15:57:05Z&quot; level=error msg=&quot;[opr.controller-runtime.source] if kind is a CRD, it should be installed before calling Start&quot; error=&quot;no matches for kind \&quot;Ingress\&quot; in version \&quot;networking.k8s.io/v1beta1\&quot;&quot; kind=Ingress.networking.k8s.io
time=&quot;2021-10-13T15:57:05Z&quot; level=info msg=&quot;[opr.controller-runtime.manager.controller.mattermostrestoredb] Stopping workers&quot; reconciler group=mattermost.com reconciler kind=MattermostRestoreDB
I1013 15:57:07.096906       1 request.go:655] Throttling request took 1.0466297s, request: GET:https://10.96.0.1:443/apis/events.k8s.io/v1?timeout=32s
time=&quot;2021-10-13T15:57:07Z&quot; level=error msg=&quot;[opr.controller-runtime.source] if kind is a CRD, it should be installed before calling Start&quot; error=&quot;no matches for kind \&quot;Ingress\&quot; in version \&quot;networking.k8s.io/v1beta1\&quot;&quot; kind=Ingress.networking.k8s.io
time=&quot;2021-10-13T15:57:07Z&quot; level=error msg=&quot;[opr.controller-runtime.manager] error received after stop sequence was engaged&quot; error=&quot;no matches for kind \&quot;Ingress\&quot; in version \&quot;networking.k8s.io/v1beta1\&quot;&quot;
time=&quot;2021-10-13T15:57:07Z&quot; level=error msg=&quot;[opr.controller-runtime.manager] error received after stop sequence was engaged&quot; error=&quot;leader election lost&quot;
time=&quot;2021-10-13T15:57:07Z&quot; level=error msg=&quot;[opr] Problem running manager&quot; error=&quot;no matches for kind \&quot;Ingress\&quot; in version \&quot;networking.k8s.io/v1beta1\&quot;&quot;
</code></pre>
<p>Really tried many variations of implementations and changed the yml files but nothing seems to work. Anybody an idea?</p>

Lucas Scheepers
<p><code>networking.k8s.io/v1beta1</code> is deprecated as of Kubernetes v1.22, according to this <a href="https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingress-v122" rel="nofollow noreferrer">link</a>, which is a problem if Mattermost installation defines and uses v1beta1 configurations.</p>
<p>Short of trying to change the existing Mattermost installation configuration, you may have more luck downgrading Minikube to v1.21.5.</p>
<pre><code>minikube start --kubernetes-version=v1.21.5
</code></pre>
