Browse code

Update oadm router and registry help message

Kenjiro Nakayama authored on 2015/08/02 16:50:19
Showing 2 changed files
... ...
@@ -230,14 +230,14 @@ Install the integrated Docker registry
230 230
   # Check if default Docker registry ("docker-registry") has been created
231 231
   $ openshift admin registry --dry-run
232 232
 
233
-  # See what the registry would look like if created
234
-  $ openshift admin registry -o json
233
+  # See what the registry will look like if created
234
+  $ openshift admin registry -o json --credentials=/path/to/registry-user.kubeconfig
235 235
 
236 236
   # Create a registry if it does not exist with two replicas
237
-  $ openshift admin registry --replicas=2 --credentials=registry-user.kubeconfig
237
+  $ openshift admin registry --replicas=2 --credentials=/path/to/registry-user.kubeconfig
238 238
 
239 239
   # Use a different registry image and see the registry configuration
240
-  $ openshift admin registry -o yaml --images=myrepo/docker-registry:mytag
240
+  $ openshift admin registry -o yaml --images=myrepo/docker-registry:mytag --credentials=/path/to/registry-user.kubeconfig
241 241
 ----
242 242
 ====
243 243
 
... ...
@@ -45,14 +45,14 @@ NOTE: This command is intended to simplify the tasks of setting up a Docker regi
45 45
 	registryExample = `  # Check if default Docker registry ("docker-registry") has been created
46 46
   $ %[1]s %[2]s --dry-run
47 47
 
48
-  # See what the registry would look like if created
49
-  $ %[1]s %[2]s -o json
48
+  # See what the registry will look like if created
49
+  $ %[1]s %[2]s -o json --credentials=/path/to/registry-user.kubeconfig
50 50
 
51 51
   # Create a registry if it does not exist with two replicas
52
-  $ %[1]s %[2]s --replicas=2 --credentials=registry-user.kubeconfig
52
+  $ %[1]s %[2]s --replicas=2 --credentials=/path/to/registry-user.kubeconfig
53 53
 
54 54
   # Use a different registry image and see the registry configuration
55
-  $ %[1]s %[2]s -o yaml --images=myrepo/docker-registry:mytag`
55
+  $ %[1]s %[2]s -o yaml --images=myrepo/docker-registry:mytag --credentials=/path/to/registry-user.kubeconfig`
56 56
 )
57 57
 
58 58
 type RegistryConfig struct {