Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation by Binary, the steps to install karmada-controller-manager failed #585

Open
XiShanYongYe-Chang opened this issue Apr 7, 2024 · 7 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Comments

@XiShanYongYe-Chang
Copy link
Member

Through binary installation documentation, the steps to install karmada-controller-manager failed.

The error log:

controllermanager.go:807] error starting controllers: [no matches for kind "ResourceBinding" in version "work.karmada.io/v1alpha2", no matches for kind "ClusterResourceBinding" in version "work.karmada.io/v1alpha2"]
@XiShanYongYe-Chang
Copy link
Member Author

This error is reported because Karmada's CRD resources are not installed. The steps to install CRD resources are still behind, and the sequence of steps in the document needs to be adjusted.

/help

@karmada-bot
Copy link
Collaborator

@XiShanYongYe-Chang:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

This error is reported because Karmada's CRD resources are not installed. The steps to install CRD resources are still behind, and the sequence of steps in the document needs to be adjusted.

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@karmada-bot karmada-bot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Apr 7, 2024
@XiShanYongYe-Chang
Copy link
Member Author

After compiling and installing nginx, configure Nginx according to the documentation and configure load balancing for karmada apiserver. Add the following configuration to /usr/local/karmada-nginx/conf/nginx.conf:

stream {
    upstream backend {
        hash consistent;
        server 172.31.209.245:6443        max_fails=3 fail_timeout=30s;
        server 172.31.209.246:6443        max_fails=3 fail_timeout=30s;
        server 172.31.209.247:6443        max_fails=3 fail_timeout=30s;
    }

    server {
        listen 172.31.209.245:5443;
        proxy_connect_timeout 1s;
        proxy_pass backend;
    }
}

Failed to start /lib/systemd/system/karmada-nginx.service service, the error log:

unknown directive "http" in /usr/local/karmada-nginx/conf/nginx.conf:17

@XiShanYongYe-Chang
Copy link
Member Author

Install karmada-aggregated-apiserver step, kubectl create ns karmada-system failed, we need to do the following steps first:

cp  /etc/karmada/admin.kubeconfig   ~/.kube/config
 mkdir -pv /root/.kube/pki/
cp /etc/karmada/pki/admin.crt   /root/.kube/pki/
cp /etc/karmada/pki/admin.key   /root/.kube/pki/
cp /etc/karmada/pki/server-ca.crt   /root/.kube/pki/

@xuyongsan
Copy link

How to adjust the validity period of a certificate generated using an official script(https://github.com/karmada-io/website/tree/main/docs/resources/installation/install-binary/generate_cert)?

@XiShanYongYe-Chang
Copy link
Member Author

How to adjust the validity period of a certificate generated using an official script(https://github.com/karmada-io/website/tree/main/docs/resources/installation/install-binary/generate_cert)?

Hi @chaosi-zju, can you help take a look?

@XiShanYongYe-Chang
Copy link
Member Author

/assign @xuyongsan

If you encounter any problems during the submission process, you can provide direct feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
None yet
Development

No branches or pull requests

3 participants