“无法连接到数据库”->无法从KeycloakAKS连接到Azure PostgreSQL数据库

问题描述

使用Codecentric Helm Chart Azure Kubernetes服务中部署密钥斗篷时,它无法连接到 Azure Postgresql数据库

>

将存储库放入本地计算机后,对statefulset.yaml文件进行了以下提及的更改:-

env:
  - name: DB_vendOR
    value: postgres
  - name: JDBC_ParaMS
    value: "true"
  - name: DB_ADDR
    value: {{ .Values.postgresql.postgresqlDbhost | quote }}
  - name: DB_PORT
    value: {{ .Values.postgresql.service.port | quote  }}
  - name: DB_DATABASE
    value: {{ .Values.postgresql.postgresqlDatabase | quote }}
  - name: DB_USER
    value: {{ .Values.postgresql.postgresqlUsername | quote }}
  - name: DB_PASSWORD
    value: {{ .Values.postgresql.postgresqlPassword | quote }}
  - name: JDBC_ParaMS
    value: "ssl=false"

并在values.yaml文件中提供以下提及的值

postgresql:
  # If `true`,the Postgresql dependency is enabled
  enabled: false
  # Postgresql DB Host to Connect
  postgresqlDbhost: blabladb.postgres.database.azure.com
  # Postgresql User to create
  postgresqlUsername: someuser@keyclockdb
  # Postgresql Password for the new user
  postgresqlPassword: !*blabla*!
  # Postgresql Database to create
  postgresqlDatabase: blabladb
  # Postgressqlport
  service:
    port: 5432

出于测试目的,我已禁用Azure中的强制SSL连接。 然后,从本地(本地PC)存储库部署了头盔图表后,得到以下提到的错误:-

Warning Snippet

Error Snippet

请告知导致此问题的原因。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...