---
title: "namePrefix"
linkTitle: "namePrefix"
type: docs
weight: 11
description: >
    Add prefixes to the names of all resources.
---
`apiVersion: kustomize.config.k8s.io/v1beta1`

See the [Tasks section] for examples of how to use `namePrefix`.

### namePrefix
Add prefixes to the names of all resources.

* **namePrefix** (string)

    NamePrefix will add a prefix to the names of all resources mentioned in the Kustomization file including generated resources such as ConfigMaps and Secrets.


[Tasks section]: /docs/tasks/namespaces_and_names/
