forked from k-space/kube
		
	shared/minio is already dead
This commit is contained in:
		@@ -1,38 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
apiVersion: networking.k8s.io/v1
 | 
					 | 
				
			||||||
kind: NetworkPolicy
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: minio-operator
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  podSelector:
 | 
					 | 
				
			||||||
    matchLabels:
 | 
					 | 
				
			||||||
      v1.min.io/tenant: minio
 | 
					 | 
				
			||||||
  policyTypes:
 | 
					 | 
				
			||||||
  - Ingress
 | 
					 | 
				
			||||||
  - Egress
 | 
					 | 
				
			||||||
  egress:
 | 
					 | 
				
			||||||
    - to:
 | 
					 | 
				
			||||||
      - namespaceSelector:
 | 
					 | 
				
			||||||
          matchLabels:
 | 
					 | 
				
			||||||
            kubernetes.io/metadata.name: minio-operator
 | 
					 | 
				
			||||||
      ports:
 | 
					 | 
				
			||||||
      - protocol: TCP
 | 
					 | 
				
			||||||
        port: 4222
 | 
					 | 
				
			||||||
    - to:
 | 
					 | 
				
			||||||
      - podSelector:
 | 
					 | 
				
			||||||
          matchLabels:
 | 
					 | 
				
			||||||
            v1.min.io/tenant: minio
 | 
					 | 
				
			||||||
      ports:
 | 
					 | 
				
			||||||
      - port: 9000
 | 
					 | 
				
			||||||
  ingress:
 | 
					 | 
				
			||||||
    - from:
 | 
					 | 
				
			||||||
      - podSelector: {}
 | 
					 | 
				
			||||||
      ports:
 | 
					 | 
				
			||||||
      - port: 9000
 | 
					 | 
				
			||||||
    - from:
 | 
					 | 
				
			||||||
      - namespaceSelector:
 | 
					 | 
				
			||||||
          matchLabels:
 | 
					 | 
				
			||||||
            kubernetes.io/metadata.name: traefik
 | 
					 | 
				
			||||||
        podSelector:
 | 
					 | 
				
			||||||
          matchLabels:
 | 
					 | 
				
			||||||
            app.kubernetes.io/name: traefik
 | 
					 | 
				
			||||||
@@ -1,89 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
apiVersion: apps/v1
 | 
					 | 
				
			||||||
kind: StatefulSet
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: minio
 | 
					 | 
				
			||||||
  annotations:
 | 
					 | 
				
			||||||
    keel.sh/policy: force
 | 
					 | 
				
			||||||
    keel.sh/trigger: poll
 | 
					 | 
				
			||||||
    keel.sh/pollSchedule: "@midnight"
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  revisionHistoryLimit: 0
 | 
					 | 
				
			||||||
  serviceName: minio
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    matchLabels:
 | 
					 | 
				
			||||||
      app: minio
 | 
					 | 
				
			||||||
  replicas: 1
 | 
					 | 
				
			||||||
  template:
 | 
					 | 
				
			||||||
    metadata:
 | 
					 | 
				
			||||||
      labels:
 | 
					 | 
				
			||||||
        app: minio
 | 
					 | 
				
			||||||
    spec:
 | 
					 | 
				
			||||||
      containers:
 | 
					 | 
				
			||||||
      - name: minio
 | 
					 | 
				
			||||||
        image: mirror.gcr.io/minio/minio:latest
 | 
					 | 
				
			||||||
        command: ["minio"]
 | 
					 | 
				
			||||||
        ports:
 | 
					 | 
				
			||||||
        - name: minio
 | 
					 | 
				
			||||||
          containerPort: 9000
 | 
					 | 
				
			||||||
        - name: minio-console
 | 
					 | 
				
			||||||
          containerPort: 9001
 | 
					 | 
				
			||||||
        args: ["server", "/data", "--console-address", ":9001"]
 | 
					 | 
				
			||||||
        env:
 | 
					 | 
				
			||||||
        - name: MINIO_ROOT_PASSWORD
 | 
					 | 
				
			||||||
          valueFrom:
 | 
					 | 
				
			||||||
            secretKeyRef:
 | 
					 | 
				
			||||||
              name: minio-secrets
 | 
					 | 
				
			||||||
              key: MINIO_ROOT_PASSWORD
 | 
					 | 
				
			||||||
        - name: MINIO_ROOT_USER
 | 
					 | 
				
			||||||
          valueFrom:
 | 
					 | 
				
			||||||
            fieldRef:
 | 
					 | 
				
			||||||
              fieldPath: metadata.namespace
 | 
					 | 
				
			||||||
        volumeMounts:
 | 
					 | 
				
			||||||
        - mountPath: /data
 | 
					 | 
				
			||||||
          name: minio-data
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # Make sure Minio instances run on storage{1..3} nodes, as close
 | 
					 | 
				
			||||||
      # as possible to Longhorn instances
 | 
					 | 
				
			||||||
      tolerations:
 | 
					 | 
				
			||||||
      - key: dedicated
 | 
					 | 
				
			||||||
        operator: Equal
 | 
					 | 
				
			||||||
        value: storage
 | 
					 | 
				
			||||||
        effect: NoSchedule
 | 
					 | 
				
			||||||
      nodeSelector:
 | 
					 | 
				
			||||||
        dedicated: storage
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  volumeClaimTemplates:
 | 
					 | 
				
			||||||
  - metadata:
 | 
					 | 
				
			||||||
      name: minio-data
 | 
					 | 
				
			||||||
    spec:
 | 
					 | 
				
			||||||
      storageClassName: longhorn
 | 
					 | 
				
			||||||
      accessModes:
 | 
					 | 
				
			||||||
        - ReadWriteOnce
 | 
					 | 
				
			||||||
      resources:
 | 
					 | 
				
			||||||
        requests:
 | 
					 | 
				
			||||||
          storage: 50Gi
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: Service
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: minio
 | 
					 | 
				
			||||||
  annotations:
 | 
					 | 
				
			||||||
    prometheus.io/scrape: 'true'
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  ports:
 | 
					 | 
				
			||||||
    - protocol: TCP
 | 
					 | 
				
			||||||
      port: 9000
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    app: minio
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: Service
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: minio-console
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  ports:
 | 
					 | 
				
			||||||
    - protocol: TCP
 | 
					 | 
				
			||||||
      port: 9001
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    app: minio
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user