mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 00:12:18 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			90 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			90 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: apps/v1
 | |
| kind: Deployment
 | |
| metadata:
 | |
|   name: minio
 | |
|   labels:
 | |
|     app: minio
 | |
| spec:
 | |
|   replicas: 2
 | |
|   selector:
 | |
|     matchLabels:
 | |
|       app: minio
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         app: minio
 | |
|     spec:
 | |
|       containers:
 | |
|         - name: minio
 | |
|           image: minio/minio:RELEASE.2024-01-11T07-46-16Z
 | |
|           imagePullPolicy: IfNotPresent
 | |
|           ports:
 | |
|             - containerPort: 9000 # MinIO service port
 | |
|             - containerPort: 9090 # MinIO console port
 | |
|           volumeMounts:
 | |
|             - name: minio-data
 | |
|               mountPath: /data
 | |
|             - name: minio-config
 | |
|               mountPath: /root/.minio
 | |
|           env:
 | |
|             - name: TZ
 | |
|               value: "Asia/Shanghai"
 | |
|             - name: MINIO_ACCESS_KEY
 | |
|               valueFrom:
 | |
|                 secretKeyRef:
 | |
|                   name: minio-secret
 | |
|                   key: minio-root-user
 | |
|             - name: MINIO_SECRET_KEY
 | |
|               valueFrom:
 | |
|                 secretKeyRef:
 | |
|                   name: minio-secret
 | |
|                   key: minio-root-password
 | |
| 
 | |
|           command:
 | |
|             - minio
 | |
|             - server
 | |
|             - /data
 | |
|             - "--console-address"
 | |
|             - ":9090"
 | |
|       volumes:
 | |
|         - name: minio-data
 | |
|           persistentVolumeClaim:
 | |
|             claimName: minio-pvc
 | |
|         - name: minio-config
 | |
|           persistentVolumeClaim:
 | |
|             claimName: minio-config-pvc
 | |
| 
 | |
| ---
 | |
| apiVersion: v1
 | |
| kind: PersistentVolumeClaim
 | |
| metadata:
 | |
|   name: minio-pvc
 | |
| spec:
 | |
|   accessModes:
 | |
|     - ReadWriteOnce
 | |
|   resources:
 | |
|     requests:
 | |
|       storage: 10Gi
 | |
| 
 | |
| ---
 | |
| apiVersion: v1
 | |
| kind: PersistentVolumeClaim
 | |
| metadata:
 | |
|   name: minio-config-pvc
 | |
| spec:
 | |
|   accessModes:
 | |
|     - ReadWriteOnce
 | |
|   resources:
 | |
|     requests:
 | |
|       storage: 2Gi
 | |
| 
 | |
| ---
 | |
| apiVersion: v1
 | |
| kind: Secret
 | |
| metadata:
 | |
|   name: minio-secret
 | |
| type: Opaque
 | |
| data:
 | |
|   minio-root-user: cm9vdA== # Base64 encoded "root"
 | |
|   minio-root-password: b3BlbklNMTIz # Base64 encoded "openIM123"
 |