Documentation ¶
Index ¶
- Constants
- Variables
- type AuthWebhookConfig
- type BackupConfig
- type BaseService
- type CICDImages
- type DNSConfig
- type ETCDService
- type HealthCheck
- type IngressConfig
- type KubeAPIService
- type KubeControllerService
- type KubeletService
- type KubeproxyService
- type KubernetesServicesOptions
- type PortCheck
- type PrivateRegistry
- type Process
- type SchedulerService
- type ServiceMeshImages
- type ZKEConfig
- type ZKEConfigAuthn
- type ZKEConfigAuthz
- type ZKEConfigCore
- type ZKEConfigImages
- type ZKEConfigMonitor
- type ZKEConfigNetwork
- type ZKEConfigNode
- type ZKEConfigOption
- type ZKELBConfig
- type ZKENodePlan
Constants ¶
const (
DefaultK8s = "v1.17.2"
)
Variables ¶
var ( K8sVersionsCurrent = []string{ "v1.17.2", } // K8sVersionServiceOptions - service options per k8s version K8sVersionServiceOptions = map[string]KubernetesServicesOptions{ "v1.13": { KubeAPI: map[string]string{ "tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", "enable-admission-plugins": "NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota", }, Kubelet: map[string]string{ "tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", }, }, } AllK8sVersions = map[string]ZKEConfigImages{} )
Functions ¶
This section is empty.
Types ¶
type AuthWebhookConfig ¶
type AuthWebhookConfig struct { // ConfigFile is a multiline string that represent a custom webhook config file ConfigFile string `yaml:"config_file" json:"configFile"` // CacheTimeout controls how long to cache authentication decisions CacheTimeout string `yaml:"cache_timeout" json:"cacheTimeout"` }
func (*AuthWebhookConfig) DeepCopy ¶
func (in *AuthWebhookConfig) DeepCopy() *AuthWebhookConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthWebhookConfig.
func (*AuthWebhookConfig) DeepCopyInto ¶
func (in *AuthWebhookConfig) DeepCopyInto(out *AuthWebhookConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupConfig ¶
type BackupConfig struct { IntervalHours int `yaml:"interval_hours" json:"intervalHours"` // Number of backups to keep Retention int `yaml:"retention" json:"retention"` }
func (*BackupConfig) DeepCopy ¶
func (in *BackupConfig) DeepCopy() *BackupConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfig.
func (*BackupConfig) DeepCopyInto ¶
func (in *BackupConfig) DeepCopyInto(out *BackupConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BaseService ¶
type BaseService struct { // Docker image of the service Image string `yaml:"image" json:"image"` // Extra arguments that are added to the services ExtraArgs map[string]string `yaml:"extra_args" json:"extraArgs"` // Extra binds added to the nodes ExtraBinds []string `yaml:"extra_binds" json:"extraBinds"` // this is to provide extra env variable to the docker container running kubernetes service ExtraEnv []string `yaml:"extra_env" json:"extraEnv"` }
func (*BaseService) DeepCopy ¶
func (in *BaseService) DeepCopy() *BaseService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseService.
func (*BaseService) DeepCopyInto ¶
func (in *BaseService) DeepCopyInto(out *BaseService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CICDImages ¶
type CICDImages struct { Controller string `yaml:"controller" json:"controller"` KubeConfigWriter string `yaml:"kube_config_writer" json:"kubeConfigWriter"` CredsIniter string `yaml:"creds_initer" json:"credsIniter"` GitIniter string `yaml:"git_initer" json:"gitIniter"` Entrypointer string `yaml:"entrypointer" json:"entrypointer"` ImageDigestExporter string `yaml:"image_digest_exporter" json:"imageDigestExporter"` PullRequestIniter string `yaml:"pull_request_initer" json:"pullRequestInit"` GCSFetcher string `yaml:"gcs_fetcher" json:"gcsFetcher"` Webhook string `yaml:"webhook" json:"webhook"` Dashboard string `yaml:"dashboard" json:"dashboard"` }
type DNSConfig ¶
type DNSConfig struct { Provider string `yaml:"provider" json:"provider"` UpstreamNameservers []string `yaml:"upstreamnameservers" json:"upstreamnameservers"` ReverseCIDRs []string `yaml:"reversecidrs" json:"reversecidrs"` NodeSelector map[string]string `yaml:"node_selector" json:"nodeSelector"` }
func (*DNSConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSConfig.
func (*DNSConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ETCDService ¶
type ETCDService struct { BaseService `yaml:",inline" json:",inline"` // List of etcd urls ExternalURLs []string `yaml:"external_urls" json:"externalUrls"` CACert string `yaml:"ca_cert" json:"caCert"` Cert string `yaml:"cert" json:"cert"` Key string `yaml:"key" json:"key"` // External etcd prefix Path string `yaml:"path" json:"path"` // Etcd Recurring snapshot Service Snapshot *bool `yaml:"snapshot" json:"snapshot"` // Etcd snapshot Retention period Retention string `yaml:"retention" json:"retention"` // Etcd snapshot Creation period Creation string `yaml:"creation" json:"creation"` // Backup backend for etcd snapshots, used by zke only BackupConfig *BackupConfig `yaml:"backup_config" json:"backupConfig"` }
func (*ETCDService) DeepCopy ¶
func (in *ETCDService) DeepCopy() *ETCDService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ETCDService.
func (*ETCDService) DeepCopyInto ¶
func (in *ETCDService) DeepCopyInto(out *ETCDService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthCheck ¶
type HealthCheck struct {
URL string `json:"url"`
}
func (*HealthCheck) DeepCopy ¶
func (in *HealthCheck) DeepCopy() *HealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheck.
func (*HealthCheck) DeepCopyInto ¶
func (in *HealthCheck) DeepCopyInto(out *HealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressConfig ¶
type IngressConfig struct { Provider string `yaml:"provider" json:"provider"` Options map[string]string `yaml:"options" json:"options"` NodeSelector map[string]string `yaml:"node_selector" json:"nodeSelector"` ExtraArgs map[string]string `yaml:"extra_args" json:"extraArgs"` }
func (*IngressConfig) DeepCopy ¶
func (in *IngressConfig) DeepCopy() *IngressConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressConfig.
func (*IngressConfig) DeepCopyInto ¶
func (in *IngressConfig) DeepCopyInto(out *IngressConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeAPIService ¶
type KubeAPIService struct { BaseService `yaml:",inline" json:",inline"` ServiceClusterIPRange string `yaml:"service_cluster_ip_range" json:"serviceClusterIpRange"` // Port range for services defined with NodePort type ServiceNodePortRange string `yaml:"service_node_port_range" json:"serviceNodePortRange""` // Enabled/Disable PodSecurityPolicy PodSecurityPolicy bool `yaml:"pod_security_policy" json:"podSecurityPolicy"` // Enable/Disable AlwaysPullImages admissions plugin AlwaysPullImages bool `yaml:"always_pull_images" json:"always_pull_images"` }
func (*KubeAPIService) DeepCopy ¶
func (in *KubeAPIService) DeepCopy() *KubeAPIService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeAPIService.
func (*KubeAPIService) DeepCopyInto ¶
func (in *KubeAPIService) DeepCopyInto(out *KubeAPIService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeControllerService ¶
type KubeControllerService struct { BaseService `yaml:",inline" json:",inline"` ClusterCIDR string `yaml:"cluster_cidr" json:"clusterCidr"` ServiceClusterIPRange string `yaml:"service_cluster_ip_range" json:"serviceClusterIpRange"` }
func (*KubeControllerService) DeepCopy ¶
func (in *KubeControllerService) DeepCopy() *KubeControllerService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerService.
func (*KubeControllerService) DeepCopyInto ¶
func (in *KubeControllerService) DeepCopyInto(out *KubeControllerService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeletService ¶
type KubeletService struct { BaseService `yaml:",inline" json:",inline"` ClusterDomain string `yaml:"cluster_domain" json:"clusterDomain"` InfraContainerImage string `yaml:"infra_container_image" json:"infraContainerImage"` ClusterDNSServer string `yaml:"cluster_dns_server" json:"clusterDnsServer"` FailSwapOn bool `yaml:"fail_swap_on" json:"failSwapOn"` }
func (*KubeletService) DeepCopy ¶
func (in *KubeletService) DeepCopy() *KubeletService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletService.
func (*KubeletService) DeepCopyInto ¶
func (in *KubeletService) DeepCopyInto(out *KubeletService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeproxyService ¶
type KubeproxyService struct {
BaseService `yaml:",inline" json:",inline"`
}
func (*KubeproxyService) DeepCopy ¶
func (in *KubeproxyService) DeepCopy() *KubeproxyService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeproxyService.
func (*KubeproxyService) DeepCopyInto ¶
func (in *KubeproxyService) DeepCopyInto(out *KubeproxyService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesServicesOptions ¶
type KubernetesServicesOptions struct { KubeAPI map[string]string `json:"kubeapi"` Kubelet map[string]string `json:"kubelet"` Kubeproxy map[string]string `json:"kubeproxy"` KubeController map[string]string `json:"kubeController"` Scheduler map[string]string `json:"scheduler"` }
func (*KubernetesServicesOptions) DeepCopy ¶
func (in *KubernetesServicesOptions) DeepCopy() *KubernetesServicesOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesServicesOptions.
func (*KubernetesServicesOptions) DeepCopyInto ¶
func (in *KubernetesServicesOptions) DeepCopyInto(out *KubernetesServicesOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortCheck ¶
type PortCheck struct { Address string `json:"address"` Port int `json:"port"` Protocol string `json:"protocol"` }
func (*PortCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortCheck.
func (*PortCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateRegistry ¶
type PrivateRegistry struct { URL string `yaml:"url" json:"url"` User string `yaml:"user" json:"user"` Password string `yaml:"password" json:"password"` CAcert string `yaml:"ca_cert" json:"caCert"` }
func (*PrivateRegistry) DeepCopy ¶
func (in *PrivateRegistry) DeepCopy() *PrivateRegistry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateRegistry.
func (*PrivateRegistry) DeepCopyInto ¶
func (in *PrivateRegistry) DeepCopyInto(out *PrivateRegistry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Process ¶
type Process struct { Name string `json:"name"` Command []string `json:"command"` Args []string `json:"args"` Env []string `json:"env"` Image string `json:"image"` //AuthConfig for image private registry ImageRegistryAuthConfig string `json:"imageRegistryAuthConfig"` // Process docker image VolumesFrom VolumesFrom []string `json:"volumesFrom"` // Process docker container bind mounts Binds []string `json:"binds"` NetworkMode string `json:"networkMode"` RestartPolicy string `json:"restartPolicy"` PidMode string `json:"pidMode"` Privileged bool `json:"privileged"` HealthCheck HealthCheck `json:"healthCheck"` // Process docker container Labels Labels map[string]string `json:"labels"` // Process docker publish container's port to host Publish []string `json:"publish"` }
func (*Process) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Process.
func (*Process) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulerService ¶
type SchedulerService struct {
BaseService `yaml:",inline" json:",inline"`
}
func (*SchedulerService) DeepCopy ¶
func (in *SchedulerService) DeepCopy() *SchedulerService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerService.
func (*SchedulerService) DeepCopyInto ¶
func (in *SchedulerService) DeepCopyInto(out *SchedulerService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceMeshImages ¶
type ServiceMeshImages struct { Controller string `yaml:"controller" json:"controller"` Proxy string `yaml:"proxy" json:"proxy"` ProxyInit string `yaml:"proxy_init" json:"proxyInit"` Web string `yaml:"web" json:"web"` Prometheus string `yaml:"prometheus" json:"prometheus"` Grafana string `yaml:"grafana" json:"grafana"` }
type ZKEConfig ¶
type ZKEConfig struct { ClusterName string `yaml:"cluster_name" json:"clusterName"` Option ZKEConfigOption `yaml:"option" json:"option"` Nodes []ZKEConfigNode `yaml:"nodes" json:"nodes"` // Kubernetes components Core ZKEConfigCore `yaml:"core,omitempty" json:"core,omitempty"` Network ZKEConfigNetwork `yaml:"network,omitempty" json:"network,omitempty"` Image ZKEConfigImages `yaml:"image,omitempty" json:"image,omitempty"` PrivateRegistries []PrivateRegistry `yaml:"private_registries,omitempty" json:"privateRegistries,omitempty"` Authentication ZKEConfigAuthn `yaml:"authentication,omitempty" json:"authentication,omitempty"` Authorization ZKEConfigAuthz `yaml:"authorization,omitempty" json:"authorization,omitempty"` Monitor ZKEConfigMonitor `yaml:"monitor,omitempty" json:"monitor,omitempty"` SingleCloudAddress string `yaml:"single_cloud_address,omitempty" json:"singleCloudAddress"` LoadBalance ZKELBConfig `yaml:"loadbalance,omitempty" json:"loadbalance,omitempty"` DisableLinkerd bool `yaml:"disable_linkerd,omitempty" json:"disableLinkerd,omitempty"` ConfigVersion string `yaml:"config_version" json:"configVersion"` }
func (*ZKEConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZcloudKubernetesEngineConfig.
func (*ZKEConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigAuthn ¶
type ZKEConfigAuthn struct { Strategy string `yaml:"strategy" json:"strategy"` // List of additional hostnames and IPs to include in the api server PKI cert SANs []string `yaml:"sans" json:"sans"` // Webhook configuration options Webhook *AuthWebhookConfig `yaml:"webhook" json:"webhook"` }
func (*ZKEConfigAuthn) DeepCopy ¶
func (in *ZKEConfigAuthn) DeepCopy() *ZKEConfigAuthn
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthnConfig.
func (*ZKEConfigAuthn) DeepCopyInto ¶
func (in *ZKEConfigAuthn) DeepCopyInto(out *ZKEConfigAuthn)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigAuthz ¶
type ZKEConfigAuthz struct { Mode string `yaml:"mode" json:"mode"` Options map[string]string `yaml:"options" json:"options"` }
func (*ZKEConfigAuthz) DeepCopy ¶
func (in *ZKEConfigAuthz) DeepCopy() *ZKEConfigAuthz
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthzConfig.
func (*ZKEConfigAuthz) DeepCopyInto ¶
func (in *ZKEConfigAuthz) DeepCopyInto(out *ZKEConfigAuthz)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigCore ¶
type ZKEConfigCore struct { Etcd ETCDService `yaml:"etcd" json:"etcd"` KubeAPI KubeAPIService `yaml:"kube-api" json:"kubeApi"` KubeController KubeControllerService `yaml:"kube-controller" json:"kubeController"` Scheduler SchedulerService `yaml:"scheduler" json:"scheduler"` Kubelet KubeletService `yaml:"kubelet" json:"kubelet"` Kubeproxy KubeproxyService `yaml:"kubeproxy" json:"kubeproxy"` }
func (*ZKEConfigCore) DeepCopy ¶
func (in *ZKEConfigCore) DeepCopy() *ZKEConfigCore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZKEConfigServices.
func (*ZKEConfigCore) DeepCopyInto ¶
func (in *ZKEConfigCore) DeepCopyInto(out *ZKEConfigCore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigImages ¶
type ZKEConfigImages struct { Etcd string `yaml:"etcd" json:"etcd"` // ZKE image Alpine string `yaml:"alpine" json:"alpine"` NginxProxy string `yaml:"nginx_proxy" json:"nginxProxy"` CertDownloader string `yaml:"cert_downloader" json:"certDownloader"` ZKERemover string `yaml:"zke_remover" json:zkeRemover` KubernetesServicesSidecar string `yaml:"kubernetes_services_sidecar" json:"kubernetesServicesSidecar"` // CoreDNS image CoreDNS string `yaml:"coredns" json:"coredns"` CoreDNSAutoscaler string `yaml:"coredns_autoscaler" json:"corednsAutoscaler"` // Kubernetes image Kubernetes string `yaml:"kubernetes" json:"kubernetes"` // Flannel image Flannel string `yaml:"flannel" json:"flannel"` FlannelCNI string `yaml:"flannel_cni" json:"flannelCni"` FlannelSidecar string `yaml:"flannel_sidecar" json:"flannelSidecar"` // Calico image CalicoNode string `yaml:"calico_node" json:"calicoNode"` CalicoCNI string `yaml:"calico_cni" json:"calicoCni"` CalicoCtl string `yaml:"calico_ctl" json:"calicoCtl"` // Pod infra container image PodInfraContainer string `yaml:"pod_infra_container" json:"podInfraContainer"` // Ingress Controller image Ingress string `yaml:"ingress" json:"ingress"` IngressBackend string `yaml:"ingress_backend" json:"ingressBackend"` MetricsServer string `yaml:"metrics_server" json:"metricsServer"` // Zcloud image ClusterAgent string `yaml:"cluster_agent" json:"clusterAgent"` NodeAgent string `yaml:"node_agent" json:"nodeAgent"` StorageOperator string `yaml:"storage_operator" json:"storageOperator"` ZcloudShell string `yaml:"zcloud_shell" json:"zcloudShell"` ZcloudProxy string `yaml:"zcloud_proxy" json:"zcloudProxy"` ZcloudLBController string `yaml:"zcloud_lbcontroller" json:"zcloudLBController"` //ServiceMesh image ServiceMesh ServiceMeshImages `yaml:"service_mesh" json:"serviceMesh"` CICD CICDImages `yaml:"cicd" json:"cicd"` //ApplicationOperator image ApplicationOperator string `yaml:"application_operator" json:"applicationOperator"` }
func (*ZKEConfigImages) DeepCopy ¶
func (in *ZKEConfigImages) DeepCopy() *ZKEConfigImages
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZKESystemImages.
func (*ZKEConfigImages) DeepCopyInto ¶
func (in *ZKEConfigImages) DeepCopyInto(out *ZKEConfigImages)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigMonitor ¶
type ZKEConfigMonitor struct { MetricsProvider string `yaml:"metrics_provider" json:"metricsProvider"` MetricsOptions map[string]string `yaml:"metrics_options" json:"metricsOptions"` }
func (*ZKEConfigMonitor) DeepCopy ¶
func (in *ZKEConfigMonitor) DeepCopy() *ZKEConfigMonitor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConfig.
func (*ZKEConfigMonitor) DeepCopyInto ¶
func (in *ZKEConfigMonitor) DeepCopyInto(out *ZKEConfigMonitor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigNetwork ¶
type ZKEConfigNetwork struct { Plugin string `yaml:"plugin" json:"plugin"` Iface string `yaml:"iface" json:"iface"` DNS DNSConfig `yaml:"dns" json:"dns"` Ingress IngressConfig `yaml:"ingress" json:"ingress"` }
func (*ZKEConfigNetwork) DeepCopy ¶
func (in *ZKEConfigNetwork) DeepCopy() *ZKEConfigNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkConfig.
func (*ZKEConfigNetwork) DeepCopyInto ¶
func (in *ZKEConfigNetwork) DeepCopyInto(out *ZKEConfigNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigNode ¶
type ZKEConfigNode struct { NodeName string `yaml:"name" json:"name"` Address string `yaml:"address" json:"address"` // Optional - Internal address that will be used for components communication InternalAddress string `yaml:"internal_address,omitempty" json:"internalAddress,omitempty"` // Node role in kubernetes cluster (controlplane, worker, etcd, storage or edge) Role []string `yaml:"roles" json:"roles"` // SSH config User string `yaml:"user,omitempty" json:"sshUser,omitempty"` Port string `yaml:"port,omitempty" json:"sshPort,omitempty"` SSHKey string `yaml:"ssh_key,omitempty" json:"sshKey,omitempty"` SSHKeyPath string `yaml:"ssh_key_path,omitempty" json:"sshKeyPath,omitempty"` DockerSocket string `yaml:"docker_socket,omitempty" json:"dockerSocket,omitempty"` Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"` }
func (*ZKEConfigNode) DeepCopy ¶
func (in *ZKEConfigNode) DeepCopy() *ZKEConfigNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZKEConfigNode.
func (*ZKEConfigNode) DeepCopyInto ¶
func (in *ZKEConfigNode) DeepCopyInto(out *ZKEConfigNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZKEConfigOption ¶
type ZKEConfigOption struct { SSHUser string `yaml:"ssh_user" json:"sshUser"` SSHKey string `yaml:"ssh_key" json:"sshKey"` SSHKeyPath string `yaml:"ssh_key_path" json:"sshKeyPath"` SSHPort string `yaml:"ssh_port" json:"sshPort"` DockerSocket string `yaml:"docker_socket,omitempty" json:"dockerSocket,omitempty"` KubernetesVersion string `yaml:"kubetnetes_version,omitempty" json:"kubernetesVersion,omitempty"` IgnoreDockerVersion bool `yaml:"ignore_docker_version" json:"ignoreDockerVersion"` ClusterCidr string `yaml:"cluster_cidr" json:"clusterCidr"` ServiceCidr string `yaml:"service_cidr" json:"serviceCidr"` ClusterDomain string `yaml:"cluster_domain" json:"clusterDomain"` ClusterDNSServiceIP string `yaml:"cluster_dns_serviceip,omitempty" json:"clusterDNSServiceIP,omitempty"` ClusterUpstreamDNS []string `yaml:"up_stream_name_servers" json:"upStreamNameServers"` DisablePortCheck bool `yaml:"disable_port_check" json:"disablePortCheck"` PrefixPath string `yaml:"prefix_path,omitempty" json:"prefixPath,omitempty"` }
type ZKELBConfig ¶
type ZKELBConfig struct { Enable bool `yaml:"enable" json:"enable"` MasterServer string `yaml:"master_server" json:"masterServer"` BackupServer string `yaml:"backup_server,omitempty" json:"backupServer,omitempty"` User string `yaml:"user" json:"user"` Password string `yaml:"password" json:"password"` }
type ZKENodePlan ¶
type ZKENodePlan struct { Address string `json:"address,omitempty"` // map of named processes that should run on the node Processes map[string]Process `json:"processes,omitempty"` PortChecks []PortCheck `json:"portChecks,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
func (*ZKENodePlan) DeepCopy ¶
func (in *ZKENodePlan) DeepCopy() *ZKENodePlan
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZKEConfigNodePlan.
func (*ZKENodePlan) DeepCopyInto ¶
func (in *ZKENodePlan) DeepCopyInto(out *ZKENodePlan)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.