ArangoProfile Custom Resource
Full CustomResourceDefinition reference ->
Integration
Enablement
In order to enable Injection one of the two Labels needs to be present on Pod:
profiles.arangodb.com/applywith any valueprofiles.arangodb.com/deploymentwith value set to the existing Deployment name
Injection
Selector
Using Selector .spec.selectors.label you can select which profiles are going to be applied on the Pod.
To not match any pod:
apiVersion: scheduler.arangodb.com/v1beta1
kind: ArangoProfile
metadata:
name: example
spec:
selectors: {}
template: ...
To match all pods:
apiVersion: scheduler.arangodb.com/v1beta1
kind: ArangoProfile
metadata:
name: example
spec:
selectors:
label:
matchLabels: {}
template: ...
To match specific pods (with label key=value):
apiVersion: scheduler.arangodb.com/v1beta1
kind: ArangoProfile
metadata:
name: example
spec:
selectors:
label:
matchLabels:
key: value
template: ...
Selection
Profiles can be injected using name (not only selectors).
In order to inject specific profiles to the pod use label (split by ,):
metadata:
annotations:
profiles.arangodb.com/profiles: "gpu"
or
metadata:
annotations:
profiles.arangodb.com/profiles: "gpu,internal"