Last active
August 8, 2017 14:45
-
-
Save mffiedler/793a3be0e2be281dc21468600e46aab6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.1 | |
log: | |
level: warn | |
http: | |
addr: :5000 | |
auth: | |
openshift: | |
realm: openshift | |
storage: | |
filesystem: | |
rootdirectory: /registry | |
middleware: | |
registry: | |
- name: openshift | |
repository: | |
- name: openshift | |
options: | |
acceptschema2: false | |
pullthrough: true | |
enforcequota: false | |
projectcachettl: 1m | |
storage: | |
- name: openshift | |
oc secrets new dockerregistry /root/config.yml | |
oc volume dc/docker-registry --add --name=dockersecrets -m /etc/registryconfig --type=secret --secret-name=dockerregistry | |
oc volume deploymentconfigs/docker-registry --add --name=registry-storage -t pvc -m registry --claim-name=<pvc_name> --overwrite | |
oc env dc/docker-registry REGISTRY_CONFIGURATION_PATH=/etc/registryconfig/config.yml OPENSHIFT_PROFILE=web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
annotations: | |
volume.alpha.kubernetes.io/storage-class: foo | |
volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/aws-ebs | |
labels: | |
template: registry | |
name: registry | |
selfLink: /api/v1/namespaces//persistentvolumeclaims/registry | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 300Gi | |
status: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment