DocsEdge Stack
Using ambassador Module defaults
1 min • readUsing
Using ambassador
Module
defaults
The defaults element
If present, the ambassador Module
can define a set of defaults that will automatically be applied to certain resources:
yaml
apiVersion: getambassador.io/v3alpha1kind: Modulemetadata:name: ambassadorspec:config:defaults:class1: # This is a class. Different resource types will look in different classes.key1: value1 # Within a class, you can set different keys.key2: value2...class2:...top_key1: value1 # If a key isn't found in a resource's class, the system will look in thetop_key2: value2 # toplevel defaults dictionary for it.
Mapping
Currently, only the Mapping
resource uses the defaults
mechanism. Mapping
looks first for defaultable resources in the httpmapping
class, including: