Skip to content
Snippets Groups Projects
Commit f7ee688c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI component:

- Persist Grafana settings between restarts
parent 5611740a
No related branches found
No related tags found
1 merge request!310Resolve "Grafana settings lost when host ethernet interface goes down and back up"
...@@ -12,6 +12,17 @@ ...@@ -12,6 +12,17 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: grafana-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
...@@ -99,6 +110,13 @@ spec: ...@@ -99,6 +110,13 @@ spec:
limits: limits:
cpu: 500m cpu: 500m
memory: 1024Mi memory: 1024Mi
volumeMounts:
- mountPath: /var/lib/grafana
name: grafana-pv
volumes:
- name: grafana-pv
persistentVolumeClaim:
claimName: grafana-pvc
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment