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
= Enabling image streams with Kubernetes resources
9
9
10
-
When using image streams with Kubernetes resources, you can only reference image streams that reside in the same project as the resource. The image stream reference must consist of a single segment value, for example `ruby:2.5`, where `ruby` is the name of an image stream that has a tag named `2.5` and resides in the same project as the resource making the reference.
10
+
[role="_abstract"]
11
+
When using Kubernetes resources, you must reference image streams located within the same project by specifying a single segment value, such as `ruby:2.5`, which identifies the image stream name and its tag. This ensures the resource correctly targets the local image stream within its scope.
11
12
12
13
include::snippets/default-projects.adoc[]
13
14
@@ -16,10 +17,10 @@ There are two ways to enable image streams with Kubernetes resources:
16
17
* Enabling image stream resolution on a specific resource. This allows only this resource to use the image stream name in the image field.
17
18
* Enabling image stream resolution on an image stream. This allows all resources pointing to this image stream to use it in the image field.
18
19
19
-
.Procedure
20
-
21
20
You can use `oc set image-lookup` to enable image stream resolution on a specific resource or image stream resolution on an image stream.
22
21
22
+
.Procedure
23
+
23
24
. To allow all resources to reference the image stream named `mysql`, enter the following command:
24
25
+
25
26
[source,terminal]
@@ -53,9 +54,9 @@ When enabled, the behavior is enabled for all tags within the image stream.
53
54
$ oc set image-lookup imagestream --list
54
55
----
55
56
56
-
You can enable image lookup on a specific resource.
57
-
58
-
* To allow the Kubernetes deployment named `mysql` to use image streams, run the following command:
57
+
. Optional: You can enable image lookup on a specific resource.
58
+
+
59
+
To allow the Kubernetes deployment named `mysql` to use image streams, run the following command:
59
60
+
60
61
[source,terminal]
61
62
----
@@ -86,9 +87,7 @@ spec:
86
87
name: mysql
87
88
----
88
89
89
-
You can disable image lookup.
90
-
91
-
* To disable image lookup, pass `--enabled=false`:
90
+
. Optional: To disable image lookup, pass `--enabled=false`:
0 commit comments