Giter Club home page Giter Club logo

Comments (11)

kubealex avatar kubealex commented on May 22, 2024

hi @mulbane, it should provide ingresses for all components. Could you please take a look at the logs of the operator itself and post it here?

from k8s-mediaserver-operator.

mulbane avatar mulbane commented on May 22, 2024

{"level":"error","ts":1635279279.759793,"logger":"controller-runtime.manager.controller.k8smediaserver-controller","msg":"Reconciler error","name":"k8smediaserver-sample","namespace":"default","error":"failed to install release: PersistentVolumeClaim "mediaserver-pv" is invalid: spec.storageClassName: Invalid value: "[]": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is 'a-z0-9?(\.a-z0-9?)*')","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214"}

from k8s-mediaserver-operator.

mulbane avatar mulbane commented on May 22, 2024

The readme says a PV is needed, i just assumed the PVC would be created with the setup.

from k8s-mediaserver-operator.

kubealex avatar kubealex commented on May 22, 2024

can you please set storageClassName: "" in your resource if you are providing the PV?

from k8s-mediaserver-operator.

mulbane avatar mulbane commented on May 22, 2024

I'm trying to set that but it is expecting a subdomain, but i don't understand what that subdomain is supposed to be. I'm sorry if i'm being dense.

from k8s-mediaserver-operator.

mulbane avatar mulbane commented on May 22, 2024

i got past that issue i believe, and now am running into something else I'm debugging. I tried to only change the namespace and hostnames in the config along with TLS configs and such, but i'm running into this:
{"level":"error","ts":1635287795.0483408,"logger":"controller-runtime.manager.controller.k8smediaserver-controller","msg":"Reconciler error","name":"k8smediaserver-sample","namespace":"mediaserver","error":"Operation cannot be fulfilled on k8smediaservers.kubealex.com \"k8smediaserver-sample\": the object has been modified; please apply your changes to the latest version and try again","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214"}

from k8s-mediaserver-operator.

mulbane avatar mulbane commented on May 22, 2024

Seems to me the issue is that this requires ReadWriteMany on the PVC, and local-storage doesn't support this. I have tried to override the option in the template, but it doesn't seem to be working for me. Sorry for complaining, just been beating my head against a wall.

I should clarify that i'm using k3s, and trying to make this work as-is for now.

from k8s-mediaserver-operator.

mulbane avatar mulbane commented on May 22, 2024

I guess the question i have left here is what storage provisioner is expected to be used by the charts? it doesn't seem very clear to me but I am also new to kubernetes this in-depth.

from k8s-mediaserver-operator.

kubealex avatar kubealex commented on May 22, 2024

@mulbane if you have a provisioner in place, you can use the storage class field to let the template create the pvc and pv for you. If you are going to use an 'on premise' NFS server, you need to leave the storage class blank and just reference it in the Mediaserver resource.
It just depeneds if provisioning is automatic (then storageclass is needed) or manual with NFS. It's not meant to use the emptydir or hostpath storage :)

from k8s-mediaserver-operator.

mulbane avatar mulbane commented on May 22, 2024

Yeah, I switched to NFS, still trying to figure out why it's not working now... I actually got it working with longhorn but retained volumes weren't re-attaching when I re-deployed, so I would lose my configs every time unfortunately.

from k8s-mediaserver-operator.

kubealex avatar kubealex commented on May 22, 2024

I removed the possibility to specify NFS volumes manually to have the PV created.

A PV or a StorageClass linked to a provisioner are needed in order to create the PVC.

from k8s-mediaserver-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.