Create a new namespace in Kubernetes using declarative way

namespace-dev.yml:

apiVersion: v1
kind: Namespace
metadata:
  name: dev