我知道我们可以通过kubelet-extra-args创建带有标签的节点组:
--kubelet-extra-args --node-labels=foo=bar
这种语法让我有些惊讶,因此我不确定如何添加多个标签。
答案 0 :(得分:5)
找到了!我应该已经猜到了,但这会将事情传递给kubelet,它显然需要用逗号分隔的键值对加上'='
let started = false;
let rotateCamera = () => {
if (started) {
requestAnimationFrame(rotateCamera);
}
const nav = viewer.navigation;
const up = nav.getCameraUpVector();
const axis = new THREE.Vector3(0, 0, 1);
const speed = 10.0 * Math.PI / 180;
const matrix = new THREE.Matrix4().makeRotationAxis(axis, speed * 0.1);
let pos = nav.getPosition();
pos.applyMatrix4(matrix);
up.applyMatrix4(matrix);
nav.setView(pos, new THREE.Vector3(0, 0, 0));
nav.setCameraUpVector(up);
var viewState = viewer.getState();
// viewer.restoreState(viewState);
};
turnTableToolbarButton.onClick = function (e) {
started = !started;
if (started) rotateCamera()
};