package io.renren.config;


import io.renren.common.utils.KubernetesUtils;
import io.renren.common.utils.MinIoUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Kubernetes 配置
 * @author Zhang
 * @version 3.0.0
 * @since JDK1.8

 */
@Configuration
@Slf4j
public class KubernetesConfig {

    @Value("${Akubenetes.kubeconfig-path}")
    private String kubeConfigpath;
    @Value("${Akubenetes.basepath}")
    private String basepath;

    /**
     * 创建Kubernetes apiclient
     * @return KubernetesUtils
     */
    @Bean
    public KubernetesUtils createKubeClient(){
        return new KubernetesUtils(kubeConfigpath,basepath);
    }


}
