update mongo port

main
ycz008 2023-07-11 14:51:58 +08:00
parent 43669aa5d9
commit 8debb2d065
2 changed files with 67 additions and 1 deletions

View File

@ -1,3 +1,69 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: elastic-dev-0
spec:
storageClassName: local-elastic
capacity:
storage: 50Gi
accessModes:
- ReadWriteOnce
local:
path: /data/elastic-dev/es_data
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- bfs-k8snode-10-2-0-12.hetzner.base.beaconfireinc.com
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: elastic-dev-1
spec:
storageClassName: local-elastic
capacity:
storage: 50Gi
accessModes:
- ReadWriteOnce
local:
path: /data/elastic-dev/es_data
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- bfs-k8snode-10-2-0-13.hetzner.base.beaconfireinc.com
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: elastic-dev-2
spec:
storageClassName: local-elastic
capacity:
storage: 50Gi
accessModes:
- ReadWriteOnce
local:
path: /data/elastic-dev/es_data
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- bfs-k8snode-10-2-0-14.hetzner.base.beaconfireinc.com
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet

View File

@ -79,6 +79,6 @@ spec:
protocol: TCP protocol: TCP
port: 27017 port: 27017
targetPort: 27017 targetPort: 27017
nodePort: 30018 nodePort: 30028
type: NodePort type: NodePort