Configurations
Configure the Bucket import
Intro
The import of each Bucket can be configured with some specific parameters using the .spec.config attribute.
apiVersion: assets.astronetes.io/v1alpha1
kind: Bucket
metadata:
name: my-bucket
spec:
...
config: {}
Limit assigned resources
For each Bucket imported, a new Pod is deployed inside the same Namespace. The limit and requests resources can be set using the .spec.config.resources field.
Example:
apiVersion: assets.astronetes.io/v1alpha1
kind: Bucket
metadata:
name: my-cluster
spec:
...
config:
resources:
requests:
cpu: 1
memory: 2Gi
limits:
cpu: 2
memory: 2Gi
Filter the watched resources
By default, the operator will watch all the files in the bucket. You can filter the list of path to be watched by configuring the .spec.config.paths field.
Example:
apiVersion: assets.astronetes.io/v1alpha1
kind: Bucket
metadata:
name: my-bucket
spec:
...
config:
paths:
- example1/
Concurrency
The concurrency parameter can be used to improve the peformance of the operator on listening the changes that happens in the Bucket.
Example:
apiVersion: assets.astronetes.io/v1alpha1
kind: Bucket
metadata:
name: my-cluster
spec:
...
config:
concurrency: 200