1OC CREATE(1) June 2016 OC CREATE(1)
2
3
4
6 oc create imagestreamtag - Create a new image stream tag.
7
8
9
11 oc create imagestreamtag [OPTIONS]
12
13
14
16 Create a new image stream tag
17
18
19 Image streams tags allow you to track, tag, and import images from
20 other registries. They also define an access controlled destination
21 that you can push images to. An image stream tag can reference images
22 from many different registries and control how those images are refer‐
23 enced by pods, deployments, and builds.
24
25
26 If --resolve-local is passed, the image stream will be used as the
27 source when pods reference it by name. For example, if stream 'mysql'
28 resolves local names, a pod that points to 'mysql:latest' will use the
29 image the image stream points to under the "latest" tag.
30
31
32
34 --allow-missing-template-keys=true
35 If true, ignore any errors in templates when a field or map key is
36 missing in the template. Only applies to golang and jsonpath output
37 formats.
38
39
40 --annotation=[]
41 Set an annotation on this image stream tag.
42
43
44 --dry-run=false
45 If true, only print the object that would be sent, without sending
46 it.
47
48
49 --from=""
50 Use the provided image stream tag or image stream image as the
51 source: [<namespace>/]name[:<tag>|@<id>]
52
53
54 --from-image=""
55 Use the provided remote image with this tag.
56
57
58 --insecure=false
59 Allow importing from registries that are not fully secured by
60 HTTPS.
61
62
63 -o, --output=""
64 Output format. One of: json|yaml|name|template|go-template|go-tem‐
65 plate-file|templatefile|jsonpath|jsonpath-file.
66
67
68 --reference=false
69 If true, the tag value will be used whenever the image stream tag
70 is referenced.
71
72
73 --reference-policy=""
74 If set to 'Local', referenced images will be pulled from the inte‐
75 grated registry. Ignored when reference is true.
76
77
78 --scheduled=false
79 If set the remote source of this image will be periodically checked
80 for imports.
81
82
83 --template=""
84 Template string or path to template file to use when -o=go-tem‐
85 plate, -o=go-template-file. The template format is golang templates [
86 ⟨http://golang.org/pkg/text/template/#pkg-overview⟩].
87
88
89
91 --allow_verification_with_non_compliant_keys=false
92 Allow a SignatureVerifier to use keys which are technically
93 non-compliant with RFC6962.
94
95
96 --alsologtostderr=false
97 log to standard error as well as files
98
99
100 --application_metrics_count_limit=100
101 Max number of application metrics to store (per container)
102
103
104 --as=""
105 Username to impersonate for the operation
106
107
108 --as-group=[]
109 Group to impersonate for the operation, this flag can be repeated
110 to specify multiple groups.
111
112
113 --azure-container-registry-config=""
114 Path to the file containing Azure container registry configuration
115 information.
116
117
118 --boot_id_file="/proc/sys/kernel/random/boot_id"
119 Comma-separated list of files to check for boot-id. Use the first
120 one that exists.
121
122
123 --cache-dir="/builddir/.kube/http-cache"
124 Default HTTP cache directory
125
126
127 --certificate-authority=""
128 Path to a cert file for the certificate authority
129
130
131 --client-certificate=""
132 Path to a client certificate file for TLS
133
134
135 --client-key=""
136 Path to a client key file for TLS
137
138
139 --cloud-provider-gce-lb-src-cidrs=130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16
140 CIDRs opened in GCE firewall for LB traffic proxy health checks
141
142
143 --cluster=""
144 The name of the kubeconfig cluster to use
145
146
147 --container_hints="/etc/cadvisor/container_hints.json"
148 location of the container hints file
149
150
151 --containerd="unix:///var/run/containerd.sock"
152 containerd endpoint
153
154
155 --context=""
156 The name of the kubeconfig context to use
157
158
159 --default-not-ready-toleration-seconds=300
160 Indicates the tolerationSeconds of the toleration for
161 notReady:NoExecute that is added by default to every pod that does not
162 already have such a toleration.
163
164
165 --default-unreachable-toleration-seconds=300
166 Indicates the tolerationSeconds of the toleration for unreach‐
167 able:NoExecute that is added by default to every pod that does not
168 already have such a toleration.
169
170
171 --docker="unix:///var/run/docker.sock"
172 docker endpoint
173
174
175 --docker-tls=false
176 use TLS to connect to docker
177
178
179 --docker-tls-ca="ca.pem"
180 path to trusted CA
181
182
183 --docker-tls-cert="cert.pem"
184 path to client certificate
185
186
187 --docker-tls-key="key.pem"
188 path to private key
189
190
191 --docker_env_metadata_whitelist=""
192 a comma-separated list of environment variable keys that needs to
193 be collected for docker containers
194
195
196 --docker_only=false
197 Only report docker containers in addition to root stats
198
199
200 --docker_root="/var/lib/docker"
201 DEPRECATED: docker root is read from docker info (this is a fall‐
202 back, default: /var/lib/docker)
203
204
205 --enable_load_reader=false
206 Whether to enable cpu load reader
207
208
209 --event_storage_age_limit="default=24h"
210 Max length of time for which to store events (per type). Value is a
211 comma separated list of key values, where the keys are event types
212 (e.g.: creation, oom) or "default" and the value is a duration. Default
213 is applied to all non-specified event types
214
215
216 --event_storage_event_limit="default=100000"
217 Max number of events to store (per type). Value is a comma sepa‐
218 rated list of key values, where the keys are event types (e.g.: cre‐
219 ation, oom) or "default" and the value is an integer. Default is
220 applied to all non-specified event types
221
222
223 --global_housekeeping_interval=0
224 Interval between global housekeepings
225
226
227 --housekeeping_interval=0
228 Interval between container housekeepings
229
230
231 --httptest.serve=""
232 if non-empty, httptest.NewServer serves on this address and blocks
233
234
235 --insecure-skip-tls-verify=false
236 If true, the server's certificate will not be checked for validity.
237 This will make your HTTPS connections insecure
238
239
240 --kubeconfig=""
241 Path to the kubeconfig file to use for CLI requests.
242
243
244 --log-flush-frequency=0
245 Maximum number of seconds between log flushes
246
247
248 --log_backtrace_at=:0
249 when logging hits line file:N, emit a stack trace
250
251
252 --log_cadvisor_usage=false
253 Whether to log the usage of the cAdvisor container
254
255
256 --log_dir=""
257 If non-empty, write log files in this directory
258
259
260 --logtostderr=true
261 log to standard error instead of files
262
263
264 --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
265 Comma-separated list of files to check for machine-id. Use the
266 first one that exists.
267
268
269 --match-server-version=false
270 Require server version to match client version
271
272
273 -n, --namespace=""
274 If present, the namespace scope for this CLI request
275
276
277 --request-timeout="0"
278 The length of time to wait before giving up on a single server
279 request. Non-zero values should contain a corresponding time unit (e.g.
280 1s, 2m, 3h). A value of zero means don't timeout requests.
281
282
283 -s, --server=""
284 The address and port of the Kubernetes API server
285
286
287 --stderrthreshold=2
288 logs at or above this threshold go to stderr
289
290
291 --storage_driver_buffer_duration=0
292 Writes in the storage driver will be buffered for this duration,
293 and committed to the non memory backends as a single transaction
294
295
296 --storage_driver_db="cadvisor"
297 database name
298
299
300 --storage_driver_host="localhost:8086"
301 database host:port
302
303
304 --storage_driver_password="root"
305 database password
306
307
308 --storage_driver_secure=false
309 use secure connection with database
310
311
312 --storage_driver_table="stats"
313 table name
314
315
316 --storage_driver_user="root"
317 database username
318
319
320 --token=""
321 Bearer token for authentication to the API server
322
323
324 --user=""
325 The name of the kubeconfig user to use
326
327
328 -v, --v=0
329 log level for V logs
330
331
332 --version=false
333 Print version information and quit
334
335
336 --vmodule=
337 comma-separated list of pattern=N settings for file-filtered log‐
338 ging
339
340
341
343 # Create a new image stream tag based on an image on a remote registry
344 oc create imagestreamtag mysql:latest --from-image=myregistry.local/mysql/mysql:5.0
345
346
347
348
350 oc-create(1),
351
352
353
355 June 2016, Ported from the Kubernetes man-doc generator
356
357
358
359Openshift Openshift CLI User Manuals OC CREATE(1)