Difference between revisions of "Template:Type: LoadBalancer official example"

From wikieduonline
Jump to navigation Jump to search
(Created page with " apiVersion: v1 kind: Service metadata: name: my-service spec: selector: app.kubernetes.io/name: MyApp ports: - protocol: TCP port: 80...")
 
Line 12: Line 12:
 
   clusterIP: 10.0.171.239
 
   clusterIP: 10.0.171.239
 
   [[type: LoadBalancer]]
 
   [[type: LoadBalancer]]
  status:
+
  [[status:]]
   loadBalancer:
+
   [[loadBalancer:]]
     ingress:
+
     [[ingress:]]
     - ip: 192.0.2.127
+
     - [[ip:]] 192.0.2.127

Revision as of 14:15, 26 October 2023

apiVersion: v1
kind: Service
metadata:
  name: my-service
spec:
  selector:
    app.kubernetes.io/name: MyApp
  ports:
    - protocol: TCP
      port: 80
      targetPort: 9376
  clusterIP: 10.0.171.239
  type: LoadBalancer
status:
  loadBalancer:
    ingress:
    - ip: 192.0.2.127

Advertising: