Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openshift support #65

Open
a-dawg opened this issue Sep 1, 2020 · 6 comments
Open

openshift support #65

a-dawg opened this issue Sep 1, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@a-dawg
Copy link

a-dawg commented Sep 1, 2020

Describe the Bug

I am not able to run the chart on openshift 4.5
I am getting in the puppetserver logs

Running /docker-entrypoint.d/10-analytics.sh
(/docker-entrypoint.d/10-analytics.sh) Pupperware analytics disabled; skipping metric submission
Running /docker-entrypoint.d/20-use-templates-initially.sh
Upgrading /opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems
Running /docker-entrypoint.d/30-set-permissions.sh
Running /docker-entrypoint.d/40-update-puppetdb-conf.sh
Running /docker-entrypoint.d/50-set-certname.sh
Running /docker-entrypoint.d/55-set-masterport.sh
Running /docker-entrypoint.d/60-setup-autosign.sh
Running /docker-entrypoint.d/70-set-dns-alt-names.sh
Running /docker-entrypoint.d/80-ca.sh
Running /docker-entrypoint.d/85-setup-storeconfigs.sh
Running /docker-entrypoint.d/90-consul.sh
runuser: failed to user credentials: System error

Expected Behavior

should not be killed

Environment

openshift 4.5

Additional Context

I have tried the commands below with no luck

oc -n puppet adm policy add-scc-to-user privileged -z default
oc adm policy add-scc-to-user anyuid -z deployer -n puppet
@a-dawg a-dawg added the bug Something isn't working label Sep 1, 2020
@Xtigyro Xtigyro self-assigned this Sep 2, 2020
@a-dawg
Copy link
Author

a-dawg commented Sep 16, 2020

this issue is related to puppet/puppetserver not being openshift compatible.

@Xtigyro
Copy link
Contributor

Xtigyro commented Sep 16, 2020

@a-dawg Gotcha! Thanks for bringing this up! 💯

Will be added in the next month or two.

CC: @underscorgan @Iristyle @slconley @scottcressi @mwaggett @nwolfe @adrienthebo @dhollinger @raphink @binford2k

@raphink
Copy link
Contributor

raphink commented Sep 16, 2020

@a-dawg FTR we're using puppet/puppetserver on OpenShift, but we do not use the entrypoint scripts. See https://github.com/camptocamp/charts/blob/master/puppetserver/templates/deployment.yaml#L54-L72

@Xtigyro Xtigyro added enhancement New feature or request and removed bug Something isn't working labels Sep 16, 2020
@Xtigyro
Copy link
Contributor

Xtigyro commented Sep 16, 2020

@raphink Please feel absolutely free to start the work on adding the OpenShift support to the chart - will be very appreciated. 🥇

P.S. #66 should help the chart to meet some of your earlier requirements.

@Xtigyro Xtigyro removed their assignment Oct 15, 2020
@pjamenaja
Copy link
Contributor

pjamenaja commented Mar 26, 2021

I just had a chance to deploy Puppet on Openshift 4.5 today and discovered 3 steps need to do to make it works on Openshift.

  1. Run command oc adm policy add-scc-to-user privileged -z default -n puppet-server to add "priviledge" SCC to user "default". Please note that the "priviledge" SCC is the most relax security so be careful to use it.
    Ref: https://www.openshift.com/blog/managing-sccs-in-openshift

  2. Add "securityContext" to "puppetserver" container, this need to modify the Helm template puppetserver-deployment-masters.yaml.

        securityContext:
          runAsUser: 0
          runAsNonRoot: false
          privileged: true  
  1. The same "securityContext" will need to be added to "puppetdb" and "puppetboard" containers in the puppetdb-deployment.yaml as well.

@Xtigyro Xtigyro self-assigned this Apr 26, 2021
@Xtigyro
Copy link
Contributor

Xtigyro commented Apr 27, 2022

Thanks for the proposition, @a-dawg @pjamenaja! Please feel free to send our way a PR - I'll be happy to review and merge it, afterwards. 🙇‍♂️

@Xtigyro Xtigyro removed their assignment Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants