From 07c7aee182c8d6e1c885e0a5124835d599ca1c53 Mon Sep 17 00:00:00 2001 From: windsonsea Date: Fri, 11 Oct 2024 08:52:27 +0800 Subject: [PATCH] [zh] Add glossary/duration.md --- .../zh-cn/docs/reference/glossary/duration.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 content/zh-cn/docs/reference/glossary/duration.md diff --git a/content/zh-cn/docs/reference/glossary/duration.md b/content/zh-cn/docs/reference/glossary/duration.md new file mode 100644 index 0000000000..594a7047e4 --- /dev/null +++ b/content/zh-cn/docs/reference/glossary/duration.md @@ -0,0 +1,31 @@ +--- +title: Duration +id: duration +date: 2024-10-05 +full_link: +short_description: > + 以字符串形式指定的时间间隔,格式符合 Go 语言的 + [time.Duration](https://pkg.go.dev/time), + 允许使用秒、分钟和小时等不同单位灵活地指定时间。 +aka: +tags: +- fundamental +--- + + + +在 Kubernetes API 中,duration 必须是非负的,通常带有后缀单位。 +例如,`5s` 表示五秒,`1m30s` 表示一分三十秒。