[Yandex Cloud documentation](../../index.md) > [Yandex Managed Service for Kubernetes](../index.md) > [Application Load Balancer tools](index.md) > Gateway API > Resource configuration > YCCertificate

# YCCertificate resource fields

The `YCCertificate` resource contains Certificate Manager certificate parameters for setting up TLS connections in the `Gateway` resource.

{% note tip %}

We recommend using the new [Yandex Cloud Gwin](gwin-index.md) controller instead of an ALB Ingress controller and Gateway API.

{% endnote %}

## YCCertificate {#yc-certificate}

```yaml
apiVersion: gwin.yandex.cloud/v1
kind: YCCertificate
metadata:
  name: <string>
  namespace: <string>
spec: <YCCertificateSpec>
```

Where:

* `apiVersion`: `gwin.yandex.cloud/v1`
* `kind`: `YCCertificate`
* `metadata` (`ObjectMeta`; this is a required field)

  Resource metadata.

  * `name` (`string`; this is a required field)

    Resource name. For more information about the format, see [this Kubernetes guide](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names).

  * `namespace` (`string`)

    [Namespace](../concepts/index.md#namespace) the resource belongs to. The default value is `default`.

* `spec` (`YCCertificateSpec`; this is a required field)

  Resource specification. For more information, see [below](#spec).

## YCCertificateSpec {#spec}

```yaml
certificateRef:
  certificateID: <string>
  certificateName: <string>
  folderID: <string>
```

Where:

* `certificateRef` (this is a required field)

  Certificate Manager certificate parameters. You can set either `certificateID` or `certificateName` and `folderID`. If the certificate folder is the same as the load balancer folder, you only need to specify `certificateName`.

  * `certificateID` (`string`)
  
    Certificate ID.

  * `certificateName` (`string`)
  
    Certificate name. It is used together with the `folderID` parameter. If the certificate folder is the same as the load balancer folder, you only need to specify `certificateName`.

  * `folderID` (`string`)
  
    Certificate folder. It is used together with the `certificateName` parameter.