Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> |
||
|---|---|---|
| .. | ||
| boilerplate | ||
| tools | ||
| .import-aliases | ||
| OWNERS | ||
| README.md | ||
| create-cluster.sh | ||
| delete-cluster.sh | ||
| deploy-karmada-agent.sh | ||
| deploy-karmada.sh | ||
| docker.sh | ||
| karmada-bootstrap.sh | ||
| local-up-karmada.sh | ||
| remote-up-karmada.sh | ||
| run-e2e.sh | ||
| undeploy-karmada.sh | ||
| update-all.sh | ||
| update-codegen.sh | ||
| update-crdgen.sh | ||
| update-estimator-protobuf.sh | ||
| update-import-aliases.sh | ||
| update-vendor.sh | ||
| util.sh | ||
| verify-all.sh | ||
| verify-codegen.sh | ||
| verify-crdgen.sh | ||
| verify-import-aliases.sh | ||
| verify-staticcheck.sh | ||
| verify-vendor.sh | ||
README.md
Karmada hack GuideLines
This document describes how you can use the scripts from the hack directory
and gives a brief introduction and explanation of these scripts.
Scripts in this directory are mainly for the purpose which improves development efficiency and ensures development quality.
Key scripts
For end-user
-
local-up-karmada.shThis script will quickly set up a local development environment based on the current codebase. -
remote-up-karmada.shThis script will install Karmada to a standalone K8s cluster, this cluster may be real, remote , and even for production. It is worth noting for the connectivity from your client to Karmada API server, it will create a load balancer service with an external IP by default, if your want to customize this service, you may add the annotations at the metadata part of servicekarmada-apiserverin../artifacts/deploy/karmada-apiserver.yamlbefore the installing. The following is an example.
# If you want to use a internal IP in public cloud you need to fill the following annotation,
# Fot the more annotation settings please read your public cloud docs
annotations:
# Aliyun cloud
#service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type: "intranet"
# Huawei cloud
#kubernetes.io/elb.autocreate: '{"type":"inner"}'
# Tencent cloud (you need to replace words 'xxxxxxxx')
#service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-xxxxxxxx
-
deploy-karmada-agent.shThis script will install Karmada Agent to the specific cluster. -
undeploy-karmada.shThis script will uninstall Karmada from the specific cluster. It will uninstall Karmada from your local environment default. If you installed Karmada withremote-up-karmada.sh, please use it like this:hack/undeploy-karmada.sh <KUBECONFIG> <CONTEXT_NAME>, the same parameters as you input at the installing step.
For CI pipeline
-
karmada-bootstrap.shThis script will quickly pull up a local Karmada environment too, what is different fromlocal-up-karmada.shis it will pull up member clusters. This is usually for testing, of course, you may also use it for your local environment. -
run-e2e.shThis script runs e2e test against on Karmada control plane. You should prepare your environment in advance withkarmada-bootstrap.sh.
Some internal scripts
These scripts are not intended used by end-users, just for the development
-
deploy-karmada.shUnderlying common implementation forlocal-up-karmada.sh,remote-up-karmada.shandkarmada-bootstrap.sh -
util.shAll util functions.