1OC ADM CA(1) June 2016 OC ADM CA(1)
2
3
4
6 oc adm ca create-key-pair - Create a public/private key pair
7
8
9
11 oc adm ca create-key-pair [OPTIONS]
12
13
14
16 Create an RSA key pair and generate PEM-encoded public/private key
17 files
18
19
20 Example: Creating service account signing and authenticating key files:
21
22
23 CONFIG=openshift.local.config/master
24 oc adm ca create-key-pair --public-key=$CONFIG/serviceaccounts.pub‐
25 lic.key --private-key=$CONFIG/serviceaccounts.private.key
26
27
28
30 --overwrite=false
31 Overwrite existing key files if found. If false, either file exist‐
32 ing will prevent creation.
33
34
35 --private-key=""
36 The private key file.
37
38
39 --public-key=""
40 The public key file.
41
42
43
45 --allow_verification_with_non_compliant_keys=false
46 Allow a SignatureVerifier to use keys which are technically
47 non-compliant with RFC6962.
48
49
50 --alsologtostderr=false
51 log to standard error as well as files
52
53
54 --application_metrics_count_limit=100
55 Max number of application metrics to store (per container)
56
57
58 --as=""
59 Username to impersonate for the operation
60
61
62 --as-group=[]
63 Group to impersonate for the operation, this flag can be repeated
64 to specify multiple groups.
65
66
67 --azure-container-registry-config=""
68 Path to the file containing Azure container registry configuration
69 information.
70
71
72 --boot_id_file="/proc/sys/kernel/random/boot_id"
73 Comma-separated list of files to check for boot-id. Use the first
74 one that exists.
75
76
77 --cache-dir="/builddir/.kube/http-cache"
78 Default HTTP cache directory
79
80
81 --certificate-authority=""
82 Path to a cert file for the certificate authority
83
84
85 --client-certificate=""
86 Path to a client certificate file for TLS
87
88
89 --client-key=""
90 Path to a client key file for TLS
91
92
93 --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
94 CIDRs opened in GCE firewall for LB traffic proxy health checks
95
96
97 --cluster=""
98 The name of the kubeconfig cluster to use
99
100
101 --container_hints="/etc/cadvisor/container_hints.json"
102 location of the container hints file
103
104
105 --containerd="unix:///var/run/containerd.sock"
106 containerd endpoint
107
108
109 --context=""
110 The name of the kubeconfig context to use
111
112
113 --default-not-ready-toleration-seconds=300
114 Indicates the tolerationSeconds of the toleration for
115 notReady:NoExecute that is added by default to every pod that does not
116 already have such a toleration.
117
118
119 --default-unreachable-toleration-seconds=300
120 Indicates the tolerationSeconds of the toleration for unreach‐
121 able:NoExecute that is added by default to every pod that does not
122 already have such a toleration.
123
124
125 --docker="unix:///var/run/docker.sock"
126 docker endpoint
127
128
129 --docker-tls=false
130 use TLS to connect to docker
131
132
133 --docker-tls-ca="ca.pem"
134 path to trusted CA
135
136
137 --docker-tls-cert="cert.pem"
138 path to client certificate
139
140
141 --docker-tls-key="key.pem"
142 path to private key
143
144
145 --docker_env_metadata_whitelist=""
146 a comma-separated list of environment variable keys that needs to
147 be collected for docker containers
148
149
150 --docker_only=false
151 Only report docker containers in addition to root stats
152
153
154 --docker_root="/var/lib/docker"
155 DEPRECATED: docker root is read from docker info (this is a fall‐
156 back, default: /var/lib/docker)
157
158
159 --enable_load_reader=false
160 Whether to enable cpu load reader
161
162
163 --event_storage_age_limit="default=24h"
164 Max length of time for which to store events (per type). Value is a
165 comma separated list of key values, where the keys are event types
166 (e.g.: creation, oom) or "default" and the value is a duration. Default
167 is applied to all non-specified event types
168
169
170 --event_storage_event_limit="default=100000"
171 Max number of events to store (per type). Value is a comma sepa‐
172 rated list of key values, where the keys are event types (e.g.: cre‐
173 ation, oom) or "default" and the value is an integer. Default is
174 applied to all non-specified event types
175
176
177 --global_housekeeping_interval=0
178 Interval between global housekeepings
179
180
181 --housekeeping_interval=0
182 Interval between container housekeepings
183
184
185 --insecure-skip-tls-verify=false
186 If true, the server's certificate will not be checked for validity.
187 This will make your HTTPS connections insecure
188
189
190 --kubeconfig=""
191 Path to the kubeconfig file to use for CLI requests.
192
193
194 --log-flush-frequency=0
195 Maximum number of seconds between log flushes
196
197
198 --log_backtrace_at=:0
199 when logging hits line file:N, emit a stack trace
200
201
202 --log_cadvisor_usage=false
203 Whether to log the usage of the cAdvisor container
204
205
206 --log_dir=""
207 If non-empty, write log files in this directory
208
209
210 --logtostderr=true
211 log to standard error instead of files
212
213
214 --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
215 Comma-separated list of files to check for machine-id. Use the
216 first one that exists.
217
218
219 --match-server-version=false
220 Require server version to match client version
221
222
223 -n, --namespace=""
224 If present, the namespace scope for this CLI request
225
226
227 --request-timeout="0"
228 The length of time to wait before giving up on a single server
229 request. Non-zero values should contain a corresponding time unit (e.g.
230 1s, 2m, 3h). A value of zero means don't timeout requests.
231
232
233 -s, --server=""
234 The address and port of the Kubernetes API server
235
236
237 --stderrthreshold=2
238 logs at or above this threshold go to stderr
239
240
241 --storage_driver_buffer_duration=0
242 Writes in the storage driver will be buffered for this duration,
243 and committed to the non memory backends as a single transaction
244
245
246 --storage_driver_db="cadvisor"
247 database name
248
249
250 --storage_driver_host="localhost:8086"
251 database host:port
252
253
254 --storage_driver_password="root"
255 database password
256
257
258 --storage_driver_secure=false
259 use secure connection with database
260
261
262 --storage_driver_table="stats"
263 table name
264
265
266 --storage_driver_user="root"
267 database username
268
269
270 --token=""
271 Bearer token for authentication to the API server
272
273
274 --user=""
275 The name of the kubeconfig user to use
276
277
278 -v, --v=0
279 log level for V logs
280
281
282 --version=false
283 Print version information and quit
284
285
286 --vmodule=
287 comma-separated list of pattern=N settings for file-filtered log‐
288 ging
289
290
291
293 oc-adm-ca(1),
294
295
296
298 June 2016, Ported from the Kubernetes man-doc generator
299
300
301
302Openshift Openshift CLI User Manuals OC ADM CA(1)