# Source: https://github.com/jina-ai/jina/blob/master/docs/concepts/serving/executor/deployment-yaml-spec.md(deployment-yaml-spec)=# {octicon}`file-code` YAML specificationTo generate a YAML configuration from a {class}`~jina.Deployment` Python object, use {meth}`~jina.Deployment.save_config`.## Example YAML```yamljtype: Deploymentwith:  replicas: 2  uses: jinaai+docker://jina-ai/CLIPEncoder```## Fields### `jtype`String that is always set to "Deployment", indicating the corresponding Python class.### `with`Keyword arguments are passed to a Deployment's `__init__()` method. You can pass your Deployment settings here:#### Arguments```{include} ./../flow/deployment-args.md``````{include} ./../flow/yaml-vars.md```