> For the complete documentation index, see [llms.txt](https://utm-1.gitbook.io/utm-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utm-1.gitbook.io/utm-docs/dokumentaciya/utm-it/resheniya/kubernetes/prilozheniya/keycloak.md).

# Keycloak

[Текущее описание установки](https://utm-1.gitbook.io/utm-docs/~/revisions/lXWTPfRCArjY7D1upgmr/instrukcii/dokumentaciya/dostupy/informaciya/razvyortyvanie-keycloak-alisa-ai)

{% hint style="danger" %}
Устанавливалось в 2 вариантах:
{% endhint %}

{% hint style="danger" %}
**1. Keycloak работает по HTTP**

<https://keycloak.utmsoft.ru> -> к обратному прокси по HTTPS

Обратный прокси -> Ingress по HTTP

Ingress -> Keycloak по HTTP

Вариант не заработал. Всё поднималось, но при открытии страницы htpps\://keycloak.utmsoft.ru выдавалось сообщение что есть какие-то ошибки. Сообщение выдавалось в интерфейсе Keycloak.\
somethingWentWrongDescription

![](/files/5lM9cEES33BZIea5bg9q)

{% endhint %}

{% hint style="danger" %}
**2. Keycloak работает по HTTPS**

<https://keycloak.utmsoft.ru> -> к обратному прокси по HTTPS

Обратный прокси -> Ingress по HTTPS

Ingress -> Keycloak по HTTPS

Вариант не заработал. htpps\://keycloak.utmsoft.ru не удалось открыть. Получал ошибку 502 Bad Gateway

Для этого варианта установлен cert-manager, в котором настроен ClusterIssuer на letsencrypt.org.

Там был выпущен сертификат и сохранен в секретах Kubernetes.

Также вручную был выгружен ca-bundle.crt и размещен в каталоге /etc/nginx/ssl/ca-bundle.crt на обратном прокси и указан в параметре proxy\_ssl\_trusted\_certificate.

Остановился на том, что сертификаты нужно попробовать замонтировать в Pod как volumes.

Приложение было удалено и должно было пересоздаться.

letsencrypt пока говорит что слишком много было выдано сертификатов. Нужно подождать 2 дня для повторных запросов.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://utm-1.gitbook.io/utm-docs/dokumentaciya/utm-it/resheniya/kubernetes/prilozheniya/keycloak.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
