Open jtaleric opened 3 months ago
The Deployment "kepler-operator-controller" is invalid: spec.template.spec.containers[0].volumeMounts[0].name: Not found: "cert"
@jtaleric Can you try running make fresh
instead of make deploy
?
@vprashar2929 so, make fresh
seems to deploy a kind cluster? I am trying to use make deploy
install on a existing cluster?
I want to do the same thing, on a bare metal (VM-based) cluster, deployed with kubespray, kubeadm.
I already have prometheus operator deployed, as well.
Anyone found out the workaround yet ?
@elafontaine We will address this post by merging this. In the meantime, as a workaround, I suggest you can use operator-sdk to install operator on k8s
make tools # making sure that all the necessary tools are installed locally including operator-sdk
./tmp/bin/operator-sdk olm install --verbose --timeout 5m # installs olm on k8s cluster
./tmp/bin/operator-sdk run bundle quay.io/sustainable_computing_io/kepler-operator-bundle:0.13.0 --install-mode AllNamespaces --skip-tls -n openshift-operators # deploys operator using latest released bundle
The last command did not execute correctly for me...
FATA[0021] Failed to run bundle: create catalog: error creating catalog source: namespaces "openshift-operators" not found
I'm was trying to avoid dealing with the openshift related tooling, but to keep using the operators as they're very useful :).
Anyway, removing the last part of the command (the namespace option) I was able to deploy, but the kepler-operator-controlller
never started up correctly.
./tmp/bin/operator-sdk run bundle quay.io/sustainable_computing_io/kepler-operator-bundle:0.13.0 --install-mode AllNamespaces
2024-07-01T18:50:27Z ERROR controller-runtime.source.EventHandler if kind is a CRD, it should be installed before calling Start{"kind": "SecurityContextConstraints.security.openshift.io", "error": "failed to get restmapping: no matches for kind \"SecurityContextConstraints\" in group \"security.openshift.io\""}
sigs.k8s.io/controller-runtime/pkg/internal/source.(*Kind).Start.func1.1
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/internal/source/kind.go:63
k8s.io/apimachinery/pkg/util/wait.loopConditionUntilContext.func2
/go/pkg/mod/k8s.io/apimachinery@v0.29.1/pkg/util/wait/loop.go:87
k8s.io/apimachinery/pkg/util/wait.loopConditionUntilContext
/go/pkg/mod/k8s.io/apimachinery@v0.29.1/pkg/util/wait/loop.go:88
k8s.io/apimachinery/pkg/util/wait.PollUntilContextCancel
/go/pkg/mod/k8s.io/apimachinery@v0.29.1/pkg/util/wait/poll.go:33
sigs.k8s.io/controller-runtime/pkg/internal/source.(*Kind).Start.func1
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/internal/source/kind.go:56
Ah, my bad you also need SCC CRD to be added. Can you also run these commands?
kubectl apply --force -f ./hack/crds
kubectl create namespace openshift-config-managed
kubectl create -f hack/monitoring/rbac
./tmp/bin/operator-sdk olm install --verbose --timeout 5m
./tmp/bin/operator-sdk run bundle quay.io/sustainable_computing_io/kepler-operator-bundle:0.13.0 --install-mode AllNamespaces --skip-tls -n operators --timeout 5m
so I'm sorry, I didn't saw your message and I tried to start from the make cluster-up
instead... That did not work either as the "make run" isn't passing.
2024-07-03T10:37:30-04:00 INFO Wait completed, proceeding to shutdown the manager
2024-07-03T10:37:30-04:00 ERROR setup problem running manager {"error": "open /var/folders/p8/5wb68xbn4w9d4zzqn41gc9yw0000gp/T/k8s-webhook-server/serving-certs/tls.crt: no such file or directory"}
main.main
/Users/elafonta/kepler/kepler-operator/cmd/manager/main.go:195
runtime.main
/Users/elafonta/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.7.darwin-arm64/src/runtime/proc.go:267
exit status 1
make: *** [run] Error 1
I think the error may be related as it's a problem with the TLS volume again...
that's correct make run
will not run as by default it looks for webhooks certs that are not present on the cluster. In this case, I suggest you can use make run ENABLE_WEBHOOKS=false
Attempting to deploy, with
Following the docs to deploy the operator, I ran :