Conventions used
There are a number of text conventions used throughout this book.
Code in text
: 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: "The final component to identify is apiGroups
. This is an additional area of inconsistency from the URL model."
A block of code is set as follows:
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: cluster-pod-and-pod-logs-reader rules: - apiGroups: [""] resources: ["pods", "pods/log"] verbs: ["get", "list"]
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
- hostPath: path: /usr/share/ca-certificates type: DirectoryOrCreate name: usr-share-ca-certificates - hostPath: path: /var/log/k8s type: DirectoryOrCreate name: var-log-k8s - hostPath: path: /etc/kubernetes/audit type: DirectoryOrCreate name: etc-kubernetes-audit
Any command-line input or output is written as follows:
PS C:\Users\mlb> kubectl create ns not-going-to-work namespace/not-going-to-work created
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: "Hit the Finish Login button at the bottom of the screen."
Tips or important notes
Appear like this.