Working with kubectl create command line

By using kubectl create secret command line, you can create a Secret from a file, directory, or literal value. With this method, you don't need to encode the Secret by yourself. Kubernetes will do that for you: