首页 > 解决方案 > 带有 git 和 vault 的 PCF:必须在 'vault.port' 中定义 Vault 端口,而不是使用 : 语法

问题描述

在我的云配置 PCF 服务中。Git 部分很好,Vault 导致问题:- { "composite": [{"git": { "password": "****", "label": "develop", "uri": "https:// /*****/config-server-files", "username": "*****" }, "vault":{ "port":"8200", "scheme": "https", "host ": ":*****" }}] }

标签: cloud-foundryspring-cloud-config

解决方案


I found the solution: The correct config for using multiple backends(Git + Vault) on config server is ** **

{
    "count": 1,
    "composite": [
        {
            "vault": {
                "host": "***",
                "port": 8200,
                "scheme": "https",
                "backend": "cf/***/secret",
                "defaultKey": "****",
                "profileSeparator": ",",
                "skipSslValidation": true
            }
        },
        {
            "git": {
                "password": "****",
                "uri": "****/config-server-files",
                "username": "****",
                "basedir": "/home/vcap/app/config-repo/composite-1-default",
                "ignoreLocalSshSettings": true,
                "label": "develop"
            }
        }
    ]
}

** **


推荐阅读