microservice

package
v0.0.0-...-841f565 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMicroService

func NewMicroService(opts Options) *objects.Manifest

NewMicroService returns a pointer to a complete Kubernetes manifest for a deployment

Types

type Options

type Options struct {
	mutations.VaultConfig

	Replicas                        int32                   `json:"replicas"`
	Port                            int32                   `json:"port,omitempty"`
	ServicePort                     int32                   `json:"servicePort,omitempty"`
	Name                            string                  `json:"name"`
	ServiceAccountName              string                  `json:"serviceAccountName"`
	Image                           string                  `json:"image"`
	ServiceType                     string                  `json:"serviceType,omitempty"`
	Command                         []string                `json:"command,omitempty"`
	Env                             map[string]string       `json:"env,omitempty"`
	EnableVault                     bool                    `json:"enableVault"`
	EnableHostNetworking            bool                    `json:"hostNetwork"`
	EnableGoogleCloudServiceAccount bool                    `json:"enableGoogleCloudServiceAccount"`
	IncludeKubeletHostIp            bool                    `json:"includeKubeletHostIp"`
	ReadinessProbe                  *objects.ProbeOptions   `json:"readinessProbe,omitempty"`
	LivenessProbe                   *objects.ProbeOptions   `json:"livenessProbe,omitempty"`
	Ingress                         *objects.IngressOptions `json:"ingress,omitempty"`
}

Options represents all the input we accept in our Jsonnet microservice implementation

Jump to

Keyboard shortcuts

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