k8s

package
v1.0.12-0...-16f252f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(req K8sRequest) (string, error)

Types

type K8sRequest

type K8sRequest struct {
	Env                        string
	ServiceName                string
	ServiceType                ServiceType
	Namespace                  string
	Schedule                   string
	Replicas                   int
	RevisionHistoryLimit       int
	Port                       int
	LimitCpu                   int
	LimitMem                   int
	RequestCpu                 int
	RequestMem                 int
	SuccessfulJobsHistoryLimit int
	HpaMinReplicas             int
	HpaMaxReplicas             int
}

type ServiceType

type ServiceType string
const (
	ServiceTypeApi  ServiceType = "api"
	ServiceTypeRpc  ServiceType = "rpc"
	ServiceTypeJob  ServiceType = "job"
	ServiceTypeRmq  ServiceType = "rmq"
	ServiceTypeSync ServiceType = "sync"
)

Jump to

Keyboard shortcuts

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