if (FALSE) {
# without any args, prints the kubectl help screen
call_kubectl()
# append "--help" to get help for a command
call_kubectl(c("create", "--help"))
# deploy a service from a yaml file
call_kubectl(c("create", "-f", "deployment.yaml"))
# get deployment and service status
call_kubectl(c("get", "deployment"))
call_kubectl(c("get", "service"))
}
Run the code above in your browser using DataLab