Documentation ¶
Overview ¶
Copyright 2021 k0s authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 k0s authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 k0s authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleKubeletBootstrapToken ¶ added in v0.13.0
func KernelSetup ¶
func KernelSetup()
KernelSetup sets the needed kernel tuning params. If setting the options fails, it only logs a warning but does not prevent the starting of worker
Types ¶
type CalicoInstaller ¶ added in v0.9.0
func (CalicoInstaller) Healthy ¶ added in v0.9.0
func (c CalicoInstaller) Healthy() error
func (CalicoInstaller) Init ¶ added in v0.9.0
func (c CalicoInstaller) Init() error
func (CalicoInstaller) Run ¶ added in v0.9.0
func (c CalicoInstaller) Run() error
func (CalicoInstaller) Stop ¶ added in v0.9.0
func (c CalicoInstaller) Stop() error
type ContainerD ¶
type ContainerD struct { LogLevel string K0sVars constant.CfgVars OCIBundlePath string // contains filtered or unexported fields }
ContainerD implement the component interface to manage containerd as k0s component
type Kubelet ¶
type Kubelet struct { CRISocket string EnableCloudProvider bool K0sVars constant.CfgVars KubeletConfigClient *KubeletConfigClient LogLevel string Profile string ClusterDNS string Labels []string ExtraArgs string // contains filtered or unexported fields }
Kubelet is the component implementation to manage kubelet
type KubeletConfigClient ¶
type KubeletConfigClient struct {
// contains filtered or unexported fields
}
KubeletConfigClient is the client used to fetch kubelet config from a common config map
func LoadKubeletConfigClient ¶ added in v0.13.0
func LoadKubeletConfigClient(k0svars constant.CfgVars) (*KubeletConfigClient, error)
func NewKubeletConfigClient ¶
func NewKubeletConfigClient(kubeconfigPath string) (*KubeletConfigClient, error)
NewKubeletConfigClient creates new KubeletConfigClient using the specified kubeconfig
type OCIBundleReconciler ¶ added in v0.12.0
type OCIBundleReconciler struct {
// contains filtered or unexported fields
}
OCIBundleReconciler tries to import OCI bundle into the running containerd instance
func NewOCIBundleReconciler ¶ added in v0.12.0
func NewOCIBundleReconciler(vars constant.CfgVars) *OCIBundleReconciler
NewOCIBundleReconciler builds new reconciler
func (*OCIBundleReconciler) Healthy ¶ added in v0.12.0
func (a *OCIBundleReconciler) Healthy() error
func (*OCIBundleReconciler) Init ¶ added in v0.12.0
func (a *OCIBundleReconciler) Init() error
func (*OCIBundleReconciler) Run ¶ added in v0.12.0
func (a *OCIBundleReconciler) Run() error
func (*OCIBundleReconciler) Stop ¶ added in v0.12.0
func (a *OCIBundleReconciler) Stop() error