我刚刚看到我的一些豆荚被kubernetes驱逐出境.会发生什么事?只是像那样闲逛或者我必须手动删除它们?
::shell脚本中的双冒号是什么?像这块脚本:
function guess_built_binary_path {
local hyperkube_path=$(kube::util::find-binary "hyperkube")
if [[ -z "${hyperkube_path}" ]]; then
return
fi
echo -n "$(dirname "${hyperkube_path}")"
}
Run Code Online (Sandbox Code Playgroud)
我在这里找到了它:
https://github.com/kubernetes/kubernetes/blob/master/hack/local-up-cluster.sh
当我运行我的tensorflow应用程序时,它只输出"已杀死".我该如何调试?
root@8e4a3a65184e:~/tensorflow# python sample_cnn.py
INFO:tensorflow:Using default config.
INFO:tensorflow:Using config: {'_save_checkpoints_secs': 600, '_session_config': None, '_keep_checkpoint_max': 5, '_tf_random_seed': 1, '_keep_checkpoint_every_n_hours': 10000, '_save_checkpoints_steps': None, '_model_dir': 'data/convnet_model', '_save_summary_steps': 100}
INFO:tensorflow:Create CheckpointSaverHook.
2017-08-17 12:56:53.160481: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-08-17 12:56:53.160536: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. …Run Code Online (Sandbox Code Playgroud) 使用 kubectl 时找不到状态 jsonpath。pod json 有一个状态字段,但它是一个数组。
kubectl get pods --column=Status:.status[*]
Run Code Online (Sandbox Code Playgroud)
数组中有多个元素,如何选择一个来反映真实 Pod 状态?