Start to write dev guide
This commit is contained in:
		
							
								
								
									
										89
									
								
								yaml/minio-dev-deployment.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										89
									
								
								yaml/minio-dev-deployment.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,89 @@
 | 
			
		||||
apiVersion: apps/v1
 | 
			
		||||
kind: Deployment
 | 
			
		||||
metadata:
 | 
			
		||||
  name: minio
 | 
			
		||||
  labels:
 | 
			
		||||
    app: minio
 | 
			
		||||
spec:
 | 
			
		||||
  replicas: 1
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      app: minio
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      labels:
 | 
			
		||||
        app: minio
 | 
			
		||||
    spec:
 | 
			
		||||
      volumes:
 | 
			
		||||
        - name: data
 | 
			
		||||
          persistentVolumeClaim:
 | 
			
		||||
            claimName: minio
 | 
			
		||||
      containers:
 | 
			
		||||
        - name: minio
 | 
			
		||||
          image: minio/minio
 | 
			
		||||
          imagePullPolicy: Always
 | 
			
		||||
          ports:
 | 
			
		||||
            - containerPort: 9000
 | 
			
		||||
              protocol: TCP
 | 
			
		||||
              name: api
 | 
			
		||||
            - containerPort: 9001
 | 
			
		||||
              protocol: TCP
 | 
			
		||||
              name: console
 | 
			
		||||
          args:
 | 
			
		||||
            - server
 | 
			
		||||
            - /data
 | 
			
		||||
            - --console-address
 | 
			
		||||
            - ":9090"
 | 
			
		||||
          env:
 | 
			
		||||
            - name: MINIO_ROOT_USER
 | 
			
		||||
              value: minioadmin
 | 
			
		||||
            - name: MINIO_ROOT_PASSWORD
 | 
			
		||||
              value: minioadmin
 | 
			
		||||
          volumeMounts:
 | 
			
		||||
            - mountPath: "/data"
 | 
			
		||||
              name: data
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: PersistentVolume
 | 
			
		||||
metadata:
 | 
			
		||||
  name: minio
 | 
			
		||||
spec:
 | 
			
		||||
  storageClassName: manual
 | 
			
		||||
  accessModes:
 | 
			
		||||
    - ReadWriteOnce
 | 
			
		||||
  capacity:
 | 
			
		||||
    storage: 5Gi
 | 
			
		||||
  hostPath:
 | 
			
		||||
    path: /data/minio/
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: PersistentVolumeClaim
 | 
			
		||||
metadata:
 | 
			
		||||
  name: minio
 | 
			
		||||
spec:
 | 
			
		||||
  storageClassName: manual
 | 
			
		||||
  accessModes:
 | 
			
		||||
    - ReadWriteOnce
 | 
			
		||||
  resources:
 | 
			
		||||
    requests:
 | 
			
		||||
      storage: 3Gi
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  name: minio
 | 
			
		||||
  labels:
 | 
			
		||||
    app: minio
 | 
			
		||||
spec:
 | 
			
		||||
  type: LoadBalancer
 | 
			
		||||
  selector:
 | 
			
		||||
    app: minio
 | 
			
		||||
  ports:
 | 
			
		||||
    - name: api
 | 
			
		||||
      port: 9000
 | 
			
		||||
      targetPort: api
 | 
			
		||||
    - name: console
 | 
			
		||||
      port: 9001
 | 
			
		||||
      targetPort: console
 | 
			
		||||
  externalTrafficPolicy: Local
 | 
			
		||||
		Reference in New Issue
	
	Block a user