modify resource

This commit is contained in:
KMLabz-TMIT Kubernetes 2020-08-02 15:25:28 +00:00
parent a9ad3b1449
commit 5b25ff6e2e
9 changed files with 37 additions and 20 deletions

View File

@ -26,8 +26,8 @@ spec:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.1
path: /srv/kubedata/birbnetes/grafana
server: 192.168.122.20
path: /srv/birbdata/grafana
---
apiVersion: v1
kind: PersistentVolumeClaim

View File

@ -1,4 +1,19 @@
apiVersion: v1
apiVersion: v1
kind: PersistentVolume
metadata:
name: birbnetes-nfs-storage-minio
namespace: birbnetes
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.122.20
path: /srv/birbdata/storage-minio
---
apiVersion: v1
kind: Service
metadata:
name: minio-service
@ -34,7 +49,7 @@ metadata:
data:
MINIO_ACCESS_KEY: "birbnetes-minio-access"
MINIO_SECRET_KEY: "birbnetes-supersecret"
--
---
apiVersion: apps/v1
kind: Deployment
metadata:

View File

@ -10,8 +10,8 @@ spec:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.1
path: /srv/kubedata/birbnetes/minio_model
server: 192.168.122.20
path: /srv/birbdata/model-minio
---
apiVersion: v1
kind: Service
@ -34,7 +34,7 @@ metadata:
namespace: birbnetes
spec:
accessModes:
- ReadWriteOnce
- ReadWriteMany
resources:
requests:
storage: 10Gi
@ -53,7 +53,7 @@ data:
apiVersion: apps/v1
kind: Deployment
metadata:
name: moedl-minio
name: model-minio
namespace: birbnetes
spec:
selector:

View File

@ -10,8 +10,8 @@ spec:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.1
path: /srv/kubedata/birbnetes/model_postgres
server: 192.168.122.20
path: /srv/birbdata/model-postgres
---
kind: PersistentVolumeClaim
apiVersion: v1
@ -84,4 +84,4 @@ spec:
targetPort: 5432
protocol: TCP
selector:
app: model-postgres
app: model-postgres

View File

@ -58,8 +58,8 @@ spec:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.1
path: /srv/kubedata/birbnetes/outflux
server: 192.168.122.20
path: /srv/birbdata/output-influx
---
kind: PersistentVolumeClaim
apiVersion: v1

View File

@ -10,8 +10,8 @@ spec:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.1
path: /srv/kubedata/birbnetes/output_postgres
server: 192.168.122.20
path: /srv/birbdata/output-postgres
---
kind: PersistentVolumeClaim
apiVersion: v1

View File

@ -10,8 +10,8 @@ spec:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.1
path: /srv/kubedata/birbnetes/input_postgres
server: 192.168.122.20
path: /srv/birbdata/input-postgres
---
kind: PersistentVolumeClaim
apiVersion: v1

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install --set persistence.size=10Gi birb-rabbitmq bitnami/rabbitmq --namespace birbnetes
helm install --set persistence.size=10Gi birb-rabbitmq bitnami/rabbitmq --namespace birbnetes
echo "Password : $(kubectl get secret --namespace birbnetes birb-rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)"

View File

@ -10,5 +10,5 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.1
path: /srv/kubedata/birbnetes/rabbitmq
server: 192.168.122.20
path: /srv/birbdata/rabbitmq