@Target(value={CONSTRUCTOR,TYPE}) @Retention(value=RUNTIME) public @interface KnativeApplication
| Modifier and Type | Fields and Description |
|---|---|
static AutoscalingMetric |
DEFAULT_AUTOSCALING_METRIC |
static int |
DEFAULT_CONTAINER_CONCURRENCY |
| Modifier and Type | Optional Element and Description |
|---|---|
Annotation[] |
annotations
Custom annotations to add to all resources.
|
String[] |
arguments
The arguments
|
boolean |
autoDeployEnabled
Flag to trigger the registration of the deploy hook.
|
AwsElasticBlockStoreVolume[] |
awsElasticBlockStoreVolumes
Aws elastic block store volumes to add to all containers
|
AzureDiskVolume[] |
azureDiskVolumes
Azure disk volumes to add
|
AzureFileVolume[] |
azureFileVolumes
Azure file volumes to add
|
String[] |
command
The commands
|
ConfigMapVolume[] |
configMapVolumes
ConfigMap volumues to add to all containers.
|
Env[] |
envVars
Environment variables to add to all containers.
|
boolean |
expose
Controls whether the application should be exposed (default: true).
|
GitRepoVolume[] |
gitRepoVolumes
Git repo volumues to add to all containers.
|
GlobalAutoScaling |
globalAutoScaling
Global autoscaling configuration.
|
String |
host
The host under which the application is going to be exposed.
|
HttpTransportVersion |
httpTransportVersion
Http trasport version to use.
|
ImagePullPolicy |
imagePullPolicy
Image pull policy.
|
String[] |
imagePullSecrets
The image pull secret
|
Label[] |
labels
Custom labels to add to all resources.
|
ResourceRequirements |
limitResources
The resource limit for the application container.
|
Probe |
livenessProbe
The liveness probe.
|
int |
maxScale
This value controls the maximum number of replicas each revision should have.
|
int |
minScale
This value controls the minimum number of replicas each revision should have.
|
Mount[] |
mounts
Mounts to add to all containers.
|
String |
name
The name of the application.
|
String |
partOf
The name of the collection of componnet this component belongs to.
|
Port[] |
ports
The application ports.
|
PersistentVolumeClaimVolume[] |
pvcVolumes
PersistentVolumeClaim volumues to add to all containers.
|
Probe |
readinessProbe
The readiness probe.
|
ResourceRequirements |
requestResources
The resources that the application container requires.
|
AutoScaling |
revisionAutoScaling
Revision autoscaling configuration.
|
String |
revisionName |
boolean |
scaleToZeroEnabled
The scale-to-zero values control whether Knative allows revisions to scale down to zero, or stops at “1”.
|
SecretVolume[] |
secretVolumes
Secret volumues to add to all containers.
|
String |
serviceAccount
The service account.
|
ServiceType |
serviceType
The type of service that will be generated for the application.
|
Container[] |
sidecars
The sidecars.
|
String |
templateName
The template name to specify.
|
Traffic[] |
traffic
Traffic configuration for the application.
|
String |
version
The version of the application.
|
String |
workingDir
Working directory.
|
public static final AutoscalingMetric DEFAULT_AUTOSCALING_METRIC
public abstract String partOf
public abstract String name
public abstract String version
public abstract Label[] labels
public abstract String revisionName
public abstract Annotation[] annotations
public abstract Env[] envVars
public abstract String workingDir
public abstract String[] command
public abstract String[] arguments
public abstract String serviceAccount
public abstract String host
public abstract Port[] ports
public abstract HttpTransportVersion httpTransportVersion
public abstract ServiceType serviceType
public abstract PersistentVolumeClaimVolume[] pvcVolumes
public abstract SecretVolume[] secretVolumes
public abstract ConfigMapVolume[] configMapVolumes
public abstract GitRepoVolume[] gitRepoVolumes
public abstract AwsElasticBlockStoreVolume[] awsElasticBlockStoreVolumes
public abstract AzureDiskVolume[] azureDiskVolumes
public abstract AzureFileVolume[] azureFileVolumes
public abstract Mount[] mounts
public abstract ImagePullPolicy imagePullPolicy
public abstract String[] imagePullSecrets
public abstract Probe livenessProbe
public abstract Probe readinessProbe
public abstract ResourceRequirements requestResources
public abstract ResourceRequirements limitResources
public abstract Container[] sidecars
public abstract boolean expose
public abstract boolean autoDeployEnabled
public abstract int minScale
public abstract int maxScale
public abstract boolean scaleToZeroEnabled
public abstract AutoScaling revisionAutoScaling
public abstract GlobalAutoScaling globalAutoScaling
public abstract String templateName
public abstract Traffic[] traffic
Copyright © 2018–2020 Red Hat. All rights reserved.