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

EXAMPLE

337                # Create a new service account named my-service-account
338                kubectl create serviceaccount my-service-account
339
340
341
342

SEE ALSO

344       kubectl-create(1),
345
346
347

HISTORY

349       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
350       com)  based  on the kubernetes source material, but hopefully they have
351       been automatically generated since!
352
353
354
355Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum