k3s

package
v0.0.0-...-034a1d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name  string `yaml:"name"`
	Image string `yaml:"image"`
}

type K3S

type K3S struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.Deploy) *K3S

New provides initialization of k3s module

type Kuber

type Kuber struct {
	APIVersion string            `yaml:"apiVersion"`
	Kind       string            `yaml:"kind"`
	Metadata   map[string]string `yaml:"metadata"`
	Spec       Spec              `yaml:"spec"`
}

Kuber defines struct for generation k3s (kubernetes) file

type Labels

type Labels struct {
	App string `yaml:"app"`
}

type MatchLabels

type MatchLabels struct {
	App string `yaml:"app"`
}

type Metadata

type Metadata struct {
	Labels Labels `yaml:"labels"`
}

type Selector

type Selector struct {
	MatchLabels MatchLabels `yaml:"matchLabels"`
}

type Spec

type Spec struct {
	Replicas uint
	Selector Selector `yaml:"selector"`
	Template Template `yaml:"template"`
}

type SpecContainers

type SpecContainers struct {
	Containers []Container `yaml:"containers"`
}

type Template

type Template struct {
	Metadata Metadata       `yaml:"metadata"`
	Spec     SpecContainers `yaml:"spec"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL