mcadam / plex-operator Goto Github PK
View Code? Open in Web Editor NEWPlex Kubernetes Operator using operator-sdk
Plex Kubernetes Operator using operator-sdk
I don't know go and new to kubernetes. I attempted to install and run your fork of kube-plex and ran into errors. The main pod starts, but the operator fails. Any assistance would be greatly appreciated.
Here are the logs from the operator pod:
kubectl logs pod/plex-kube-plex-operator-7f6d87b674-r4mrf
{"level":"info","ts":1566266565.4639938,"logger":"cmd","msg":"Go Version: go1.12.7"}
{"level":"info","ts":1566266565.464101,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1566266565.4641156,"logger":"cmd","msg":"Version of operator-sdk: v0.9.0"}
{"level":"info","ts":1566266565.4655316,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1566266565.5546064,"logger":"leader","msg":"Found existing lock with my name. I was likely restarted."}
{"level":"info","ts":1566266565.5546658,"logger":"leader","msg":"Continuing as the leader."}
{"level":"info","ts":1566266565.613103,"logger":"cmd","msg":"Registering Components."}
{"level":"info","ts":1566266565.6134617,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"plextranscodejob-controller","source":"kind source: /, Kind="}
{"level":"error","ts":1566266565.6600964,"logger":"kubebuilder.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"PlexTranscodeJob.plex.tv","error":"no matches for kind \"PlexTranscodeJob\" in version \"plex.tv/v1alpha1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/root/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start\n\t/root/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/source/source.go:89\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Watch\n\t/root/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:122\ngithub.com/mcadam/plex-operator/pkg/controller/plextranscodejob.add\n\tplex-operator/pkg/controller/plextranscodejob/plextranscodejob_controller.go:77\ngithub.com/mcadam/plex-operator/pkg/controller/plextranscodejob.Add\n\tplex-operator/pkg/controller/plextranscodejob/plextranscodejob_controller.go:39\ngithub.com/mcadam/plex-operator/pkg/controller.AddToManager\n\tplex-operator/pkg/controller/controller.go:13\nmain.main\n\tplex-operator/cmd/manager/main.go:121\nruntime.main\n\t/usr/lib/go-1.12/src/runtime/proc.go:200"}
{"level":"error","ts":1566266565.6605635,"logger":"cmd","msg":"","error":"no matches for kind \"PlexTranscodeJob\" in version \"plex.tv/v1alpha1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/root/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128\nmain.main\n\tplex-operator/cmd/manager/main.go:122\nruntime.main\n\t/usr/lib/go-1.12/src/runtime/proc.go:200"}```
Hi
I have this error a few times, during simultaneous plays in the last 30 seconds:
{"level":"error","ts":1574605588.1583965,"logger":"cmd","msg":"","error":"error listening on 0.0.0.0:8383: listen tcp 0.0.0.0:8383: bind: address already in use","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/usr/local/Go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128\nmain.main\n\tplex-operator/cmd/manager/main.go:111\nruntime.main\n\t/usr/local/Cellar/go/1.13.4/libexec/src/runtime/proc.go:203"}
Do you have an idea of how to improve the problem? (I understand what is happening but no solution to fix it, I'm bad in golang).
Thanks for plex-operator ๐
I tried to build this but a lot of dependencies are failing and need updating.
I also wanted to modify the code so I can mount /dev/dri in the containers so it runs on my GPU cluster.
Hi @mcadam,
I tested to build plex-operator
but in failure, I always fall on this error (example):
$ go build -o build/_output/bin/plex-operator
[...]
go: finding k8s.io/metrics v0.0.0
go: k8s.io/[email protected]: unknown revision v0.0.0
go get: error loading module requirements
But same problem with k8s.io/cloud-provider
, k8s.io/kube-controller-manager
... Return unknown revision v0.0.0
An command/option that I forget?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.