Kubectl: Difference between revisions
Jump to navigation
Jump to search
Line 36: | Line 36: | ||
kubectl apply -f ''filename''.yaml | kubectl apply -f ''filename''.yaml | ||
Revision as of 21:25, 23 August 2019
Internal
Overview
kubectl is the main Kubernetes command line tool, used to send REST API requests with JSON-formatted payloads into the API server.
Configuration
Commands
Options
Obtaining Information about API Objects
kubectl get
kubectl describe
kubectl get and kubectl describe mask sensitive information such as a secret's content to protect it from being exposed accidentally to an onlooker or from being stored in a terminal log.
Output in YAML Format
kubectl get -o yaml ...
POSTing a Manifest
kubectl apply -f filename.yaml