Kubernetes Service Manifest: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
* [[Kubernetes_Service_Concepts#Service_Manifest|Service Concepts]] | * [[Kubernetes_Service_Concepts#Service_Manifest|Service Concepts]] | ||
=Example= | |||
=Example= | |||
[[Kubernetes_Manifests#apiVersion|apiVersion]]: v1 | |||
[[Kubernetes_Manifests#kind|kind]]: Service | |||
[[Kubernetes_Manifest_Metadata#Overview|metadata]]: | |||
[[Kubernetes_Manifest_Metadata#name|name]]: blue | |||
[[Kubernetes_Manifest_Metadata#labels|labels]]: | |||
size: large | |||
[[Kubernetes_Manifests#spec|spec]]: | |||
type: ClusterIP | |||
selector: | |||
app: blue # Label selector, the service is looking for pods with the label "app=blue" | |||
ports: | |||
- port: 8080 | |||
targetPort: | |||
protocol: TP |