Documentation
¶
Index ¶
- type ConfigMapEnvSource
- type ConfigMapVolumeSource
- type Container
- type ContainerPort
- type DeploymentManifest
- type DeploymentSpec
- type DeploymentStrategy
- type EmptyDirVolumeSource
- type EnvFromSource
- type EnvVar
- type EnvVarSource
- type ExecAction
- type ExtraLargeStruct
- type HTTPGetAction
- type HTTPHeader
- type HostAlias
- type KeyToPath
- type LabelSelector
- type LargeStruct
- type Lifecycle
- type LifecycleHandler
- type LocalObjectReference
- type NFSVolumeSource
- type ObjectFieldSelector
- type ObjectMeta
- type PersistentVolumeClaimVolumeSource
- type PodSecurityContext
- type PodSpec
- type PodTemplateSpec
- type Probe
- type ResourceRequirements
- type RollingUpdateDeployment
- type SecretEnvSource
- type SecretKeySelector
- type SecurityContext
- type SmallStruct
- type Volume
- type VolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapEnvSource ¶
type ConfigMapVolumeSource ¶
type Container ¶
type Container struct {
Name string `yaml:"name"`
Image string `yaml:"image"`
ImagePullPolicy string `yaml:"imagePullPolicy,omitempty"`
Command []string `yaml:"command,omitempty"`
Ports []ContainerPort `yaml:"ports,omitempty"`
Env []EnvVar `yaml:"env,omitempty"`
EnvFrom []EnvFromSource `yaml:"envFrom,omitempty"`
Resources ResourceRequirements `yaml:"resources,omitempty"`
LivenessProbe Probe `yaml:"livenessProbe,omitempty"`
ReadinessProbe Probe `yaml:"readinessProbe,omitempty"`
StartupProbe Probe `yaml:"startupProbe,omitempty"`
Lifecycle Lifecycle `yaml:"lifecycle,omitempty"`
VolumeMounts []VolumeMount `yaml:"volumeMounts,omitempty"`
SecurityContext SecurityContext `yaml:"securityContext,omitempty"`
}
type ContainerPort ¶
type ContainerPort struct {
ContainerPort int `yaml:"containerPort,omitempty"`
}
type DeploymentManifest ¶
type DeploymentManifest struct {
APIVersion string `yaml:"apiVersion,omitempty,omitempty"`
Kind string `yaml:"kind,omitempty,omitempty"`
Metadata ObjectMeta `yaml:"metadata,omitempty,omitempty"`
Spec DeploymentSpec `yaml:"spec,omitempty,omitempty"`
}
type DeploymentSpec ¶
type DeploymentSpec struct {
Replicas int `yaml:"replicas,omitempty"`
MinReadySeconds int `yaml:"minReadySeconds,omitempty"`
ProgressDeadlineSeconds int `yaml:"progressDeadlineSeconds,omitempty"`
RevisionHistoryLimit int `yaml:"revisionHistoryLimit,omitempty"`
Strategy DeploymentStrategy `yaml:"strategy,omitempty"`
Selector LabelSelector `yaml:"selector,omitempty"`
Template PodTemplateSpec `yaml:"template,omitempty"`
}
type DeploymentStrategy ¶
type DeploymentStrategy struct {
RollingUpdate RollingUpdateDeployment `yaml:"rollingUpdate,omitempty"`
Type string `yaml:"type,omitempty"`
}
type EmptyDirVolumeSource ¶
type EnvFromSource ¶
type EnvFromSource struct {
ConfigMapRef ConfigMapEnvSource `yaml:"configMapRef,omitempty"`
SecretRef SecretEnvSource `yaml:"secretRef,omitempty"`
}
type EnvVar ¶
type EnvVar struct {
Name string `yaml:"name"`
Value string `yaml:"value,omitempty"`
ValueFrom EnvVarSource `yaml:"valueFrom,omitempty"`
}
type EnvVarSource ¶
type EnvVarSource struct {
SecretKeyRef SecretKeySelector `yaml:"secretKeyRef,omitempty"`
FieldRef ObjectFieldSelector `yaml:"fieldRef,omitempty"`
}
type ExecAction ¶
type ExecAction struct {
Command []string `yaml:"command"`
}
type ExtraLargeStruct ¶
type ExtraLargeStruct struct {
Data []LargeStruct
}
type HTTPGetAction ¶
type HTTPGetAction struct {
Host string `yaml:"host,omitempty"`
HTTPHeaders []HTTPHeader `yaml:"httpHeaders,omitempty"`
Path string `yaml:"path"`
Port string `yaml:"port,omitempty"`
Scheme string `yaml:"scheme,omitempty"`
}
type HTTPHeader ¶
type LabelSelector ¶
type LargeStruct ¶
type LargeStruct = DeploymentManifest
type Lifecycle ¶
type Lifecycle struct {
PostStart LifecycleHandler `yaml:"postStart,omitempty"`
PreStop LifecycleHandler `yaml:"preStop,omitempty"`
}
type LifecycleHandler ¶
type LifecycleHandler struct {
Exec ExecAction `yaml:"exec,omitempty"`
HTTPGet HTTPGetAction `yaml:"httpGet,omitempty"`
}
type LocalObjectReference ¶
type LocalObjectReference struct {
Name string `yaml:"name"`
}
type NFSVolumeSource ¶
type ObjectFieldSelector ¶
type ObjectMeta ¶
type PodSecurityContext ¶
type PodSpec ¶
type PodSpec struct {
RestartPolicy string `yaml:"restartPolicy,omitempty"`
SecurityContext PodSecurityContext `yaml:"securityContext,omitempty"`
HostAliases []HostAlias `yaml:"hostAliases,omitempty"`
NodeSelector map[string]string `yaml:"nodeSelector,omitempty"`
ImagePullSecrets []LocalObjectReference `yaml:"imagePullSecrets,omitempty"`
Containers []Container `yaml:"containers,omitempty"`
InitContainers []Container `yaml:"initContainers,omitempty"`
Volumes []Volume `yaml:"volumes,omitempty"`
}
type PodTemplateSpec ¶
type PodTemplateSpec struct {
Metadata ObjectMeta `yaml:"metadata,omitempty"`
Spec PodSpec `yaml:"spec,omitempty"`
}
type Probe ¶
type Probe struct {
Exec ExecAction `yaml:"exec,omitempty"`
FailureThreshold int `yaml:"failureThreshold,omitempty"`
HTTPGet HTTPGetAction `yaml:"httpGet,omitempty"`
InitialDelaySeconds int `yaml:"initialDelaySeconds,omitempty"`
PeriodSeconds int `yaml:"periodSeconds,omitempty"`
}
type ResourceRequirements ¶
type RollingUpdateDeployment ¶
type RollingUpdateDeployment struct {
MaxSurge int `yaml:"maxSurge,omitempty"`
}
type SecretEnvSource ¶
type SecretKeySelector ¶
type SecurityContext ¶
type SmallStruct ¶
type Volume ¶
type Volume struct {
Name string `yaml:"name"`
EmptyDir EmptyDirVolumeSource `yaml:"emptyDir,omitempty"`
PersistentVolumeClaim PersistentVolumeClaimVolumeSource `yaml:"persistentVolumeClaim,omitempty"`
NFS NFSVolumeSource `yaml:"nfs,omitempty"`
ConfigMap ConfigMapVolumeSource `yaml:"configMap,omitempty"`
}
type VolumeMount ¶
Click to show internal directories.
Click to hide internal directories.