- Kubernetes Cookbook
- Hideto Saito Hui Chuan Chloe Lee Ke Jou Carol Hsu
- 206字
- 2025-04-04 17:06:46
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Prepare the following YAML file, which is a simple Deployment that launches two nginx containers."
A block of code is set as follows:
# cat 3-1-1_deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Annotations: deployment.kubernetes.io/revision=1
Selector: env=test,project=My-Happy-Web,role=frontend
Replicas: 5 desired | 5 updated | 5 total | 5 available | 0 unavailable
StrategyType: RollingUpdate
Any command-line input or output is written as follows:
//install kubectl command by "kubernetes-cli" package
$ brew install kubernetes-cli
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Installation is straightforward, so we can just choose the default options and click Next."
Warnings or important notes appear like this.
Tips and tricks appear like this.