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

NAME

9       kubectl create service loadbalancer - Create a LoadBalancer service
10
11
12

SYNOPSIS

14       kubectl create service loadbalancer [OPTIONS]
15
16
17

DESCRIPTION

19       Create a LoadBalancer service with the specified name.
20
21
22

OPTIONS

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

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

174                # Create a new LoadBalancer service named my-lbs
175                kubectl create service loadbalancer my-lbs --tcp=5678:8080
176
177
178
179

SEE ALSO

181       kubectl-create-service(1),
182
183
184

HISTORY

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