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

NAME

9       kubectl create service externalname - Create an ExternalName service
10
11
12

SYNOPSIS

14       kubectl create service externalname [OPTIONS]
15
16
17

DESCRIPTION

19       Create an ExternalName service with the specified name.
20
21
22       ExternalName  service  references to an external DNS address instead of
23       only pods, which will allow application authors to  reference  services
24       that exist off platform, on other clusters, or locally.
25
26
27

OPTIONS

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

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

182                # Create a new ExternalName service named my-ns
183                kubectl create service externalname my-ns --external-name bar.com
184
185
186
187

SEE ALSO

189       kubectl-create-service(1),
190
191
192

HISTORY

194       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
195       com)  based  on the kubernetes source material, but hopefully they have
196       been automatically generated since!
197
198
199
200Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum