# Self-signed TLS in k8s

**URL:** <https://forum.gitea.com/t/self-signed-tls-in-k8s/5662>\
**Category:** Install/Maintain/Configure\
**Created:** [August 5, 2022, 11:21am UTC](https://forum.gitea.com/t/self-signed-tls-in-k8s/5662 "2022-08-05T11:21:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikolai-in](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/nikolai-in/32/5104_2.png) [@nikolai-in](https://forum.gitea.com/u/nikolai-in)\
**Post date:** [August 5, 2022, 11:21am UTC](https://forum.gitea.com/t/self-signed-tls-in-k8s/5662/1 "2022-08-05T11:21:44Z")

</div>

Hello, I apologize for maybe annoyingly dumb question, but how do I enable TLS in k8s ingress with cert-manager (self-signed)?

```nohighlight
gitea:
  config:
    server:
      ROOT_URL: https://git.example.com
ingress:
  annotations: {}
  enabled: true
  hosts:
    - host: git.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - git.example.com
      secretName: chart-example-tls

```
