Skip to main content

Composition Model CR Example

The following example shows a Composition Model 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: CompositionModel
metadata:
labels:
app.kubernetes.io/name: compositionmodel
app.kubernetes.io/instance: compositionmodel-sample
app.kubernetes.io/part-of: athena
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: athena
name: compositionmodel-sample
models:
sample-model:
- 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