MicroListener Specification
In the values.yaml
file, under the events
field it is possible to configure microlisteners.
To define custom microlisteners, a new element must be added to the microlisteners
array.
The YAML spec is the following:
# the name must be unique and should be prefixed by "ml-" (required)
- name: ml-example
image:
# the repository of the container image (required)
name: 100076361442.dkr.ecr.eu-south-1.amazonaws.com/kokos-ml-example
# the tag of the container image (required)
tag: 1.0.0
# microlistener ID (required)
id: "LOA37_X85"
# internal port where the microlistener is listening, defaults to 8080 (optional)
internalPort: 8080
# external port exposed by the service, defaults to 80 (optional)
externalPort: 80
ingress:
# enable the ingress resource to expose the microlistener to the outside world (optional, defaults to false)
enabled: false
# the hostname used to route traffic to the microlistener (optional)
hostname: ml-example.smeup.com
# the path (optional, defaults to ".id" if no hostname is specified)
path: /ml-example
# the ingress class name (optional, defaults to the cluster default)
className:
# the ingress annotations (optional)
annotations: {}
# extra ports exposed by the container (optional)
extraPorts: []
# - name: my-port
# internalPort: 9000
# externalPort: 9000
# # protocol is optional, defaults to "TCP"
# protocol: TCP
# custom deployment annotations (optional)
customDeploymentAnnotations: {}
# pod resource limits and requests (optional)
resources: {}
# custom volumes (optional)
extraVolumes: []
# - name: my-volume
# persistentVolumeClaim:
# claimName: pvc-smb-share0
# custom volume mounts (optional)
extraVolumeMounts: []
# - name: my-volume
# mountPath: /mnt/test-mount
# environment variables as key-value pairs (optional)
env:
EXAMPLE_ENV: my-value
EXAMPLE_ENV_2: my-value-2
# custom configuration files (optional)
extraConfigs: []
# - name: my-config
# filename: my-config.yaml
# # do not forget the trailing slash!
# mountPath: /home/kokos/my-custom-path/
# data: |
# exampleDatabaseName: postgresql