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.gitCreate 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 namehelm install kubecube -n kubecube-system --create-namespace ./kubecube-chart -f ./pivot-value.yamlCreate 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 namehelm install warden -n kubecube-system --create-namespace ./kubecube-chart -f ./member-value.yamlNote: not found error can be ignored.
kubectl delete validatingwebhookconfigurations kubecube-validating-webhook-configuration warden-validating-webhook-configuration kubecube-monitoring-admissionTo uninstall/delete the kubecube helm release in namespace kubecube-system:
helm uninstall kubecube -n kubecube-systemhelm uninstall warden -n kubecube-systemThe 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
preJobthat can not be deleted by theuninstallcommand 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