OpenShift Registry Definition: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
* [[OpenShift_Concepts#Integrated_Docker_Registry|OpenShift Concepts]]
=Overview=
Definition obtained with
oadm registry -o yaml
=Definition=
  apiVersion: v1
  apiVersion: v1
  items:
  items:
  - apiVersion: v1
  - apiVersion: v1
   kind: ServiceAccount
   kind: <b>ServiceAccount</b>
   metadata:
   metadata:
     creationTimestamp: null
     creationTimestamp: null
Line 8: Line 20:
  - apiVersion: v1
  - apiVersion: v1
   groupNames: null
   groupNames: null
   kind: ClusterRoleBinding
   kind: <b>ClusterRoleBinding</b>
   metadata:
   metadata:
     creationTimestamp: null
     creationTimestamp: null
Line 14: Line 26:
   roleRef:
   roleRef:
     kind: ClusterRole
     kind: ClusterRole
     name: system:registry
     name: [[OpenShift_Security_Concepts#.2Fsystem:registry|system:registry]]
   subjects:
   subjects:
   - kind: ServiceAccount
   - kind: ServiceAccount
Line 22: Line 34:
   - system:serviceaccount:default:registry
   - system:serviceaccount:default:registry
  - apiVersion: v1
  - apiVersion: v1
   kind: DeploymentConfig
   kind: <b>DeploymentConfig</b>
   metadata:
   metadata:
     creationTimestamp: null
     creationTimestamp: null
Line 90: Line 102:
     updatedReplicas: 0
     updatedReplicas: 0
  - apiVersion: v1
  - apiVersion: v1
   kind: Service
   kind: <b>Service</b>
   metadata:
   metadata:
     creationTimestamp: null
     creationTimestamp: null

Latest revision as of 20:07, 18 October 2017

Internal

Overview

Definition obtained with

oadm registry -o yaml

Definition

apiVersion: v1
items:
- apiVersion: v1
  kind: ServiceAccount
  metadata:
    creationTimestamp: null
    name: registry
- apiVersion: v1
  groupNames: null
  kind: ClusterRoleBinding
  metadata:
    creationTimestamp: null
    name: registry-registry-role
  roleRef:
    kind: ClusterRole
    name: system:registry
  subjects:
  - kind: ServiceAccount
    name: registry
    namespace: default
  userNames:
  - system:serviceaccount:default:registry
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    creationTimestamp: null
    labels:
      docker-registry: default
    name: docker-registry
  spec:
    replicas: 1
    selector:
      docker-registry: default
    strategy:
      resources: {}
    template:
      metadata:
        creationTimestamp: null
        labels:
          docker-registry: default
      spec:
        containers:
        - env:
          - name: REGISTRY_HTTP_ADDR
            value: :5000
          - name: REGISTRY_HTTP_NET
            value: tcp
          - name: REGISTRY_HTTP_SECRET
            value: Vyq7RwUpLHnztQbeRmQQ91khldOHiB+D/F9lnPgHhoQ=
          - name: REGISTRY_MIDDLEWARE_REPOSITORY_OPENSHIFT_ENFORCEQUOTA
            value: "false"
          image: registry.access.redhat.com/openshift3/ose-docker-registry:v3.5.5.26
          livenessProbe:
            httpGet:
              path: /healthz
              port: 5000
            initialDelaySeconds: 10
            timeoutSeconds: 5
          name: registry
          ports:
          - containerPort: 5000
          readinessProbe:
            httpGet:
              path: /healthz
              port: 5000
            timeoutSeconds: 5
          resources:
            requests:
              cpu: 100m
              memory: 256Mi
          securityContext:
            privileged: false
          volumeMounts:
          - mountPath: /registry
            name: registry-storage
        serviceAccount: registry
        serviceAccountName: registry
        volumes:
        - emptyDir: {}
          name: registry-storage
    test: false
    triggers:
    - type: ConfigChange
  status:
    availableReplicas: 0
    latestVersion: 0
    observedGeneration: 0
    replicas: 0
    unavailableReplicas: 0
    updatedReplicas: 0
- apiVersion: v1
  kind: Service
  metadata:
    creationTimestamp: null
    labels:
      docker-registry: default
    name: docker-registry
  spec:
    clusterIP: 172.30.45.127
    ports:
    - name: 5000-tcp
      port: 5000
      targetPort: 5000
    selector:
      docker-registry: default
    sessionAffinity: ClientIP
  status:
    loadBalancer: {}
kind: List 
metadata: {}