Skip to content

Latest commit

 

History

History
82 lines (64 loc) · 1.47 KB

arango-profile-resource.md

File metadata and controls

82 lines (64 loc) · 1.47 KB
layout parent title
page
Custom resources overview
ArangoProfile

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/apply with any value
  • profiles.arangodb.com/deployment with 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"