kubernetes

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExposeType

type ExposeType int
const (
	ExposeNodePort ExposeType = iota
	ExposeIngress
)

type ExposedMonopod

type ExposedMonopod struct {

	// URL to reach the exposed monopod to.
	// Content depends on the ExposeType argument.
	URL pulumi.StringOutput
	// contains filtered or unexported fields
}

func NewExposedMonopod

func NewExposedMonopod(ctx *pulumi.Context, args *ExposedMonopodArgs, opts ...pulumi.ResourceOption) (*ExposedMonopod, error)

NewExposedMonopod builds the Kubernetes resources for an exposed monopod. It fits the best cases of web or pwn challenges where only 1 pod is required.

type ExposedMonopodArgs

type ExposedMonopodArgs struct {
	Identity pulumi.StringInput
	Label    pulumi.StringInput
	Hostname pulumi.StringInput

	Image pulumi.StringInput
	Port  pulumi.IntInput
	// Envs is a list of additional environment variables to
	// set on the pods. Key is the varenv name, value is its
	// value.
	// Can be used to provision a per-instance flag.
	Envs pulumi.StringMapInput
	// Files is a list of additional files to inject in the pod
	// filesystem on the pods. Key is the file absolute path,
	// value is its content.
	// Can be used to provision a per-instance flag.
	//
	// WARNING: provisionning a file in a directory makes adjacent
	// files unavailable.
	// For more info, refer to https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#populate-a-volume-with-data-stored-in-a-configmap
	Files    pulumi.StringMapInput
	FromCIDR pulumi.StringPtrInput

	ExposeType ExposeType

	// IngressAnnotations is a set of additional annotations to
	// put on the ingress, if the `ExposeType` is set to
	// `ExposeIngress`.
	IngressAnnotations pulumi.StringMapInput
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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