kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/create/create_service.go

// NewCmdCreateService is a macro command to create a new service
func NewCmdCreateService(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {}

type ServiceOptions

// NewServiceOptions creates a ServiceOptions struct
func NewServiceOptions(ioStreams genericiooptions.IOStreams, serviceType corev1.ServiceType) *ServiceOptions {}

// Complete completes all the required options
func (o *ServiceOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {}

// Validate if the options are valid
func (o *ServiceOptions) Validate() error {}

func (o *ServiceOptions) createService() (*corev1.Service, error) {}

// Run the service command
func (o *ServiceOptions) Run() error {}

var serviceClusterIPLong

var serviceClusterIPExample

// NewCmdCreateServiceClusterIP is a command to create a ClusterIP service
func NewCmdCreateServiceClusterIP(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {}

var serviceNodePortLong

var serviceNodePortExample

// NewCmdCreateServiceNodePort is a macro command for creating a NodePort service
func NewCmdCreateServiceNodePort(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {}

var serviceLoadBalancerLong

var serviceLoadBalancerExample

// NewCmdCreateServiceLoadBalancer is a macro command for creating a LoadBalancer service
func NewCmdCreateServiceLoadBalancer(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {}

var serviceExternalNameLong

var serviceExternalNameExample

// NewCmdCreateServiceExternalName is a macro command for creating an ExternalName service
func NewCmdCreateServiceExternalName(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {}

func parsePorts(portString string) (int32, intstr.IntOrString, error) {}