concept kubectl in category cloud

This is an excerpt from Manning's book Cloud Native Patterns: Designing change-tolerant software.
The distribution of the open source Kubernetes project that you’ll be using here is called Minikube (https://github.com/kubernetes/minikube). Whereas in production Kubernetes would always be deployed as a multinode distributed system (probably across availability zones, as we’ve talked about in preceding chapters), Minikube gives you a single-node deployment that allows you to get up and running quickly on your own workstation. The installation instructions for Minikube are included in the README file of the GitHub repository and provide steps for running on Linux, Windows, and macOS. Prior to installing Minikube, you should also install the Kubernetes CLI, kubectl (https://kubernetes.io/docs/tasks/tools/install-kubectl/). After you’ve addressed the prerequisites (for example, having VirtualBox installed on your machine) and installed Minikube, you’ll be ready to deploy our sample app on Kubernetes.
kubectl create -f mysql-deployment.yaml kubectl create -f redis-deployment.yaml mysql -h $(minikube service mysql-svc --format "{{.IP}}") \ -P $(minikube service mysql-svc --format "{{.Port}}") -u root -p mysql> create database cookbook;