OpenShift Registry Definition: Difference between revisions
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: | ||
=Internal= | |||
apiVersion: v1 | |||
items: | * [[OpenShift_Concepts#Integrated_Docker_Registry|OpenShift Concepts]] | ||
- apiVersion: v1 | |||
=Overview= | |||
Definition obtained with | |||
- apiVersion: v1 | oadm registry -o yaml | ||
=Definition= | |||
apiVersion: v1 | |||
items: | |||
- apiVersion: v1 | |||
kind: <b>ServiceAccount</b> | |||
metadata: | |||
creationTimestamp: null | |||
name: registry | |||
- apiVersion: v1 | |||
groupNames: null | |||
kind: <b>ClusterRoleBinding</b> | |||
metadata: | |||
- apiVersion: v1 | creationTimestamp: null | ||
name: registry-registry-role | |||
roleRef: | |||
kind: ClusterRole | |||
name: [[OpenShift_Security_Concepts#.2Fsystem:registry|system:registry]] | |||
subjects: | |||
- kind: ServiceAccount | |||
name: registry | |||
namespace: default | |||
userNames: | |||
- system:serviceaccount:default:registry | |||
- apiVersion: v1 | |||
kind: <b>DeploymentConfig</b> | |||
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: {} | |||
- apiVersion: v1 | name: registry-storage | ||
test: false | |||
triggers: | |||
- type: ConfigChange | |||
status: | |||
availableReplicas: 0 | |||
latestVersion: 0 | |||
observedGeneration: 0 | |||
replicas: 0 | |||
unavailableReplicas: 0 | |||
updatedReplicas: 0 | |||
- apiVersion: v1 | |||
kind: <b>Service</b> | |||
metadata: | |||
creationTimestamp: null | |||
labels: | |||
docker-registry: default | |||
name: docker-registry | |||
kind: List | spec: | ||
metadata: {} | clusterIP: 172.30.45.127 | ||
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: {}