To create a Kubernetes object from a configuration file we’ve written, we can utilise the apply command.

kubectl apply -f <filename>

-f is to specify the name of the file that has the configuration we want to use.