diff --git a/deploy/kubernetes/heartbeat-kubernetes.yaml b/deploy/kubernetes/heartbeat-kubernetes.yaml index 407002af8e6..9a86ec6544d 100644 --- a/deploy/kubernetes/heartbeat-kubernetes.yaml +++ b/deploy/kubernetes/heartbeat-kubernetes.yaml @@ -123,11 +123,18 @@ spec: mountPath: /etc/heartbeat.yml readOnly: true subPath: heartbeat.yml + - name: data + mountPath: /usr/share/heartbeat/data volumes: - name: config configMap: defaultMode: 0600 name: heartbeat-deployment-config + - name: data + hostPath: + path: /var/lib/heartbeat-data + type: DirectoryOrCreate + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding diff --git a/deploy/kubernetes/heartbeat/heartbeat-deployment.yaml b/deploy/kubernetes/heartbeat/heartbeat-deployment.yaml index 964fbbe420a..3f7a471b457 100644 --- a/deploy/kubernetes/heartbeat/heartbeat-deployment.yaml +++ b/deploy/kubernetes/heartbeat/heartbeat-deployment.yaml @@ -55,8 +55,15 @@ spec: mountPath: /etc/heartbeat.yml readOnly: true subPath: heartbeat.yml + - name: data + mountPath: /usr/share/heartbeat/data volumes: - name: config configMap: defaultMode: 0600 name: heartbeat-deployment-config + - name: data + hostPath: + path: /var/lib/heartbeat-data + type: DirectoryOrCreate +