victoriametrics Operator 安装
从 GitHub下载最新的Operrator版本 :
export VM_OPERATOR_VERSION=$(basename $(curl -fs -o /dev/null -w %{redirect_url} https://github.com/VictoriaMetrics/operator/releases/latest));
echo "VM_OPERATOR_VERSION=$VM_OPERATOR_VERSION";wget -O operator-and-crds.yaml \"https://github.com/VictoriaMetrics/operator/releases/download/$VM_OPERATOR_VERSION/install-no-webhook.yaml";# Output:
# VM_OPERATOR_VERSION=v0.56.0
# ...
应用到您的集群:
kubectl apply -f operator-and-crds.yaml;
kubectl -n vm rollout status deployment vm-operator --watch=true;
查看自定义资源:
kubectl api-resources --api-group=operator.victoriametrics.com
参考:https://docs.victoriametrics.com/operator/quick-start/