GithubHelp home page GithubHelp logo

quay-with-minio's Introduction

Quay Registry on OpenShift with MinIO for Multi-Cluster

1.MinIO on OpenShift

1-1.Prepare PV

Prepare persistent volume without the Local Storage Operator after attaching virtual volume to VM.

apiVersion: v1
kind: PersistentVolume
metadata:
  name: minio-local-storage-pv
spec:
  capacity:
    storage: 190Gi
  volumeMode: Filesystem 
  accessModes:
  - ReadWriteOnce
  persistentVolumeReclaimPolicy: Delete
  storageClassName: local-storage
  local:
    path: /dev/vdb
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: kubernetes.io/hostname
          operator: In
          values:
          - ocp4-hub.edwin.home

1-2.Deploy MinIO

Deploy an instance development purpose

1-3.Create bucket for Quay

2.Install Quay

2-1.Pre configuration

create `config.yaml`` file

FEATURE_USER_INITIALIZE: true
BROWSER_API_CALLS_XHR_ONLY: false
SUPER_USERS:
  - quayadmin
FEATURE_USER_CREATION: false
DISTRIBUTED_STORAGE_CONFIG:
  minioStorage:
    - RadosGWStorage
    - hostname: minio.minio.svc.cluster.local
      access_key: xxx
      secret_key: xxx
      bucket_name: quay
      is_secure: false
      port: 9000
      storage_path: /datastorage/registry
DISTRIBUTED_STORAGE_DEFAULT_LOCATIONS: []
DISTRIBUTED_STORAGE_PREFERENCE:
    - minioStorage
FEATURE_PROXY_CACHE: true
FEATURE_QUOTA_MANAGEMENT: true
# Enable 3.10 features
FEATURE_UI_V2: true
FEATURE_UI_V2_REPO_SETTINGS: true
FEATURE_AUTO_PRUNE: true
ROBOTS_DISALLOW: false
oc create secret -n quay-enterprise generic --from-file config.yaml=./config.yaml init-config-bundle-secret

2-2.Create a Quay instance

  • quay-registry definition
kind: QuayRegistry
apiVersion: quay.redhat.com/v1
metadata:
  name: quay-registry
spec:
  configBundleSecret: init-config-bundle-secret
  components:
    - kind: clair
      managed: false
    - kind: clairpostgres
      managed: false
    - kind: postgres
      managed: true
      overrides:
        resources: ''
    - kind: objectstorage
      managed: false
    - kind: redis
      managed: true
    - kind: route
      managed: true
    - kind: mirror
      managed: false
    - kind: monitoring
      managed: false
    - kind: quay
      managed: true
      overrides:
        replicas: 1
    - kind: horizontalpodautoscaler
      managed: false
oc create -n quay-enterprise -f quayregistry.yaml
  • Remove resource request oc get deployment quay-operator.v3.10.0 -n openshift-operator set SKIP_RESOURCE_REQUESTS environment variable to true

3.Quay bridge operator

Create access token in Quay for bridge operator

oc create secret -n openshift-operators generic quay-edwin --from-literal=token=${TOKEN}

Create Quay integration yaml

  apiVersion: quay.redhat.com/v1
  kind: QuayIntegration
  metadata:
    name: edwin-quayintegration
  spec:
    clusterID: sno-hub
    credentialsSecret:
      namespace: openshift-operators
      name: quay-edwin
    quayHostname: https://quay.edwin.home
    insecureRegistry: true
oc create -f quay-integration.yaml -n openshift-operator

quay-with-minio's People

Watchers

Edwin Noh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.