Added scripts for adding and removing static PVs using nfs-csi
Altered values-override to use nfs-csi for static PVs
This commit is contained in:
4
create-pv.sh
Executable file
4
create-pv.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
kubectl apply -f pv-apim-audit.yaml
|
||||||
|
kubectl apply -f pv-apim-events.yaml
|
||||||
|
kubectl apply -f pv-apim-opentraffic.yaml
|
||||||
|
kubectl apply -f pv-apim-payloads.yaml
|
||||||
4
delete-pv.sh
Executable file
4
delete-pv.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
kubectl delete -f pv-apim-audit.yaml
|
||||||
|
kubectl delete -f pv-apim-events.yaml
|
||||||
|
kubectl delete -f pv-apim-opentraffic.yaml
|
||||||
|
kubectl delete -f pv-apim-payloads.yaml
|
||||||
13
pv-apim-audit.yaml
Normal file
13
pv-apim-audit.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
kind: PersistentVolume
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: apim-audit
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
nfs:
|
||||||
|
server: 192.168.0.105
|
||||||
|
path: /nfs/NFS/ocp/apim-audit
|
||||||
|
storageClassName: nfs-csi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
13
pv-apim-events.yaml
Normal file
13
pv-apim-events.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
kind: PersistentVolume
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: apim-events
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
nfs:
|
||||||
|
server: 192.168.0.105
|
||||||
|
path: /nfs/NFS/ocp/apim-events
|
||||||
|
storageClassName: nfs-csi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
13
pv-apim-opentraffic.yaml
Normal file
13
pv-apim-opentraffic.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
kind: PersistentVolume
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: apim-opentraffic
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 8Gi
|
||||||
|
nfs:
|
||||||
|
server: 192.168.0.105
|
||||||
|
path: /nfs/NFS/ocp/apim-opentraffic
|
||||||
|
storageClassName: nfs-csi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
13
pv-apim-payloads.yaml
Normal file
13
pv-apim-payloads.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
kind: PersistentVolume
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: apim-payloads
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 16Gi
|
||||||
|
nfs:
|
||||||
|
server: 192.168.0.105
|
||||||
|
path: /nfs/NFS/ocp/apim-payloads
|
||||||
|
storageClassName: nfs-csi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
@@ -19,10 +19,12 @@ global:
|
|||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
capacity: 1Gi
|
capacity: 1Gi
|
||||||
volumeName: apim-events
|
volumeName: apim-events
|
||||||
|
storageClassName: nfs-csi
|
||||||
- name: payloads
|
- name: payloads
|
||||||
enabled: true
|
enabled: true
|
||||||
usedBy:
|
usedBy:
|
||||||
- traffic
|
- traffic
|
||||||
|
storageClassName: nfs-csi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
capacity: 16Gi
|
capacity: 16Gi
|
||||||
@@ -33,6 +35,7 @@ global:
|
|||||||
- anm
|
- anm
|
||||||
- apimgr
|
- apimgr
|
||||||
- traffic
|
- traffic
|
||||||
|
storageClassName: nfs-csi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
capacity: 1Gi
|
capacity: 1Gi
|
||||||
@@ -71,13 +74,14 @@ global:
|
|||||||
- traffic
|
- traffic
|
||||||
- anm
|
- anm
|
||||||
- apimgr
|
- apimgr
|
||||||
|
storageClassName: nfs-csi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
capacity: 8Gi
|
capacity: 8Gi
|
||||||
volumeName: apim-opentraffic
|
volumeName: apim-opentraffic
|
||||||
initContainers:
|
initContainers:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: false
|
runAsNonRoot: true
|
||||||
database:
|
database:
|
||||||
host: mysql.metrics.svc.cluster.local
|
host: mysql.metrics.svc.cluster.local
|
||||||
metrics:
|
metrics:
|
||||||
@@ -110,7 +114,7 @@ anm:
|
|||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: false
|
runAsNonRoot: true
|
||||||
route:
|
route:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
annotations:
|
||||||
@@ -181,7 +185,7 @@ apimgr:
|
|||||||
memory: "0.5Gi"
|
memory: "0.5Gi"
|
||||||
cpu: 0.5
|
cpu: 0.5
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: false
|
runAsNonRoot: true
|
||||||
route:
|
route:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
annotations:
|
||||||
@@ -294,7 +298,7 @@ apitraffic:
|
|||||||
targetCPUUtilizationPercentage: 80
|
targetCPUUtilizationPercentage: 80
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: false
|
runAsNonRoot: true
|
||||||
oauth:
|
oauth:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -573,7 +577,7 @@ aga:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
#NOTE readOnlyRootFilesystem should be left to false
|
#NOTE readOnlyRootFilesystem should be left to false
|
||||||
# readOnlyRootFilesystem: false
|
# readOnlyRootFilesystem: false
|
||||||
runAsNonRoot: false
|
runAsNonRoot: true
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user