Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save egeneralov/13b764d4191fd2a5318fa83f4e039939 to your computer and use it in GitHub Desktop.

Select an option

Save egeneralov/13b764d4191fd2a5318fa83f4e039939 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-gitlab-managed-apps-prometheus-server
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 10Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: prometheus-prometheus-server
namespace: gitlab-managed-apps
hostPath:
path: /data/gitlab-managed-apps/prometheus-prometheus-server
type: ""
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node1
persistentVolumeReclaimPolicy: Retain
storageClassName: local-storage
volumeMode: Filesystem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment