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 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 // 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 NewKubeletConfigClient ¶
func NewKubeletConfigClient(kubeconfigPath string) (*KubeletConfigClient, error)
NewKubeletConfigClient creates new KubeletConfigClient using the specified kubeconfig