Open flashpixx opened 2 years ago
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 🙂
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?
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 settingsIMHO with this setting Terraform generates a random password and should set it into Nexus, but the Kubernetes job
initpw
fails with the curl errorFailed 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