$ export IMAGE_NAME=<customized image. default is quay.io/open-cluster-management/multicluster-controlplane:latest>
$ make image
Set environment variables firstly and then deploy controlplane.
HUB_NAME
(optional) is the namespace where the controlplane is deployed in. The default ismulticluster-controlplane
.IMAGE_NAME
(optional) is the customized image which can override the default imagequay.io/open-cluster-management/multicluster-controlplane:latest
.
For example:
```bash
$ export HUB_NAME=<hub name>
$ export IMAGE_NAME=<your image>
$ make deploy
```
$ make vendor
$ make build
$ make run
The kubeconfig file of the controlplane is in the dir hack/deploy/cert-${HUB_NAME}/kubeconfig
.
You can use clusteradm to access and join a cluster.
$ clusteradm --kubeconfig=<kubeconfig file> get token --use-bootstrap-token
$ clusteradm join --hub-token <hub token> --hub-apiserver <hub apiserver> --cluster-name <cluster_name>
$ clusteradm --kubeconfig=<kubeconfig file> accept --clusters <cluster_name>
Warning clusteradm version should be v0.4.1 or later
Set environmrnt variables and deploy etcd.
ETCD_NS
(optional) is the namespace where the etcd is deployed in. The default ismulticluster-controlplane-etcd
.
For example:
$ export ETCD_NS=<etcd namespace>
$ make deploy-etcd
$ export IMAGE_NAME=<customized image. default is quay.io/open-cluster-management/multicluster-controlplane:latest>
$ make image
Set environment variables and deploy controlplane.
HUB_NAME
(optional) is the namespace where the controlplane is deployed in. The default ismulticluster-controlplane
.IMAGE_NAME
(optional) is the customized image which can override the default imagequay.io/open-cluster-management/multicluster-controlplane:latest
.
For example:
```bash
$ export HUB_NAME=<hub name>
$ export IMAGE_NAME=<your image>
$ make deploy-with-external-etcd
```
Currently we support to install work-manager and managed-serviceaccount add-on on the controlplane.
$ make deploy-work-manager-addon
$ make deploy-managed-serviceaccount-addon
$ make destory
$ export HUB_NAME=<hub name>
$ export IMAGE_NAME=<your image>
$ make deploy-all