am trying to setup the mattermost on kubernetes, because of we want to switch our mattermost on-prem to containerisation. am getting below error.
command executed: kubectl describe mm -n mattermost
Status:
Error: failed to check Minio instance: no matches for kind “MinIOInstance” in version “miniocontroller.min.io/v1beta1”
Observed Generation: 15
State: reconciling
Events:
install mm
via: kubectl apply -n mattermost -f mattermost-installation.yaml
with config:
apiVersion: installation.mattermost.com/v1beta1
kind: Mattermost
metadata:
name: mm # Chose the desired installation name. Example = mm-example-full
spec:
size: 100users # Adjust to your requirements. Example = 5000users
ingress:
enabled: true
host: coop.sanzhiwei.cn # Adjust to your domain. Example = example.mattermost-example.com
annotations:
kubernetes.io/ingress.class: nginx
database:
external:
secret: my-postgres-connection
version: 9.11.1 # Select a recent supported version of Mattermost. Example = 9.3.0
mattermostEnv:
- name: MM_FILESETTINGS_DRIVERNAME
value: local
---
# value need to be base64 encoded `echo "postgres://ps_user:SecurePassword@postgres:5432/ps_db?sslmode=disable&connect_timeout=10" | openssl base64`
apiVersion: v1
data:
DB_CONNECTION_CHECK_URL: cG9zdGdyZVzOjU0MzIvcHhYmxlJmNvbm5lY3RfdGltZW91dD0xMAo=
DB_CONNECTION_STRING: cG9zdGdyZXM6Ly9wcU0MzIvcHNfZGI/c3NsbW9kZT1kaXNhYmxlJmNvbm5lY3RfdG0xMAo=
kind: Secret
metadata:
name: my-postgres-connection
type: Opaque
but installation hang.
Check kubectl -n mattermost describe mm mm show error:
Status:
Error: failed to check Minio instance: no matches for kind "MinIOInstance" in version "miniocontroller.min.io/v1beta1"
Observed Generation: 2
State: reconciling
Hi Shaq! It looks like the installation is hanging due to an issue with MinIO configuration. Since your setup has minioOperator disabled, you may want to verify that the database and file storage settings are correct for your use case.
Hi Shaq! Since you’re not using MinIO and prefer local storage, make sure that spec.fileStore.external is configured correctly in your mattermost-installation.yaml to reference local storage instead. Additionally, if MinIO is still causing issues, try removing the MinIO references from your configuration altogether to prevent the operator from attempting to reconcile it. Let me know if this helps!