Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Helm Initpw fails #61

Open
flashpixx opened this issue Feb 16, 2022 · 2 comments
Open

Helm Initpw fails #61

flashpixx opened this issue Feb 16, 2022 · 2 comments

Comments

@flashpixx
Copy link

flashpixx commented Feb 16, 2022

Hell,

I'm using the Herlm Chart https://artifacthub.io/packages/helm/oteemo-charts/sonatype-nexus in version 5.3.5 for my deployment and I call the helm install command via Terraform during setup my infrastructure. With Terraform I generate a random passwords string (16 chars, 4 number, 8 characters, 4 other chars) and call than the Terraform helm provider with these settings

initAdminPassword = {
     enabled  = false,
     password = random_string.service_nexus_password.id
}

IMHO with this setting Terraform generates a random password and should set it into Nexus, but the Kubernetes job initpw fails with the curl error Failed to connect to nexus-sonatype-nexus.default port 8081: Operation timed out

My Nexus pod is set with nodeSelector to special nodes but the initpw-job is executed on any free node, because in the Helm chart there is no possibility to define the nodeSelector to the initpw job.

How can I fix this, so that I can use Terraform call to generate the initial admin password for the Nexus? Thanks a lot

@bpietraga
Copy link

Hi @flashpixx. This repo is no longer maintained and old, 2020. I don't have a lot of context regarding your setup nor the setup here.
What I can suggest is if you try to deploy it not via terraform, but rather following README and check if it works.

If you insist on deploying this via Terraform, please take a look at Terraform Kubernetes provider and its kubectl_manifest resource. Using this for testing, you inject the secret string via terraform string tempting serialization. This way you can follow the README approach with terraform.

If you find a fix, don't hesitate to open PR 🙂

@flashpixx
Copy link
Author

I think the issue is related to the Helm chart, so I would like to open an issue on the Nexus Helm chart, so is there an issue tracker for the Helm chart?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants