Difference between revisions of "Kind: Service"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
[[kind:]] [[Service]] | [[kind:]] [[Service]] | ||
− | Oficial example | + | == Oficial example == |
[[apiVersion: v1]] | [[apiVersion: v1]] | ||
kind: Service | kind: Service | ||
Line 14: | Line 14: | ||
- protocol: TCP | - protocol: TCP | ||
port: 80 | port: 80 | ||
− | targetPort: 9376 | + | [[targetPort:]] 9376 |
Revision as of 06:04, 4 November 2022
kind: Service
Oficial example
apiVersion: v1 kind: Service metadata: name: my-service spec: selector: app: MyApp ports: - protocol: TCP port: 80 targetPort: 9376
kind: StatefulSet
See also
- Kubernetes services,
kubectl get services, kubectl describe service
,kubectl create service
[loadbalancer
|nodeport
|clusterip
|externalname ], kubectl expose
,headless service, service.beta.kubernetes.io
kind:
[Pod | Ingress | ClusterConfiguration
|Config | ConfigMap | ServiceAccount | Deployment | List | Secret | Status ], spec: metadata: data:
Advertising: