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

Revision as of 19:59, 18 October 2017

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