Giter Site home page Giter Site logo

mattermost-operator does not provide appropriate configuration for securityContext in mattermost deploymets. about mattermost-operator HOT 7 CLOSED

mattermost avatar mattermost commented on July 18, 2024
mattermost-operator does not provide appropriate configuration for securityContext in mattermost deploymets.

from mattermost-operator.

Comments (7)

frjaraur avatar frjaraur commented on July 18, 2024 1

Many thanks it really worked for me with:

  resourcePatch:
    deployment:
      patch: '[{"op":"add","path":"/spec/template/spec/containers/0/securityContext","value":{"runAsUser": 10001}}]'

from mattermost-operator.

frjaraur avatar frjaraur commented on July 18, 2024

Sorry, I forgot that neither mattermost-operator nor mattermost instances provide securityContext configurations, I did myself for mattermost operator but it should be added also to mattermost deployments.

from mattermost-operator.

Szymongib avatar Szymongib commented on July 18, 2024

Hey @frjaraur, thanks for reporting, this came up in the past, and I think we should add it to Mattermost CR.

For now, there exist a workaround with use of resourcePatch, you can find the details here https://community.mattermost.com/core/pl/dricyco3sbn85kacom55mq9zey

from mattermost-operator.

Szymongib avatar Szymongib commented on July 18, 2024

From the linked thread, you can set it by adding to Mattermost resource:

  resourcePatch:
    deployment:
      patch: '[{"op":"add","path":"/spec/template/spec/initContainers/0/securityContext","value":{"runAsUser": 1337}}]'

Operator needs to be at in version 1.17+ and CRDs need to match this version.

from mattermost-operator.

frjaraur avatar frjaraur commented on July 18, 2024

Thanks, but it seems it will work for initial containers only or did you just post an example?

from mattermost-operator.

Szymongib avatar Szymongib commented on July 18, 2024

Ah, yeah, that is just example copied straight from the channel. It should be possible to adjust it according to the needs.

from mattermost-operator.

Szymongib avatar Szymongib commented on July 18, 2024

We would like to add a native support for securityContext therefore reopening this.

from mattermost-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.