我想为OOMKilled事件设置一些工具,在检查一个pod时,这些事件如下所示:Namespace: testStart Time: Fri, 03 Feb 2017 14:34:57 -0800
Labels: pod-template-hashspec.containers{pnovotnak-manhole} Normal Started Starte
我们有使用Istio和Jenkins作业的集群来获得“稳定的”豆荚,它使用这个kubectl查询:
kubectlget po -o=jsonpath="{range .items[?但是这里有一件棘手的事情,看起来数组是用字母表构建的,所以如果Istio容器是最后一个,它会将它取为现成的pod,因为最后一个容器已经准备好了。我也尝试过使用go-template
是否可以从多个指定的K8s( only the CLI (kubectl) )中显示库伯奈特斯( Kubernetes )资源?换句话说,给定一个namespaces集群中的两个K8s:--output=go-template \
--template='{{ range .items是否可以使用get资源(如pods)从只使用--这两个namespaces ($SOME_