@Bean
    @ConditionalOnProperty(value = "shenyu.k8s.scale.enabled", havingValue = "true")
    @ConditionalOnMissingBean(DeploymentProperties.class)
    public AppsV1Api apiClient(final DeploymentProperties deploymentProperties) {
        try {
            ApiClient client = Config.fromToken(
                    deploymentProperties.getApiServer(),
                    deploymentProperties.getToken(),
                    false
            );
            client.setSslCaCert(new FileInputStream(deploymentProperties.getCaCertPath()));
            return new AppsV1Api(client);

        } catch (IOException e) {
            logger.error("kubernetes apiClient create error", e);
        }
        return null;
    }
kubernetes apiClient.
@param deploymentProperties deploymentProperties
@return AppsV1Api
shenyu-admin/src/main/java/org/apache/shenyu/admin/config/KubernetesConfiguration.java