1KUBERNETES(1)(kubernetes)                            KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7

NAME

9       kubectl create serviceaccount - Create a service account with the spec‐
10       ified name
11
12
13

SYNOPSIS

15       kubectl create serviceaccount [OPTIONS]
16
17
18

DESCRIPTION

20       Create a service account with the specified name.
21
22
23

OPTIONS

25       --allow-missing-template-keys=true      If true, ignore any  errors  in
26       templates  when a field or map key is missing in the template. Only ap‐
27       plies to golang and jsonpath output formats.
28
29
30       --dry-run="none"      Must be "none", "server", or "client". If  client
31       strategy, only print the object that would be sent, without sending it.
32       If server strategy, submit server-side request without  persisting  the
33       resource.
34
35
36       --field-manager="kubectl-create"      Name of the manager used to track
37       field ownership.
38
39
40       -o, --output=""      Output format. One of: (json, yaml, name,  go-tem‐
41       plate, go-template-file, template, templatefile, jsonpath, jsonpath-as-
42       json, jsonpath-file).
43
44
45       --save-config=false      If true, the configuration of  current  object
46       will  be saved in its annotation. Otherwise, the annotation will be un‐
47       changed. This flag is useful when you want to perform kubectl apply  on
48       this object in the future.
49
50
51       --show-managed-fields=false       If  true, keep the managedFields when
52       printing objects in JSON or YAML format.
53
54
55       --template=""      Template string or path to template file to use when
56       -o=go-template, -o=go-template-file. The template format is golang tem‐
57       plates [http://golang.org/pkg/text/template/#pkg-overview].
58
59
60       --validate="strict"      Must be one of: strict (or true), warn, ignore
61       (or false).            "true" or "strict" will use a schema to validate
62       the input and fail the request if invalid. It will perform server  side
63       validation  if  ServerSideFieldValidation is enabled on the api-server,
64       but will fall back to less  reliable  client-side  validation  if  not.
65                 "warn"  will  warn  about unknown or duplicate fields without
66       blocking the request if server-side field validation is enabled on  the
67       API  server,  and  behave  as "ignore" otherwise.            "false" or
68       "ignore" will not perform any schema validation, silently dropping  any
69       unknown or duplicate fields.
70
71
72

OPTIONS INHERITED FROM PARENT COMMANDS

74       --as=""      Username to impersonate for the operation. User could be a
75       regular user or a service account in a namespace.
76
77
78       --as-group=[]      Group to impersonate for the  operation,  this  flag
79       can be repeated to specify multiple groups.
80
81
82       --as-uid=""      UID to impersonate for the operation.
83
84
85       --azure-container-registry-config=""       Path  to the file containing
86       Azure container registry configuration information.
87
88
89       --cache-dir="/builddir/.kube/cache"      Default cache directory
90
91
92       --certificate-authority=""      Path to a cert file for the certificate
93       authority
94
95
96       --client-certificate=""      Path to a client certificate file for TLS
97
98
99       --client-key=""      Path to a client key file for TLS
100
101
102       --cluster=""      The name of the kubeconfig cluster to use
103
104
105       --context=""      The name of the kubeconfig context to use
106
107
108       --disable-compression=false       If true, opt-out of response compres‐
109       sion for all requests to the server
110
111
112       --insecure-skip-tls-verify=false      If true, the server's certificate
113       will not be checked for validity. This will make your HTTPS connections
114       insecure
115
116
117       --kubeconfig=""      Path to the kubeconfig file to  use  for  CLI  re‐
118       quests.
119
120
121       --match-server-version=false        Require  server  version  to  match
122       client version
123
124
125       -n, --namespace=""      If present, the namespace scope  for  this  CLI
126       request
127
128
129       --password=""      Password for basic authentication to the API server
130
131
132       --profile="none"         Name   of   profile   to   capture.   One   of
133       (none|cpu|heap|goroutine|threadcreate|block|mutex)
134
135
136       --profile-output="profile.pprof"      Name of the  file  to  write  the
137       profile to
138
139
140       --request-timeout="0"       The length of time to wait before giving up
141       on a single server request. Non-zero values  should  contain  a  corre‐
142       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
143       out requests.
144
145
146       -s, --server=""      The address and port of the Kubernetes API server
147
148
149       --tls-server-name=""      Server name to  use  for  server  certificate
150       validation.  If  it  is  not provided, the hostname used to contact the
151       server is used
152
153
154       --token=""      Bearer token for authentication to the API server
155
156
157       --user=""      The name of the kubeconfig user to use
158
159
160       --username=""      Username for basic authentication to the API server
161
162
163       --version=false      Print version information and quit
164
165
166       --warnings-as-errors=false      Treat warnings received from the server
167       as errors and exit with a non-zero exit code
168
169
170

EXAMPLE

172                # Create a new service account named my-service-account
173                kubectl create serviceaccount my-service-account
174
175
176
177

SEE ALSO

179       kubectl-create(1),
180
181
182

HISTORY

184       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
185       com) based on the kubernetes source material, but hopefully  they  have
186       been automatically generated since!
187
188
189
190Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum