Difference between revisions of "Kubectl create service"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(12 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-em-
 
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-em-
  
  kubectl create service
+
  [[kubectl create service loadbalancer]]
 +
[[kubectl create service clusterip]]
 +
[[kubectl create service nodeport]]
 +
[[kubectl create service externalname]]
 +
 
 +
 
 +
[[kubectl create]] service
 
  Create a service using a specified subcommand.
 
  Create a service using a specified subcommand.
 
   
 
   
Line 13: Line 19:
 
   [[loadbalancer]] Create a LoadBalancer service
 
   [[loadbalancer]] Create a LoadBalancer service
 
   [[nodeport]]    Create a NodePort service
 
   [[nodeport]]    Create a NodePort service
 
+
 
Usage:
+
Usage:
 
   kubectl create service [flags] [options]
 
   kubectl create service [flags] [options]
 
+
 
Use "kubectl <command> --help" for more information about a given command.
+
Use "kubectl <command> --help" for more information about a given command.
Use "kubectl options" for a list of global command-line options (applies to all commands).
+
Use "kubectl options" for a list of global command-line options (applies to all commands).
  
 
== Related ==
 
== Related ==
Line 24: Line 30:
 
* <code>[[kubectl create loadbalancer]]</code>
 
* <code>[[kubectl create loadbalancer]]</code>
 
* <code>[[kubectl create nodeport]]</code>
 
* <code>[[kubectl create nodeport]]</code>
 +
* <code>[[kubectl create externalname]]</code>
 +
* [[Kubernetes ServiceTypes]]
 +
* <code>[[kubectl expose]]</code>
 +
 +
== Activities ==
 +
* [[CKA]]: [[Understand ClusterIP, NodePort, LoadBalancer service types and endpoints]]
  
 
== See also ==
 
== See also ==
 +
* {{kubectl create service}}
 
* {{Kubernetes services}}
 
* {{Kubernetes services}}
 +
* {{kubectl create}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 09:53, 31 March 2023

https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-em-

kubectl create service loadbalancer
kubectl create service clusterip
kubectl create service nodeport
kubectl create service externalname


kubectl create service
Create a service using a specified subcommand.

Aliases:
service, svc

Available Commands:
  clusterip    Create a ClusterIP service
  externalname Create an ExternalName service
  loadbalancer Create a LoadBalancer service
  nodeport     Create a NodePort service
 
Usage:
 kubectl create service [flags] [options]
 
Use "kubectl <command> --help" for more information about a given command.
Use "kubectl options" for a list of global command-line options (applies to all commands).

Related[edit]

Activities[edit]

See also[edit]

Advertising: