forked from zhp8341/flink-streaming-platform-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1.1.0-pv.yaml
41 lines (41 loc) · 829 Bytes
/
1.1.0-pv.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# 存储
apiVersion: v1
kind: PersistentVolume
metadata:
name: bigdata-sync-flink
namespace: bigdata-sync
spec:
capacity:
storage: 100Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: local-storage
local:
path: /k8slpv/bigdata-sync/flink
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- 192.168.90.11
---
# 存储声明
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flink
namespace: bigdata-sync
spec:
storageClassName: local-storage
volumeName: bigdata-sync-flink
volumeMode: Filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi