KubeCube-Chart is a helm chart for KubeCube. This version is totally matching KubeCube version. The appVersion
of Chart.yaml will pin to specifield KubeCube version.
- Kubernetes 1.16+
- helm v3+
To install the chart with the release name kubecube
or warden
in namespace kubecube-system
:
- download to local
git clone https://github.com/kubecube-io/kubecube-chart.git
Create pivot-value.yaml
and set values as you wish.
# pivot-value.yaml
global:
# control-plane node IP which is used for exporting NodePort svc.
nodeIP: x.x.x.x
# set "true" to deploy if there were not already in cluster.
dependencesEnable:
ingressController: "false"
localPathStorage: "false"
metricServer: "false"
# set "enabled" if wanna open log application.
hotPlugEnable:
pivot:
logseer: "disabled"
logagent: "disabled"
elasticsearch: "disabled"
localKubeConfig: xx # local cluster kubeconfig base64
pivotKubeConfig: xx # pivot cluster kubeconfig base64
warden:
containers:
warden:
args:
cluster: "pivot-cluster" # set current cluster name
helm install kubecube -n kubecube-system --create-namespace ./kubecube-chart -f ./pivot-value.yaml
Create member-value.yaml
and set values as you wish.
# member-value.yaml
global:
# control-plane node IP which is used for exporting NodePort svc.
nodeIP: x.x.x.x
# set "true" to deploy if there were not already in cluster.
dependencesEnable:
ingressController: "false"
localPathStorage: "false"
metricServer: "false"
# do not modify values as bellow.
componentsEnable:
kubecube: "false"
warden: "true"
audit: "false"
webconsole: "false"
cloudshell: "false"
frontend: "false"
# set "enabled" if wanna open log application.
hotPlugEnable:
common:
logagent: "disabled"
localKubeConfig: xx # local cluster kubeconfig base64
pivotKubeConfig: xx # pivot cluster kubeconfig base64
warden:
containers:
warden:
args:
inMemberCluster: true
cluster: "member-cluster" # set current cluster name
helm install warden -n kubecube-system --create-namespace ./kubecube-chart -f ./member-value.yaml
Note: not found error can be ignored.
kubectl delete validatingwebhookconfigurations kubecube-validating-webhook-configuration warden-validating-webhook-configuration kubecube-monitoring-admission
To uninstall/delete the kubecube
helm release in namespace kubecube-system
:
helm uninstall kubecube -n kubecube-system
helm uninstall warden -n kubecube-system
The command removes all the Kubernetes components associated with the chart and deletes the release.
Note: There are some RBAC resources that are used by the
preJob
that can not be deleted by theuninstall
command above. You might have to clean them manually with tools likekubectl
. You can clean them by commands:
kubectl delete sa/kubecube-pre-job -n kubecube-system
kubectl delete clusterRole/kubecube-pre-job
kubectl delete clusterRoleBinding/kubecube-pre-job
kubectl delete ns kubecube-system hnc-system kubecube-monitoring