docs icon indicating copy to clipboard operation
docs copied to clipboard

Help Wanted: How to use k8s operator with external db/s3

Open matterdoc opened this issue 4 years ago • 6 comments

Mattermost user joram from https://community-daily.mattermost.com has requested the following be documented:

Got it. We do need better docs around using external mysql/s3 but it's very possible and actually what I'd suggest as the preferred way to use the operator. Here's an example of a manifest using external mysql/s3:

```yaml
apiVersion: mattermost.com/v1alpha1
kind: ClusterInstallation
metadata:
  namespace: mynamespace
spec:
  database:
    secret: dbsecret
  ingressAnnotations:
    kubernetes.io/ingress.class: nginx-controller
    kubernetes.io/tls-acme: "true"
    nginx.ingress.kubernetes.io/proxy-body-size: 100m
    nginx.ingress.kubernetes.io/proxy-buffering: "on"
    nginx.ingress.kubernetes.io/proxy-max-temp-file-size: "0"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    nginx.org/server-snippets: gzip on;
  ingressName: somesite.com
  mattermostEnv:
  - name: MM_PLUGINSETTINGS_ENABLEUPLOADS
    value: "false"
  - name: MM_FILESETTINGS_AMAZONS3SSE
    value: "true"
  mattermostLicenseSecret: licensesecret
  minio:
    externalBucket: somebucket
    externalURL: s3.amazonaws.com
    secret: s3secret

----

apiVersion: v1
kind: Secret
type: Opaque
data:
  accesskey: somebase64accesskey
  secretkey: somebase64secretkey
metadata:
  name: s3secret
  namespace: mynamespace

----

apiVersion: v1
kind: Secret
type: Opaque
data:
  DB_CONNECTION_STRING: somebase64encodedsqlconnectionstring
metadata:
  name: dbsecret
  namespace: mynamespace

For custom CAs I think we'd need some extra support for that if you didn't want to rebuild the images with it baked in


See the original post [here](https://community-daily.mattermost.com/_redirect/pl/jrnkrrje37r49fd8nokw8qa7ua).

_This issue was generated from [Mattermost](https://mattermost.com) using the [Doc Up](https://github.com/jwilander/mattermost-plugin-docup) plugin._

matterdoc avatar Sep 21 '20 23:09 matterdoc

I would like to take this up! Sounds interesting to me.

malakar-swastik avatar Oct 18 '20 16:10 malakar-swastik

Hello @justinegeffen can I work on this if it's available ? I would like to contribute to mattermost/docs Thanks.

yash2189 avatar Oct 21 '20 09:10 yash2189

Thanks, @yash2189!

@malakar-swastik, are you currently working on this? :)

justinegeffen avatar Oct 21 '20 09:10 justinegeffen

@justinegeffen any updates whether I can work on this issue?

yash2189 avatar Oct 22 '20 18:10 yash2189

@malakar-swastik - Please let us know whether you are working on this issue. Thanks!

cwarnermm avatar Jan 18 '22 13:01 cwarnermm

@yash2189 - Are you interested in working on this issue?

cwarnermm avatar Mar 10 '22 13:03 cwarnermm