Command line tool (kubectl) | Kubernetes

PHOTO EMBED

Fri May 31 2024 22:24:55 GMT+0000 (Coordinated Universal Time)

Saved by @calazar23

# Create a service using the definition in example-service.yaml.

kubectl apply -f example-service.yaml



# Create a replication controller using the definition in example-controller.yaml.

kubectl apply -f example-controller.yaml



# Create the objects that are defined in any .yaml, .yml, or .json file within the <directory> directory.

kubectl apply -f <directory>
content_copyCOPY

https://kubernetes.io/docs/reference/kubectl/