operate k8s-promtail
Installation
k8s-promtail can be installed as a component via the CES component operator.
To do this, a corresponding custom resource (CR) must be created for the component.
apiVersion: k8s.cloudogu.com/v1
kind: Component
metadata:
name: k8s-promtail
labels:
app: ces
spec:
name: k8s-promtail
namespace: k8s
version: 2.9.1-1The new yaml file can then be created in the Kubernetes cluster:
kubectl apply -f k8s-promtail.yaml --namespace ecosystemThe component operator now creates the k8s-promtail component in the ecosystem namespace.
Upgrade
To upgrade, the desired version must be specified in the custom resource. To do this, the CR yaml file created is edited and the desired version is entered. Then apply the edited yaml file to the cluster again:
kubectl apply -f k8s-promtail.yaml --namespace ecosystemConfiguration
The component can be overwritten via the spec.valuesYamlOverwrite field. The configuration options correspond to those of
Grafana Promtail.
The configuration for the "Grafana Promtail" helm chart must be stored in values.yaml under the key promtail.
Beispiel:
apiVersion: k8s.cloudogu.com/v1
kind: Component
metadata:
name: k8s-promtail
labels:
app: ces
spec:
name: k8s-promtail
namespace: k8s
version: 2.9.1-1
valuesYamlOverwrite: |
promtail:
image:
pullPolicy: AlwaysLast updated on 12/6/2023