Skip to content

Commit

Permalink
sync cheatsheet.md
Browse files Browse the repository at this point in the history
sync cheatsheet.md
  • Loading branch information
asa3311 committed Apr 3, 2023
1 parent ed816c4 commit 3588949
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/zh-cn/docs/reference/kubectl/cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ kubectl create cronjob hello --image=busybox:1.28 --schedule="*/1 * * * *" --
kubectl explain pods # get the documentation for pod manifests
# Create multiple YAML objects from stdin
cat <<EOF | kubectl apply -f -
kubectl apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
Expand All @@ -243,7 +243,7 @@ spec:
EOF
# Create a secret with several keys
cat <<EOF | kubectl apply -f -
kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
Expand Down Expand Up @@ -271,7 +271,7 @@ kubectl create cronjob hello --image=busybox:1.28 --schedule="*/1 * * * *" --
kubectl explain pods # 获取 pod 清单的文档说明

# 从标准输入创建多个 YAML 对象
cat <<EOF | kubectl apply -f -
kubectl apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
Expand All @@ -298,7 +298,7 @@ spec:
EOF

# 创建有多个 key 的 Secret
cat <<EOF | kubectl apply -f -
kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
Expand Down

0 comments on commit 3588949

Please sign in to comment.