Skip to content

Commit

Permalink
chore: changed NFS configure
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Aug 28, 2024
1 parent e5e3e9d commit 81fb3a8
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 49 deletions.
2 changes: 1 addition & 1 deletion manifests/mysql-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ spec:
volumes:
- name: dbvol
persistentVolumeClaim:
claimName: db-pvc
claimName: db
35 changes: 35 additions & 0 deletions manifests/mysql-inf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: db
labels:
app: mysql
annotations:
"volume.beta.kubernetes.io/storage-class": "slow"
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
volumeName: wiki-db
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: wiki-db
annotations:
volume.beta.kubernetes.io/storage-class: "slow"
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
claimRef:
namespace: mediawiki
name: db
nfs:
server: 172.16.110.199
path: /nfs/infra/wiki/db
4 changes: 2 additions & 2 deletions manifests/wiki-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ spec:
volumes:
- name: imgvol
persistentVolumeClaim:
claimName: img-pvc
claimName: image
- name: delimgvol
persistentVolumeClaim:
claimName: delimg-pvc
claimName: delimage
- name: mediawiki-config
configMap:
name: mediawiki-config
56 changes: 10 additions & 46 deletions manifests/wikinfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: wiki-sql
name: wiki-imgage
annotations:
volume.beta.kubernetes.io/storage-class: "slow"
spec:
Expand All @@ -13,15 +13,15 @@ spec:
persistentVolumeReclaimPolicy: Retain
claimRef:
namespace: mediawiki
name: db-pvc
name: imgage
nfs:
server: 172.16.110.199
path: /nfs/wiki/db
path: /nfs/infra/wiki/image
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: wiki-img
name: wiki-delimage
annotations:
volume.beta.kubernetes.io/storage-class: "slow"
spec:
Expand All @@ -32,50 +32,15 @@ spec:
persistentVolumeReclaimPolicy: Retain
claimRef:
namespace: mediawiki
name: img-pvc
name: delimage
nfs:
server: 172.16.110.199
path: /nfs/wiki/image
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: wiki-delimg
annotations:
volume.beta.kubernetes.io/storage-class: "slow"
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
claimRef:
namespace: mediawiki
name: delimg-pvc
nfs:
server: 172.16.110.199
path: /nfs/wiki/del-image
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: db-pvc
labels:
app: mysql
annotations:
"volume.beta.kubernetes.io/storage-class": "slow"
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
volumeName: "wiki-sql"
path: /nfs/infra/wiki/del-image
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: img-pvc
name: image
labels:
app: mediawiki
annotations:
Expand All @@ -86,13 +51,12 @@ spec:
resources:
requests:
storage: 10Gi
volumeName: "wiki-img"

volumeName: wiki-image
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: delimg-pvc
name: delimage
labels:
app: mediawiki
annotations:
Expand All @@ -103,4 +67,4 @@ spec:
resources:
requests:
storage: 10Gi
volumeName: "wiki-delimg"
volumeName: wiki-delimage

0 comments on commit 81fb3a8

Please sign in to comment.