Kubectl is a CLI tool to interact with the #202201291535’s #202202012124. This includes the cloud cluster and 202202032024.
Basic Commands
For CRUD (create, read, update and delete) operations:
-
create
-
edit
-
delete
To get the status of the components, use get
alongside with:
-
nodes
-
pod
-
deployment
-
replicaset
-
services
-
namespaces
Note: You could get more information by using the option -o wide
You can access #kube-public data by:
-
cluster-info
Note: For commands related to namespace, use the option -n
For debugging:
-
logs
if the running app has logging capability -
exec -it
with an interactive shell -
describe pod
If using a #configuration file is desired, we could do:
-
apply -f
-
delete -f
It is possible to do a continuous update on #202201311650 by the command rolling-update
. We extend it with options like:
-
--rollback
to roll back to a previous update.