节点级别的日志
This commit is contained in:
@ -409,6 +409,7 @@ module.exports = {
|
||||
{
|
||||
title: 'Kubernetes 高级',
|
||||
collapsable: true,
|
||||
path: '/learning/k8s-advanced/index',
|
||||
children: [
|
||||
{
|
||||
title: 'Kubernetes 日志',
|
||||
|
||||
10
.vuepress/public/statics/learning/logs/counter-pod.yaml
Normal file
10
.vuepress/public/statics/learning/logs/counter-pod.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: counter
|
||||
spec:
|
||||
containers:
|
||||
- name: count
|
||||
image: busybox
|
||||
args: [/bin/sh, -c,
|
||||
'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done']
|
||||
Reference in New Issue
Block a user