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 - ReadWriteMany
persistentVolumeReclaimPolicy: Recycle persistentVolumeReclaimPolicy: Recycle
nfs: nfs:
server: 192.168.100.1 server: 192.168.122.20
path: /srv/kubedata/birbnetes/grafana path: /srv/birbdata/grafana
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim 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 kind: Service
metadata: metadata:
name: minio-service name: minio-service
@ -34,7 +49,7 @@ metadata:
data: data:
MINIO_ACCESS_KEY: "birbnetes-minio-access" MINIO_ACCESS_KEY: "birbnetes-minio-access"
MINIO_SECRET_KEY: "birbnetes-supersecret" MINIO_SECRET_KEY: "birbnetes-supersecret"
-- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
helm repo add bitnami https://charts.bitnami.com/bitnami 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 - ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle persistentVolumeReclaimPolicy: Recycle
nfs: nfs:
server: 192.168.100.1 server: 192.168.122.20
path: /srv/kubedata/birbnetes/rabbitmq path: /srv/birbdata/rabbitmq