Now I have a kubernetes cluster,and using DefaultKubernetesClient to create resources. How to init DefaultKubernetesClient with caCertFile

10/22/2019
Config config = new ConfigBuilder()
    .withMasterUrl(String.format("%s%s", HTTPS_PROTOCOL, k8sMaster))
    .withCaCertFile(Resources.getResource(k8sConfig.getCaCertFile()).getPath())
    .withClientCertFile(Resources.getResource(k8sConfig.getClientCertFile()).getPath())
    .withClientKeyFile(Resources.getResource(k8sConfig.getClientKeyFile()).getPath()).build();

Now I have all the cert files, but I don't know the ClientCertFile and ClientKeyFile here means which file on the kubernetes cluster. Can anyone help me?

-- Saitama
java
kubernetes

0 Answers