You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Importing images and image streams from private registries
6
+
7
+
An image stream can be configured to import tag and image metadata from private image registries requiring authentication. This procedures applies if you change the registry that the Cluster Samples Operator uses to pull content from to something other than link:registry.redhat.io[registry.redhat.io].
8
+
9
+
[NOTE]
10
+
====
11
+
When importing from insecure or secure registries, the registry URL defined in the secret must include the `:80` port suffix or the secret is not used when attempting to import from the registry.
12
+
====
13
+
14
+
.Procedure
15
+
16
+
. You must create a `secret` object that is used to store your credentials by entering the following command:
@@ -11,14 +12,19 @@ You can update the global pull secret for your cluster.
11
12
Cluster resources must adjust to the new pull secret, which can temporarily limit the usability of the cluster.
12
13
====
13
14
15
+
[WARNING]
16
+
====
17
+
Updating the global pull secret will cause node reboots while the Machine Config Operator (MCO) syncs the changes.
18
+
====
19
+
14
20
.Prerequisites
15
21
16
22
* You have a new or modified pull secret file to upload.
17
23
* You have access to the cluster as a user with the `cluster-admin` role.
18
24
19
25
.Procedure
20
26
21
-
* Run the following command to update the global pull secret for your cluster:
27
+
* Enter the following command to update the global pull secret for your cluster:
22
28
+
23
29
[source,terminal]
24
30
----
@@ -27,3 +33,5 @@ $ oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjs
27
33
<1> Provide the path to the new pull secret file.
28
34
29
35
This update is rolled out to all nodes, which can take some time depending on the size of your cluster. During this time, nodes are drained and pods are rescheduled on the remaining nodes.
36
+
37
+
//Also referred to as the cluster-wide pull secret.
Copy file name to clipboardExpand all lines: modules/samples-operator-overview.adoc
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,16 @@
7
7
= Understanding the Cluster Samples Operator
8
8
9
9
During installation, the Operator creates the default configuration object for
10
-
itself and then creates the sample imagestreams and templates, including
11
-
quickstart templates.
10
+
itself and then creates the sample image streams and templates, including quickstart templates.
12
11
13
12
[NOTE]
14
13
====
15
-
To facilitate imagestream imports from other registries that require credentials, a cluster administrator can create any additional secrets that contain the content of a Docker `config.json` file in the `openshift` namespace needed for image import.
14
+
To facilitate image stream imports from other registries that require credentials, a cluster administrator can create any additional secrets that contain the content of a Docker `config.json` file in the `openshift` namespace needed for image import.
16
15
====
17
16
18
17
The Cluster Samples Operator configuration is a cluster-wide resource, and the deployment is contained within the `openshift-cluster-samples-operator` namespace.
19
18
20
-
The image for the Cluster Samples Operator contains imagestream and template definitions
19
+
The image for the Cluster Samples Operator contains image stream and template definitions
21
20
for the associated {product-title} release. When each sample is created or updated,
22
21
the Cluster Samples Operator includes an annotation that denotes the version of
23
22
{product-title}. The Operator uses this annotation to ensure that each sample
@@ -29,13 +28,13 @@ automatically.
29
28
[NOTE]
30
29
====
31
30
The Jenkins images are part of the image payload from
32
-
installation and are tagged into the imagestreams directly.
31
+
installation and are tagged into the image streams directly.
33
32
====
34
33
35
34
The Cluster Samples Operator configuration resource includes a finalizer which cleans up
36
35
the following upon deletion:
37
36
38
-
* Operator managed imagestreams.
37
+
* Operator managed image streams.
39
38
* Operator managed templates.
40
39
* Operator generated configuration resources.
41
40
* Cluster status resources.
@@ -46,7 +45,7 @@ resource using the default configuration.
46
45
[id="samples-operator-bootstrapped"]
47
46
== Cluster Samples Operator's use of management state
48
47
49
-
The Cluster Samples Operator is bootstrapped as `Managed` by default or if global proxy is configured. In the `Managed` state, the Cluster Samples Operator is actively managing its resources and keeping the component active in order to pull sample imagestreams and images from the registry and ensure that the requisite sample templates are installed.
48
+
The Cluster Samples Operator is bootstrapped as `Managed` by default or if global proxy is configured. In the `Managed` state, the Cluster Samples Operator is actively managing its resources and keeping the component active in order to pull sample image streams and images from the registry and ensure that the requisite sample templates are installed.
50
49
51
50
Certain circumstances result in the Cluster Samples Operator bootstrapping itself as `Removed` including:
52
51
@@ -57,13 +56,13 @@ However, if the Cluster Samples Operator also detects an {product-title} global
57
56
58
57
[IMPORTANT]
59
58
====
60
-
IPv6 installations are not currently supported by link:https://registry.redhat.io[registry.redhat.io]. The Cluster Samples Operator pulls most of the sample imagestreams and images from link:https://registry.redhat.io[registry.redhat.io].
59
+
IPv6 installations are not currently supported by link:https://registry.redhat.io[registry.redhat.io]. The Cluster Samples Operator pulls most of the sample image streams and images from link:https://registry.redhat.io[registry.redhat.io].
Boostrapping as `Removed` when unable to access `registry.redhat.io` facilitates restricted network installations when the network restriction is already in place. Bootstrapping as `Removed` when network access is restricted allows the cluster administrator more time to decide if samples are desired, because the Cluster Samples Operator does not submit alerts that sample imagestream imports are failing when the management state is set to `Removed`. When the Cluster Samples Operator comes up as `Managed` and attempts to install sample imagestreams, it starts alerting two hours after initial installation if there are failing imports.
65
+
Boostrapping as `Removed` when unable to access `registry.redhat.io` facilitates restricted network installations when the network restriction is already in place. Bootstrapping as `Removed` when network access is restricted allows the cluster administrator more time to decide if samples are desired, because the Cluster Samples Operator does not submit alerts that sample image stream imports are failing when the management state is set to `Removed`. When the Cluster Samples Operator comes up as `Managed` and attempts to install sample image streams, it starts alerting two hours after initial installation if there are failing imports.
=== Restricted network installation with initial network access
@@ -86,9 +85,9 @@ spec:
86
85
----
87
86
88
87
[id="samples-operator-retries"]
89
-
== Cluster Samples Operator's tracking and error recovery of imagestream imports
88
+
== Cluster Samples Operator's tracking and error recovery of image stream imports
90
89
91
-
After creation or update of a samples imagestream, the Cluster Samples Operator monitors the progress of each imagestreamtag's image import.
90
+
After creation or update of a samples image stream, the Cluster Samples Operator monitors the progress of each image stream tag's image import.
92
91
93
-
If an import fails, the Cluster Samples Operator retries the import through the imagestream image import API, which is the same API used by the `oc import-image` command, approximately every 15 minutes until it sees the import succeed, or if
94
-
the Cluster Samples Operator's configuration is changed such that either the imagestream is added to the `skippedImagestreams` list, or the management state is changed to `Removed`.
92
+
If an import fails, the Cluster Samples Operator retries the import through the image stream image import API, which is the same API used by the `oc import-image` command, approximately every 15 minutes until it sees the import succeed, or if
93
+
the Cluster Samples Operator's configuration is changed such that either the image stream is added to the `skippedImagestreams` list, or the management state is changed to `Removed`.
For more information about configuring credentials, see xref:../openshift_images/managing_images/using-image-pull-secrets.adoc#using-image-pull-secrets[Using image pull secrets].
If you are using {product-title}'s internal registry and are pulling from
9
-
imagestreams located in the same project, then your Pod's service account should
9
+
image streams located in the same project, then your pod's service account should
10
10
already have the correct permissions and no additional action should be
11
11
required.
12
12
13
13
However, for other scenarios, such as referencing images across {product-title}
14
14
projects or from secured registries, then additional configuration steps are
15
15
required.
16
16
17
+
You can obtain the image pull secret, `pullSecret`, from the link:https://cloud.redhat.com/openshift/install/pull-secret[Pull Secret] page on the {cloud-redhat-com} site.
18
+
19
+
You use this pull secret to authenticate with the services that are provided by the included authorities, including link:quay.io[Quay.io] and link:registry.redhat.io[registry.redhat.io], which serve the container images for {product-title} components.
0 commit comments