Documentation ¶
Index ¶
- func ExportClusterConfiguration(ctx context.Context, fullState *cluster.FullState, nodeName string, ...) error
- func ExportKubeProxyConfig(fullState *cluster.FullState, dataDir string) error
- func MigrateAddonsConfig(ctx context.Context, fullState *cluster.FullState, dataDir string) error
- func MigrateCNIConfig(ctx context.Context, fullState *cluster.FullState, dataDir string) error
- func RemoveOldAddons(ctx context.Context, dataDir string) error
- type AutoScalerConfig
- type CalicoConfig
- type CalicoInstallationSpec
- type CanalConfig
- type CoreDNSConfig
- type DefaultBackendConfig
- type IngressConfig
- type IngressControllerConfig
- type IngressHostPorts
- type IngressPorts
- type MetricsServerConfig
- type RBACConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportKubeProxyConfig ¶
func MigrateAddonsConfig ¶
MigrateAddonsConfig should read the addons configuration and copy it as a helm chart config to RKE2 and then save it to the manifest dir.
func MigrateCNIConfig ¶
MigrateCNIConfig should read the cni plugin specific configuration and copy it as a helm chart config to RKE2 and then save it to the manifest dir, this currently only works for canal installation because calico tigera operator doesnt contain a lot of customization
Types ¶
type AutoScalerConfig ¶
type AutoScalerConfig struct { PriorityClassName string `json:"priorityClassName,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` CoresPerReplica float64 `json:"coresPerReplica,omitempty"` NodesPerReplica float64 `json:"nodesPerReplica,omitempty"` Min int `json:"min,omitempty"` Max int `json:"max,omitempty"` PreventSinglePointFailure bool `json:"preventSinglePointFailure,omitempty"` Enabled bool `json:"enabled,omitempty"` }
type CalicoConfig ¶
type CalicoConfig struct {
Installation CalicoInstallationSpec `json:"installation,omitempty"`
}
type CalicoInstallationSpec ¶
type CalicoInstallationSpec struct { // we only copy the mtu config from rke1 so we only need a map of string to integer CalicoNetwork map[string]int `json:"calicoNetwork,omitempty"` FlexVolumePath string `json:"flexVolumePath,omitempty"` ControlPlaneNodeSelector map[string]string `json:"controlPlaneNodeSelector,omitempty"` }
type CanalConfig ¶
type CoreDNSConfig ¶
type CoreDNSConfig struct { PriorityClassName string `json:"priorityClassName,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` RollingUpdate *appsv1.RollingUpdateDeployment `json:"rollingUpdate,omitempty"` RBAC RBACConfig `json:"rbac,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` AutoScalerConfig AutoScalerConfig `json:"autoscaler,omitempty"` }
type DefaultBackendConfig ¶
type IngressConfig ¶
type IngressConfig struct { ControllerConfig IngressControllerConfig `json:"controller,omitempty"` DefaultBackend DefaultBackendConfig `json:"defaultBackend,omitempty"` }
type IngressControllerConfig ¶
type IngressControllerConfig struct { Config map[string]string `json:"config,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` ExtraArgs map[string]string `json:"extraArgs,omitempty"` ExtraEnvs []types.ExtraEnv `json:"extraEnvs,omitempty"` ExtraVolumes []types.ExtraVolume `json:"extraVolumes,omitempty"` ExtraVolumeMounts []types.ExtraVolumeMount `json:"extraVolumeMounts,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` UpdateStrategy *appsv1.DaemonSetUpdateStrategy `json:"updateStrategy,omitempty"` HostPorts IngressHostPorts `json:"hostPort,omitempty"` HostNetwork bool `json:"HostNetwork,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` PriorityClassName string `json:"priorityClassName,omitempty"` }
type IngressHostPorts ¶
type IngressHostPorts struct {
Ports IngressPorts `json:"ports,omitempty"`
}
type IngressPorts ¶
type MetricsServerConfig ¶
type MetricsServerConfig struct { PriorityClassName string `json:"priorityClassName,omitempty"` RBAC RBACConfig `json:"rbac,omitempty"` Args []string `json:"args,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Replicas int `json:"replicas,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` }
type RBACConfig ¶
type RBACConfig struct {
Create bool `json:"create,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.