OKR/trainer-upgrade/mongo/storage.yaml

32 lines
650 B
YAML
Raw Normal View History

2023-06-01 19:28:28 +08:00
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-mongo
provisioner: kubernetes.io/no-provisioner
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-mongo-0
labels:
type: local
spec:
storageClassName: local-mongo
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
local:
path: /data/mongo
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- bfs-k8snode-10-2-1-7.hetzner.base.beaconfireinc.com