Skip to content

Kubernetes Service protocols

Kubernetes Service protocols define the network protocols used for routing traffic in Kubernetes Services.^[400-devops-06-kubernetes-k8s-ithelp-day7-readme.md]

Supported Protocols

Kubernetes Services currently support three specific protocols^[400-devops-06-kubernetes-k8s-ithelp-day7-readme.md]:

  • TCP
  • UDP
  • SCTP

Configuration

The protocol is specified within the spec.ports section of a Service configuration using the protocol field^[400-devops-06-kubernetes-k8s-ithelp-day7-readme.md].

spec:
  ports:
    - protocol: TCP
      port: 8000
      targetPort: 8080

If no protocol is explicitly defined in the configuration, the system defaults to TCP^[400-devops-06-kubernetes-k8s-ithelp-day7-readme.md].

  • [[Kubernetes Services]]
  • [[LoadBalancer]]
  • [[Pods]]

Sources

^[400-devops-06-kubernetes-k8s-ithelp-day7-readme.md]