package com.bocloud.ims.entity.resource.kubernetes;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.GenericEntity;
import com.bocloud.entity.meta.PKStrategy;

import lombok.Data;

/**
 * 
 * @ClassName: KubeContainer.java
 * @Description: k8s容器
 *
 * @author: ymh
 * @date: 2021年4月21日 下午2:08:55
 */
@Table("kube_container")
@Data
public class KubeContainer extends GenericEntity {

	@PK(value = PKStrategy.AUTO)
	private Long id; // ID
	@Column("vendor_id")
	private Long vendorId; // 云供应商Id
	@Column("ns_id")
	private Long nsId; // 命名空间ID
	@Column("service_id")
	private Long serviceId; // 服务ID
	@Column("node_id")
	private Long nodeId; // 节点ID
	@Column("pod_id")
	private Long podId; // 节点ID
	@Column("labels")
	private String labels;
	@Column("ns_name")
	private String namespace;
	@Column("service_name")
	private String serviceName;
	@Column("node_name")
	private String nodeName;
	@Column("pod_name")
	private String podName;
	@Column("yaml_text")
	private String yamlText;
	@Column("deployment_name")
	private String deploymentName;
	@Column("tenant_id")
	private Long tenantId;
	@Column("project_id")
	private Long projectId;// 项目ID
	@Column("uid")
	private String uid;// uuid

	@Column("app_id")
	private Long appId;
	@Column("app_name")
	private String appName;

	@Column("image_name")
	private String imageName;
	@Column("image_uuid")
	private String imageUuid;
	@Column("ready")
	private Boolean ready;
	@Column("started")
	private Boolean started;
	@Column("restart_count")
	private Integer restartCount;
	@Column("container_id")
	private String containerId;

}
