apiVersion: apps/v1 kind: Deployment metadata: name: logstash labels: app: logstash spec: selector: matchLabels: app: logstash strategy: type: Recreate template: metadata: labels: app: logstash spec: subdomain: logstash nodeSelector: kubernetes.io/hostname: gunter-nb containers: - name: logstash image: dcm4che/logstash-dcm4chee:8.4.2-15 ports: - containerPort: 12201 protocol: UDP - containerPort: 8514 protocol: UDP - containerPort: 8514 protocol: TCP - containerPort: 6514 protocol: TCP volumeMounts: - mountPath: /etc/localtime readOnly: true name: localtime - mountPath: /etc/timezone readOnly: true name: timezone - name: filter-hashtree mountPath: /usr/share/logstash/data/filter-hashtree volumes: - name: localtime hostPath: path: /etc/localtime type: File - name: timezone hostPath: path: /etc/timezone type: File - name: filter-hashtree hostPath: path: /var/local/microk8s/logstash/filter-hashtree type: File