All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.shoothzj.sdk.kubectl.api.IKubectl Maven / Gradle / Ivy

There is a newer version: 3.0.31.RELEASE
Show newest version
package com.github.shoothzj.sdk.kubectl.api;

import com.github.shoothzj.javatool.module.HostPort;

import java.util.List;

/**
 * @author hezhangjian
 */
public interface IKubectl {

    /**
     * 获取指定服务名statefulSet的服务名列表
     * @param serviceName 服务名,如zookeeper
     * @return Host列表,如 zookeeper-0,zookeeper-1,zookeeper-2
     */
    List getStatefulHosts(String serviceName);

    /**
     * 获取指定服务名的集群内访问地址
     * @param serviceName service名称
     * @return
     */
    HostPort getServiceIpPort(String serviceName);


    /**
     *获取kubectl statefulset的总数
     * @param statefulName
     * @return
     */
    int getStatefulReplicaTotal(String statefulName);

    /**
     *
     * @param deployName
     * @return
     */
    int getDeployReplicaTotal(String deployName);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy