website icon indicating copy to clipboard operation
website copied to clipboard

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

Open XiShanYongYe-Chang opened this issue 1 year ago • 7 comments

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 avatar Apr 07 '24 06:04 XiShanYongYe-Chang

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

XiShanYongYe-Chang avatar Apr 07 '24 07:04 XiShanYongYe-Chang

@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 avatar Apr 07 '24 07:04 karmada-bot

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 avatar Apr 07 '24 07:04 XiShanYongYe-Chang

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/

XiShanYongYe-Chang avatar Apr 07 '24 07:04 XiShanYongYe-Chang

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)?

xuyongsan avatar Apr 07 '24 08:04 xuyongsan

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 avatar Apr 07 '24 08:04 XiShanYongYe-Chang

/assign @xuyongsan

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

XiShanYongYe-Chang avatar Apr 07 '24 09:04 XiShanYongYe-Chang