节点级别的日志

This commit is contained in:
huanqing.shao
2019-10-08 23:31:27 +08:00
parent f513f22a73
commit d8ccf1b701
7 changed files with 106 additions and 9 deletions

View File

@ -409,6 +409,7 @@ module.exports = {
{
title: 'Kubernetes 高级',
collapsable: true,
path: '/learning/k8s-advanced/index',
children: [
{
title: 'Kubernetes 日志',

View 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']