API Reference

Packages

run.evroclabs.net/v1alpha2

Package v1alpha2 contains the API Schema definitions for the evroc run v1alpha2 API group. This includes the generated DeepCopy methods, and ConditionSet to help manage the run resource conditions.

Resource Types

ContainerSpec

ContainerSpec defines the desired state of a single container. Most of these are inherited from corev1.Container (https://pkg.go.dev/k8s.io/api/core/v1#Container).

Appears in:

FieldDescriptionDefaultValidation
image stringImage is the Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images.
ports ContainerPort arrayPorts are the list of ports to expose from the container.
env EnvVar arrayEnv is the list of environment variables to set in the container.
envFromSecret EnvFromSource arrayList of Secrets to populate environment variables in the container.
The keys defined within a source must be a must adhere to the regex
[A-Za-z_][A-Za-z0-9_]*. All invalid keys will be reported as an event
when the container is starting. When a key exists in multiple Secrets,
the value associated with the last Secret will take precedence.
Values defined by an Env with a duplicate key will take precedence.
resources ResourceRequirementsCompute Resources required by this container.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/.
args string arrayArgs are the arguments to the entrypoint.
The container image's CMD is used if this is not provided.

LatencyAutoscalingSpec

LatencyAutoscalingSpec defines a desired autoscaling behaviour. This is done by defining the intended outcomes e.g. this is the desired request latency.

Appears in:

FieldDescriptionDefaultValidation
maxLatency integerMaxLatency is the request latency goal in milliseconds. The autoscaler
will try to keep the median request latency at or below this value.

Service

Service defines the schema for an evroc Service API object that will take a set of one or more images and serve them on evroc infrastructure at a defined latency goal.

FieldDescriptionDefaultValidation
apiVersion stringrun.evroclabs.net/v1alpha2
kind stringService
kind stringKind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
apiVersion stringAPIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ServiceSpec

ServiceSpec

ServiceSpec defines the desired state of Service.

Appears in:

FieldDescriptionDefaultValidation
containers ContainerSpec arrayContainers describes the list of application containers than you want to
run within a Service. Exactly one of these containers must have a
container port specified to expose.
autoscaling LatencyAutoscalingSpecAutoscaling defines the desired autoscaling behaviour for the service.
This is done by defining the intended outcomes of the service e.g. this
is the desired request latency needed.
imagePullSecrets LocalObjectReference arrayImagePullSecrets is a list of references to secrets to use for pulling
any of the images used by this ServiceSpec. If specified, these secrets
will be passed to individual puller implementations for them to use.
More info:
https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod