Search in sources :

Example 1 with FlinkKubeClientFactory

use of org.apache.flink.kubernetes.kubeclient.FlinkKubeClientFactory in project flink by apache.

the class KubernetesResource method before.

@Override
public void before() {
    checkEnv();
    configuration = new Configuration();
    configuration.set(KubernetesConfigOptions.KUBE_CONFIG_FILE, kubeConfigFile);
    configuration.setString(KubernetesConfigOptions.CLUSTER_ID, CLUSTER_ID);
    final FlinkKubeClientFactory kubeClientFactory = new FlinkKubeClientFactory();
    flinkKubeClient = kubeClientFactory.fromConfiguration(configuration, "testing");
}
Also used : Configuration(org.apache.flink.configuration.Configuration) FlinkKubeClientFactory(org.apache.flink.kubernetes.kubeclient.FlinkKubeClientFactory)

Aggregations

Configuration (org.apache.flink.configuration.Configuration)1 FlinkKubeClientFactory (org.apache.flink.kubernetes.kubeclient.FlinkKubeClientFactory)1