2020-04-13 01:00:14 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
|
|
|
name: birbnetes-nfs-model-minio
|
|
|
|
namespace: birbnetes
|
|
|
|
spec:
|
|
|
|
capacity:
|
|
|
|
storage: 10Gi
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
persistentVolumeReclaimPolicy: Recycle
|
|
|
|
nfs:
|
2020-08-28 17:34:48 +02:00
|
|
|
server: 192.168.100.3
|
|
|
|
path: /srv/kubedata/birbnetes/model_minio
|
2020-04-13 01:00:14 +02:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
2020-04-13 00:57:18 +02:00
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: model-minio
|
|
|
|
namespace: birbnetes
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 9000
|
|
|
|
targetPort: 9000
|
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
app: model-minio
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: birbnetes-nfs-model-minio
|
|
|
|
namespace: birbnetes
|
|
|
|
spec:
|
|
|
|
accessModes:
|
2020-08-02 17:25:28 +02:00
|
|
|
- ReadWriteMany
|
2020-04-13 00:57:18 +02:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: model-minio
|
|
|
|
labels:
|
|
|
|
app: model-minio
|
|
|
|
namespace: birbnetes
|
|
|
|
data:
|
|
|
|
MINIO_ACCESS_KEY: "birbnetes-model-minio-access"
|
|
|
|
MINIO_SECRET_KEY: "birbnetes-model-supersecret"
|
2020-04-13 01:06:05 +02:00
|
|
|
---
|
2020-04-13 00:57:18 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2020-08-02 17:25:28 +02:00
|
|
|
name: model-minio
|
2020-04-13 00:57:18 +02:00
|
|
|
namespace: birbnetes
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: model-minio
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: model-minio
|
|
|
|
spec:
|
|
|
|
volumes:
|
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: birbnetes-nfs-model-minio
|
|
|
|
containers:
|
|
|
|
- name: model-minio
|
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: "/data"
|
|
|
|
image: minio/minio:RELEASE.2020-03-25T07-03-04Z
|
|
|
|
args:
|
|
|
|
- server
|
|
|
|
- /data
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: model-minio
|
|
|
|
ports:
|
|
|
|
- containerPort: 9000
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /minio/health/ready
|
|
|
|
port: 9000
|
|
|
|
initialDelaySeconds: 120
|
|
|
|
periodSeconds: 20
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /minio/health/live
|
|
|
|
port: 9000
|
|
|
|
initialDelaySeconds: 120
|
|
|
|
periodSeconds: 20
|