Difference between revisions of "Kind: Service"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
* https://kubernetes.io/docs/concepts/services-networking/service/
 
* https://kubernetes.io/docs/concepts/services-networking/service/
 
  [[kind:]] [[Service]]
 
  [[kind:]] [[Service]]
<pre>
+
 
apiVersion: v1
+
Oficial example:
kind: Service
+
[[apiVersion]]: v1
metadata:
+
kind: Service
  name: my-service
+
metadata:
spec:
+
  name: my-service
  selector:
+
spec:
    app: MyApp
+
  selector:
  ports:
+
    app: MyApp
    - protocol: TCP
+
  ports:
      port: 80
+
    - protocol: TCP
      targetPort: 9376
+
      port: 80
</pre>
+
      targetPort: 9376
  
  

Revision as of 10:09, 3 June 2022

Advertising: