1KUBERNETES(1)                      Jan 2015                      KUBERNETES(1)
2
3
4

NAME

6       kubectl create serviceaccount - Create a service account with the spec‐
7       ified name
8
9
10

SYNOPSIS

12       kubectl create serviceaccount [OPTIONS]
13
14
15

DESCRIPTION

17       Create a service account with the specified name.
18
19
20

OPTIONS

22       --allow-missing-template-keys=true
23           If true, ignore any errors in templates when a field or map key  is
24       missing  in  the  template.  Only applies to golang and jsonpath output
25       formats.
26
27
28       --dry-run=false
29           If true, only print the object that would be sent, without  sending
30       it.
31
32
33       --generator="serviceaccount/v1"
34           The name of the API generator to use.
35
36
37       -o, --output=""
38           Output  format. One of: json|yaml|name|template|go-template|go-tem‐
39       plate-file|templatefile|jsonpath|jsonpath-file.
40
41
42       --save-config=false
43           If true, the configuration of current object will be saved  in  its
44       annotation.  Otherwise,  the annotation will be unchanged. This flag is
45       useful when you want to perform kubectl apply on  this  object  in  the
46       future.
47
48
49       --template=""
50           Template  string  or  path  to template file to use when -o=go-tem‐
51       plate, -o=go-template-file. The template format is golang  templates  [
52http://golang.org/pkg/text/template/#pkg-overview⟩].
53
54
55       --validate=true
56           If true, use a schema to validate the input before sending it
57
58
59

OPTIONS INHERITED FROM PARENT COMMANDS

61       --allow-verification-with-non-compliant-keys=false
62           Allow  a  SignatureVerifier  to  use  keys  which  are  technically
63       non-compliant with RFC6962.
64
65
66       --alsologtostderr=false
67           log to standard error as well as files
68
69
70       --application-metrics-count-limit=100
71           Max number of application metrics to store (per container)
72
73
74       --as=""
75           Username to impersonate for the operation
76
77
78       --as-group=[]
79           Group to impersonate for the operation, this flag can  be  repeated
80       to specify multiple groups.
81
82
83       --azure-container-registry-config=""
84           Path  to the file containing Azure container registry configuration
85       information.
86
87
88       --boot-id-file="/proc/sys/kernel/random/boot_id"
89           Comma-separated list of files to check for boot-id. Use  the  first
90       one that exists.
91
92
93       --cache-dir="/builddir/.kube/http-cache"
94           Default HTTP cache directory
95
96
97       --certificate-authority=""
98           Path to a cert file for the certificate authority
99
100
101       --client-certificate=""
102           Path to a client certificate file for TLS
103
104
105       --client-key=""
106           Path to a client key file for TLS
107
108
109       --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
110           CIDRs opened in GCE firewall for LB traffic proxy  health checks
111
112
113       --cluster=""
114           The name of the kubeconfig cluster to use
115
116
117       --container-hints="/etc/cadvisor/container_hints.json"
118           location of the container hints file
119
120
121       --containerd="unix:///var/run/containerd.sock"
122           containerd endpoint
123
124
125       --context=""
126           The name of the kubeconfig context to use
127
128
129       --default-not-ready-toleration-seconds=300
130           Indicates   the   tolerationSeconds   of   the    toleration    for
131       notReady:NoExecute  that is added by default to every pod that does not
132       already have such a toleration.
133
134
135       --default-unreachable-toleration-seconds=300
136           Indicates the tolerationSeconds  of  the  toleration  for  unreach‐
137       able:NoExecute  that  is  added  by  default to every pod that does not
138       already have such a toleration.
139
140
141       --docker="unix:///var/run/docker.sock"
142           docker endpoint
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       --docker-tls=false
160           use TLS to connect to docker
161
162
163       --docker-tls-ca="ca.pem"
164           path to trusted CA
165
166
167       --docker-tls-cert="cert.pem"
168           path to client certificate
169
170
171       --docker-tls-key="key.pem"
172           path to private key
173
174
175       --enable-load-reader=false
176           Whether to enable cpu load reader
177
178
179       --event-storage-age-limit="default=0"
180           Max length of time for which to store events (per type). Value is a
181       comma  separated  list  of  key  values, where the keys are event types
182       (e.g.: creation, oom) or "default" and the value is a duration. Default
183       is applied to all non-specified event types
184
185
186       --event-storage-event-limit="default=0"
187           Max  number  of  events to store (per type). Value is a comma sepa‐
188       rated list of key values, where the keys are event  types  (e.g.:  cre‐
189       ation,  oom)  or  "default"  and  the  value  is an integer. Default is
190       applied to all non-specified event types
191
192
193       --global-housekeeping-interval=1m0s
194           Interval between global housekeepings
195
196
197       --google-json-key=""
198           The Google Cloud Platform Service  Account  JSON  Key  to  use  for
199       authentication.
200
201
202       --housekeeping-interval=10s
203           Interval between container housekeepings
204
205
206       --insecure-skip-tls-verify=false
207           If true, the server's certificate will not be checked for validity.
208       This will make your HTTPS connections insecure
209
210
211       --kubeconfig=""
212           Path to the kubeconfig file to use for CLI requests.
213
214
215       --log-backtrace-at=:0
216           when logging hits line file:N, emit a stack trace
217
218
219       --log-cadvisor-usage=false
220           Whether to log the usage of the cAdvisor container
221
222
223       --log-dir=""
224           If non-empty, write log files in this directory
225
226
227       --log-flush-frequency=5s
228           Maximum number of seconds between log flushes
229
230
231       --logtostderr=true
232           log to standard error instead of files
233
234
235       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
236           Comma-separated list of files to  check  for  machine-id.  Use  the
237       first one that exists.
238
239
240       --match-server-version=false
241           Require server version to match client version
242
243
244       --mesos-agent="127.0.0.1:5051"
245           Mesos agent address
246
247
248       --mesos-agent-timeout=10s
249           Mesos agent timeout
250
251
252       -n, --namespace=""
253           If present, the namespace scope for this CLI request
254
255
256       --request-timeout="0"
257           The  length  of  time  to  wait before giving up on a single server
258       request. Non-zero values should contain a corresponding time unit (e.g.
259       1s, 2m, 3h). A value of zero means don't timeout requests.
260
261
262       -s, --server=""
263           The address and port of the Kubernetes API server
264
265
266       --stderrthreshold=2
267           logs at or above this threshold go to stderr
268
269
270       --storage-driver-buffer-duration=1m0s
271           Writes  in  the  storage driver will be buffered for this duration,
272       and committed to the non memory backends as a single transaction
273
274
275       --storage-driver-db="cadvisor"
276           database name
277
278
279       --storage-driver-host="localhost:8086"
280           database host:port
281
282
283       --storage-driver-password="root"
284           database password
285
286
287       --storage-driver-secure=false
288           use secure connection with database
289
290
291       --storage-driver-table="stats"
292           table name
293
294
295       --storage-driver-user="root"
296           database username
297
298
299       --token=""
300           Bearer token for authentication to the API server
301
302
303       --user=""
304           The name of the kubeconfig user to use
305
306
307       -v, --v=0
308           log level for V logs
309
310
311       --version=false
312           Print version information and quit
313
314
315       --vmodule=
316           comma-separated list of pattern=N settings for  file-filtered  log‐
317       ging
318
319
320

EXAMPLE

322                # Create a new service account named my-service-account
323                kubectl create serviceaccount my-service-account
324
325
326
327

SEE ALSO

329       kubectl-create(1),
330
331
332

HISTORY

334       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
335       com) based on the kubernetes source material, but hopefully  they  have
336       been automatically generated since!
337
338
339
340Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum