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

Unable to run command from inside main container using Helm values.yaml #988

Open
subhankar-banerjee opened this issue Jan 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@subhankar-banerjee
Copy link

Describe the bug

I was trying to install Jenkins using Helm Chart version 4.7.2 ...I am using values.yaml for the installation ... now the query is if I need to run a script inside the main container like below ..how I can achieve this... in values.yaml file I couldn't find that section ...

`spec:
containers:

args:
....
....
command:
/jenkins-startup/startup.sh
env:
.
.
.
.
. `
looks like we don’t have any options to call the shell script from the inside main container ..only option is to call from inside customInitContainer only .. then the query is how to run any command from inside the main container ?

is there any other alternative to achieve this ?

Version of Helm and Kubernetes

- Helm: 4.7.2
- Kubernetes: 2.414.2-jdk11

Chart version

4.7.2

What happened?

I was trying to install Jenkins using Helm Chart version 4.7.2 ...I am using values.yaml for the installation ... now the query is if I need to run a script inside the main container like below ..how I can achieve this... in values.yaml file I couldn't find that section ...


`spec:
containers:

args:
....
....
command:
/jenkins-startup/startup.sh
env:
.
.
.
.
. `

What you expected to happen?

if I need to run a script inside the main container like below ..how I can achieve this... in values.yaml file

How to reproduce it

No response

Anything else we need to know?

no

@subhankar-banerjee subhankar-banerjee added the bug Something isn't working label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant