In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to compile banzaicloud/kafka-operator, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
[root@k8s-tcm1:/opt/k8s/kafka-operator] # make deploy
Which: no controller-gen in (/ usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/go/bin)
Go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.0
Go: finding sigs.k8s.io v0.2.0
Go: finding sigs.k8s.io/controller-tools/cmd/controller-gen v0.2.0
Go: finding sigs.k8s.io/controller-tools/cmd v0.2.0
Go: finding sigs.k8s.io/controller-tools v0.2.0
Go: downloading sigs.k8s.io/controller-tools v0.2.0
Go: extracting sigs.k8s.io/controller-tools v0.2.0
Go: downloading sigs.k8s.io/controller-tools v0.2.0-beta.4
Go: extracting sigs.k8s.io/controller-tools v0.2.0-beta.4
Go: downloading k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
Go: downloading github.com/spf13/cobra v0.0.5
Go: downloading golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac
Go: downloading k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
Go: downloading sigs.k8s.io/yaml v1.1.0
Go: downloading k8s.io/apiextensions-apiserver v0.0.0-20190409022649-727a075fdec8
Go: downloading github.com/fatih/color v1.7.0
Go: downloading github.com/gobuffalo/flect v0.1.5
Go: extracting sigs.k8s.io/yaml v1.1.0
Go: downloading gopkg.in/yaml.v2 v2.2.2
Go: extracting github.com/fatih/color v1.7.0
Go: downloading github.com/mattn/go-isatty v0.0.8
Go: extracting github.com/spf13/cobra v0.0.5
Go: downloading github.com/inconshreveable/mousetrap v1.0.0
Go: extracting github.com/gobuffalo/flect v0.1.5
Go: downloading github.com/spf13/pflag v1.0.3
Go: extracting github.com/spf13/pflag v1.0.3
Go: downloading github.com/mattn/go-colorable v0.1.2
Go: extracting github.com/inconshreveable/mousetrap v1.0.0
Go: extracting gopkg.in/yaml.v2 v2.2.2
Go: extracting github.com/mattn/go-isatty v0.0.8
Go: downloading golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
Go: extracting k8s.io/apiextensions-apiserver v0.0.0-20190409022649-727a075fdec8
Go: extracting github.com/mattn/go-colorable v0.1.2
Go: downloading github.com/gogo/protobuf v1.2.2-0.20190730201129-28a6bbf47e48
Go: extracting github.com/gogo/protobuf v1.2.2-0.20190730201129-28a6bbf47e48
Go: extracting golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
Go: extracting golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac
Go: extracting k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
Go: extracting k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
Go: downloading github.com/google/gofuzz v1.0.0
Go: downloading k8s.io/klog v0.4.0
Go: downloading gopkg.in/inf.v0 v0.9.1
Go: downloading golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
Go: extracting github.com/google/gofuzz v1.0.0
Go: extracting gopkg.in/inf.v0 v0.9.1
Go: extracting k8s.io/klog v0.4.0
Go: extracting golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
Go: downloading golang.org/x/text v0.3.2
Go: extracting golang.org/x/text v0.3.2
Go: finding github.com/gobuffalo/flect v0.1.5
Go: finding github.com/spf13/cobra v0.0.5
Go: finding golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac
Go: finding k8s.io/apiextensions-apiserver v0.0.0-20190409022649-727a075fdec8
Go: finding k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
Go: finding github.com/fatih/color v1.7.0
Go: finding k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
Go: finding github.com/spf13/pflag v1.0.3
Go: finding github.com/mattn/go-colorable v0.1.2
Go: finding github.com/mattn/go-isatty v0.0.8
Go: finding github.com/gogo/protobuf v1.2.2-0.20190730201129-28a6bbf47e48
Go: finding sigs.k8s.io/yaml v1.1.0
Go: finding github.com/google/gofuzz v1.0.0
Go: finding gopkg.in/inf.v0 v0.9.1
Go: finding golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
Go: finding gopkg.in/yaml.v2 v2.2.2
Go: finding k8s.io/klog v0.4.0
Go: finding golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
Go: finding golang.org/x/text v0.3.2
/ root/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths= ". /..." Output:crd:artifacts:config=config/base/crds output:rbac:artifacts:config=config/base/rbac output:webhook:artifacts:config=config/base/webhook
Bin/kustomize build config | kubectl apply-f-
Namespace/kafka created
Warning: kubectl apply should be used on resource created by either kubectl create-- save-config or kubectl apply
Customresourcedefinition.apiextensions.k8s.io/kafkaclusters.kafka.banzaicloud.io configured
Warning: kubectl apply should be used on resource created by either kubectl create-- save-config or kubectl apply
Customresourcedefinition.apiextensions.k8s.io/kafkatopics.kafka.banzaicloud.io configured
Warning: kubectl apply should be used on resource created by either kubectl create-- save-config or kubectl apply
Customresourcedefinition.apiextensions.k8s.io/kafkausers.kafka.banzaicloud.io configured
. / scripts/image_patch.sh "config/overlays/specific-manager-version/manager_image_patch.yaml" banzaicloud/kafka-operator:chart/kafka-operator/0.2.9
Kustomize build config/overlays/specific-manager-version | kubectl apply-f-
Customresourcedefinition.apiextensions.k8s.io/kafkaclusters.kafka.banzaicloud.io configured
Customresourcedefinition.apiextensions.k8s.io/kafkatopics.kafka.banzaicloud.io configured
Customresourcedefinition.apiextensions.k8s.io/kafkausers.kafka.banzaicloud.io configured
Role.rbac.authorization.k8s.io/kafka-operator-certman-proxy-leader-election-role created
Clusterrole.rbac.authorization.k8s.io/kafka-operator-certman-proxy-manager-role created
Clusterrole.rbac.authorization.k8s.io/kafka-operator-certman-proxy-proxy-role created
Rolebinding.rbac.authorization.k8s.io/kafka-operator-certman-proxy-leader-election-rolebinding created
Clusterrolebinding.rbac.authorization.k8s.io/kafka-operator-certman-proxy-manager-rolebinding created
Clusterrolebinding.rbac.authorization.k8s.io/kafka-operator-certman-proxy-proxy-rolebinding created
Service/kafka-operator-certman-proxy-alertmanager created
Service/kafka-operator-certman-proxy-controller-manager-metrics-service created
Service/kafka-operator-certman-proxy-webhook-service created
Deployment.apps/kafka-operator-certman-proxy-controller-manager created
Certificate.cert-manager.io/kafka-operator-certman-proxy-serving-cert created
Issuer.cert-manager.io/kafka-operator-certman-proxy-selfsigned-issuer created
Validatingwebhookconfiguration.admissionregistration.k8s.io/kafka-operator-certman-proxy-validating-webhook-configuration created
There seems to be nothing wrong with the compilation process, but the actual deployment is not successful:
Events:
Type Reason Age From Message
Warning InspectFailed 10m (x418 over 100m) kubelet, k8s-tcn3 Failed to apply default image tag "banzaicloud/kafka-operator:chart/kafka-operator/0.2.9": couldn't parse image reference "banzaicloud/kafka-operator:chart/kafka-operator/0.2.9": invalid reference format
Warning Failed 35s (x464 over 100m) kubelet, k8s-tcn3 Error: InvalidImageName
Look at the image name and tag, obviously what went wrong is all the content of the article "how to compile banzaicloud/kafka-operator". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.