Skip to main content

Element CR Example

The following example shows an Element CR that is used to create a network in the cluster.

danger

The sample might not present all the available options. Always refer to the reference for a complete list of options.

apiVersion: athena.trirematics.io/v1
kind: Element
metadata:
labels:
app.kubernetes.io/name: element
app.kubernetes.io/instance: element-sample
app.kubernetes.io/part-of: athena
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: athena
name: element-sample
spec:
global-config: sample.element
manager-config: manager.element
deployment: sample-model/sample-deployment
backend: Deployment
template:
name: sample-workload
image: sample-image:v1
kind: sample-kind
roles:
- sampler
annotations:
sample.io/path: sample
config:
- app: sample-app
base: https://sample.com/config.yaml
format: yaml
path: result.yaml
plugin: passthrough
ports:
- name: sample-port
application: sample-app
port: 1234
transport: sctp
resources:
devices:
- name: cpu
units: 5m
security:
privileged: false
capabilities:
- NET_ADMIN