An ForwardingRule is an example API type.
Type
CRD
Group
alb.ionoscloud.crossplane.io
Version
v1alpha1
apiVersion: alb.ionoscloud.crossplane.io/v1alpha1
kind: ForwardingRule
ForwardingRuleSpec defines the desired state of an ApplicationLoadBalancer.
ForwardingRuleParameters are the observable fields of an ApplicationLoadBalancerForwardingRule. Required fields in order to create an ApplicationLoadBalancerForwardingRule: DatacenterConfig (via ID or via reference), ApplicationLoadBalancerConfig (via ID or via reference), Name, Protocol, ListenerIPConfig (via ID or via reference), ListenerPort.
An ApplicationLoadBalancer, to which the user has access, to provision the Forwarding Rule in.
ApplicationLoadBalancerIDRef references to a Datacenter to retrieve its ID.
Policies for referencing.
ApplicationLoadBalancerIDSelector selects reference to a Datacenter to retrieve its DatacenterID.
Policies for selection.
A Datacenter, to which the user has access, to provision the ApplicationLoadBalancer in.
DatacenterIDRef references to a Datacenter to retrieve its ID.
Policies for referencing.
DatacenterIDSelector selects reference to a Datacenter to retrieve its DatacenterID.
Policies for selection.
An array of items in the collection. The original order of rules is preserved during processing, except for Forward-type rules are processed after the rules with other action defined. The relative order of Forward-type rules is also preserved during the processing.
The ID of the target group; mandatory and only valid for FORWARD actions. The ID can be set directly or via reference.
TargetGroupIDRef references to a TargetGroup to retrieve its ID.
Policies for referencing.
TargetGroupIDSelector selects reference to a TargetGroup to retrieve its TargetGroupID.
Policies for selection.
Listening (inbound) IP. IP must be assigned to the listener NIC of the Application Load Balancer.
Use IpBlockConfig to reference existing IPBlock, and to mention the index for the IP. Index starts from 0 and it must be provided.
IPBlockIDRef references to a IPBlock to retrieve its ID.
Policies for referencing.
IPBlockIDSelector selects reference to a IPBlock to retrieve its IPBlockID.
Policies for selection.
Array of items in the collection.
THIS IS A BETA FIELD. It is on by default but can be opted out through a Crossplane feature flag. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
ForwardingRuleStatus represents the observed state of an ApplicationLoadBalancer.
ForwardingRuleObservation are the observable fields of an ApplicationLoadBalancerForwardingRule.
Conditions of the resource.
example
apiVersion: alb.ionoscloud.crossplane.io/v1alpha1
kind: ForwardingRule
metadata:
name: example
spec:
forProvider:
applicationLoadBalancerConfig:
applicationLoadBalancerIdRef:
name: example
datacenterConfig:
datacenterIdRef:
name: example
httpRules:
- conditions:
- condition: ENDS_WITH
key: goto
negate: true
type: QUERY
value: onos
name: exampleForwardHTTPRuleALB
targetGroupConfig:
targetGroupIdRef:
name: example
type: FORWARD
- conditions:
- condition: ENDS_WITH
key: goto
negate: false
type: QUERY
value: onos
dropQuery: true
location: https://ionos.com
name: exampleRedirectHTTPRuleALB
statusCode: 301
type: REDIRECT
- conditions:
- condition: CONTAINS
negate: false
type: PATH
value: example
contentType: text/html
name: exampleStaticHTTPRuleALB
responseMessage: IONOS CLOUD
statusCode: 503
type: STATIC
listenerIpConfig:
ipBlockConfig:
index: 0
ipBlockIdRef:
name: example
listenerPort: 80
name: exampleForwardingRuleALB
protocol: HTTP
providerConfigRef:
name: example
examplefwd
apiVersion: alb.ionoscloud.crossplane.io/v1alpha1
kind: ForwardingRule
metadata:
name: examplefwd
spec:
forProvider:
applicationLoadBalancerConfig:
applicationLoadBalancerIdRef:
name: example
datacenterConfig:
datacenterIdRef:
name: example
httpRules:
- conditions:
- condition: ENDS_WITH
key: goto
negate: true
type: QUERY
value: onos
name: exampleForwardHTTPRuleALB
targetGroupConfig:
targetGroupIdRef:
name: example
type: FORWARD
- conditions:
- condition: ENDS_WITH
key: goto
negate: true
type: QUERY
value: onos
dropQuery: true
location: https://ionos.com
name: exampleRedirectHTTPRuleALB
statusCode: 301
type: REDIRECT
- conditions:
- condition: CONTAINS
negate: false
type: PATH
value: example
contentType: text/html
name: exampleStaticHTTPRuleALB
responseMessage: IONOS CLOUD
statusCode: 503
type: STATIC
listenerIpConfig:
ipBlockConfig:
index: 0
ipBlockIdRef:
name: example
listenerPort: 80
name: exampleFwdRule
protocol: HTTP
providerConfigRef:
name: example