layout | parent | title |
---|---|---|
page |
Custom resources overview |
ArangoProfile |
Full CustomResourceDefinition reference ->
In order to enable Injection one of the two Labels needs to be present on Pod:
profiles.arangodb.com/apply
with any valueprofiles.arangodb.com/deployment
with value set to the existing Deployment name
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: ...
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"