OpenShift Registry Definition: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "<pre> apiVersion: v1 items: - apiVersion: v1 kind: ServiceAccount metadata: creationTimestamp: null name: registry - apiVersion: v1 groupNames: null kind: Clus...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
=Internal=
apiVersion: v1
 
items:
* [[OpenShift_Concepts#Integrated_Docker_Registry|OpenShift Concepts]]
- apiVersion: v1
 
  kind: ServiceAccount
=Overview=
  metadata:
 
    creationTimestamp: null
Definition obtained with
    name: registry
 
- apiVersion: v1
oadm registry -o yaml
  groupNames: null
 
  kind: ClusterRoleBinding
=Definition=
  metadata:
 
    creationTimestamp: null
apiVersion: v1
    name: registry-registry-role
items:
  roleRef:
- apiVersion: v1
    kind: ClusterRole
  kind: <b>ServiceAccount</b>
    name: system:registry
  metadata:
  subjects:
    creationTimestamp: null
  - kind: ServiceAccount
    name: registry
    name: registry
- apiVersion: v1
    namespace: default
  groupNames: null
  userNames:
  kind: <b>ClusterRoleBinding</b>
  - system:serviceaccount:default:registry
  metadata:
- apiVersion: v1
    creationTimestamp: null
  kind: DeploymentConfig
    name: registry-registry-role
  metadata:
  roleRef:
    creationTimestamp: null
    kind: ClusterRole
    labels:
    name: [[OpenShift_Security_Concepts#.2Fsystem:registry|system:registry]]
      docker-registry: default
  subjects:
    name: docker-registry
  - kind: ServiceAccount
  spec:
    name: registry
    replicas: 1
    namespace: default
    selector:
  userNames:
      docker-registry: default
  - system:serviceaccount:default:registry
    strategy:
- apiVersion: v1
      resources: {}
  kind: <b>DeploymentConfig</b>
    template:
  metadata:
      metadata:
    creationTimestamp: null
        creationTimestamp: null
    labels:
        labels:
      docker-registry: default
          docker-registry: default
    name: docker-registry
      spec:
  spec:
        containers:
    replicas: 1
        - env:
    selector:
          - name: REGISTRY_HTTP_ADDR
      docker-registry: default
            value: :5000
    strategy:
          - name: REGISTRY_HTTP_NET
      resources: {}
            value: tcp
    template:
          - name: REGISTRY_HTTP_SECRET
      metadata:
            value: Vyq7RwUpLHnztQbeRmQQ91khldOHiB+D/F9lnPgHhoQ=
        creationTimestamp: null
          - name: REGISTRY_MIDDLEWARE_REPOSITORY_OPENSHIFT_ENFORCEQUOTA
        labels:
            value: "false"
          docker-registry: default
          image: registry.access.redhat.com/openshift3/ose-docker-registry:v3.5.5.26
      spec:
          livenessProbe:
        containers:
            httpGet:
        - env:
              path: /healthz
          - name: REGISTRY_HTTP_ADDR
              port: 5000
            value: :5000
            initialDelaySeconds: 10
          - name: REGISTRY_HTTP_NET
            timeoutSeconds: 5
            value: tcp
          name: registry
          - name: REGISTRY_HTTP_SECRET
          ports:
            value: Vyq7RwUpLHnztQbeRmQQ91khldOHiB+D/F9lnPgHhoQ=
          - containerPort: 5000
          - name: REGISTRY_MIDDLEWARE_REPOSITORY_OPENSHIFT_ENFORCEQUOTA
          readinessProbe:
            value: "false"
            httpGet:
          image: registry.access.redhat.com/openshift3/ose-docker-registry:v3.5.5.26
              path: /healthz
          livenessProbe:
              port: 5000
            httpGet:
            timeoutSeconds: 5
              path: /healthz
          resources:
              port: 5000
            requests:
            initialDelaySeconds: 10
              cpu: 100m
            timeoutSeconds: 5
              memory: 256Mi
          name: registry
          securityContext:
          ports:
            privileged: false
          - containerPort: 5000
          volumeMounts:
          readinessProbe:
          - mountPath: /registry
            httpGet:
            name: registry-storage
              path: /healthz
        serviceAccount: registry
              port: 5000
        serviceAccountName: registry
            timeoutSeconds: 5
        volumes:
          resources:
        - emptyDir: {}
            requests:
          name: registry-storage
              cpu: 100m
    test: false
              memory: 256Mi
    triggers:
          securityContext:
    - type: ConfigChange
            privileged: false
  status:
          volumeMounts:
    availableReplicas: 0
          - mountPath: /registry
    latestVersion: 0
            name: registry-storage
    observedGeneration: 0
        serviceAccount: registry
    replicas: 0
        serviceAccountName: registry
    unavailableReplicas: 0
        volumes:
    updatedReplicas: 0
        - emptyDir: {}
- apiVersion: v1
          name: registry-storage
  kind: Service
    test: false
  metadata:
    triggers:
    creationTimestamp: null
    - type: ConfigChange
    labels:
  status:
      docker-registry: default
    availableReplicas: 0
    name: docker-registry
    latestVersion: 0
  spec:
    observedGeneration: 0
    clusterIP: 172.30.45.127
    replicas: 0
    ports:
    unavailableReplicas: 0
    - name: 5000-tcp
    updatedReplicas: 0
      port: 5000
- apiVersion: v1
      targetPort: 5000
  kind: <b>Service</b>
    selector:
  metadata:
      docker-registry: default
    creationTimestamp: null
    sessionAffinity: ClientIP
    labels:
  status:
      docker-registry: default
    loadBalancer: {}
    name: docker-registry
kind: List
  spec:
metadata: {}
    clusterIP: 172.30.45.127
</pre>
    ports:
    - name: 5000-tcp
      port: 5000
      targetPort: 5000
    selector:
      docker-registry: default
    sessionAffinity: ClientIP
  status:
    loadBalancer: {}
kind: List  
metadata: {}

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: {}