PHP code example of kuke / k8s-config-discovery

1. Go to this page and download the library: Download kuke/k8s-config-discovery library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kuke / k8s-config-discovery example snippets


//config_center新加配置

'k8s' => [
            'driver' => Kuke\K8sConfigDiscovery\K8sDriver::class,//驱动文件
            'interval' => 3,//扫描时间
            'base_path' => 'config/autoload/',//要热更新的文件目录
            'listener_config' => [
                'kuke_test.php',
                'kuke_test1.php',
            ]//要监听的文件
        ]
    ],