Giter VIP home page Giter VIP logo

Comments (9)

chrislovecnm avatar chrislovecnm commented on July 23, 2024
statefulset-controller  create Pod crdb-0 in StatefulSet crdb failed error: Pod "crdb-0" is invalid: [spec.volumes[1].projected.sources[1].secret.name: Required value, spec.containers[0].volumeMounts[1].name: Not found: "certs"]

from cockroach-operator.

chrislovecnm avatar chrislovecnm commented on July 23, 2024

in example.yaml we have a field:

nodeTLSSecret: GENERATED

This is stopping the operator from creating a TLSecret, and I do not understand what the purpose of the field in the API is. https://github.com/cockroachdb/cockroach-operator/blob/master/api/v1alpha1/cluster_types.go#L18 is the definition.

We are checking to see if this field is empty and if it is the TLSSecret is generated.

I am guessing that we have this field in order to allow for custom certs. @johnrk is this a requirement?

from cockroach-operator.

chrislovecnm avatar chrislovecnm commented on July 23, 2024

I think this allows for a user to create a Kubernetes secret that contains a certificate. Then use that secret as the cert when a cluster starts.

from cockroach-operator.

johnrk-zz avatar johnrk-zz commented on July 23, 2024

@chrislovecnm , creating a secure cluster is a requirement. And I assume the former engineer working on this intended to enable that here.

@chrisseto , is this consistent with your understanding?

from cockroach-operator.

vladdy avatar vladdy commented on July 23, 2024

"nodeTLSSecret: GENERATED" was used in the past implementation to force the operator to generate k8s cluster signed SSL certificates when they were not provided. This was done to match the functionality existing in the Helm chart. Later, I simplified it so that the generation happens if TLSEnabled is set to true but no secrets are provided.

from cockroach-operator.

chrislovecnm avatar chrislovecnm commented on July 23, 2024

@vladdy thanks! I was wondering if you going to allow for the naming of the secrets with the self-signed certs in them. Would be great to set up 1/2 hour say next week. I need to document the API and I think it would be great to get more information from you.

from cockroach-operator.

vladdy avatar vladdy commented on July 23, 2024

@chrislovecnm, sure we can chat. I've also created #49 to add more info. Unfortunately, it looks like I lost permissions to add reviewers, so I hope somebody will notice it.

from cockroach-operator.

chrislovecnm avatar chrislovecnm commented on July 23, 2024

@johnrk this is complete. We need to document it and probably improve validation

from cockroach-operator.

chrislovecnm avatar chrislovecnm commented on July 23, 2024

Closing - duplicate

from cockroach-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.