Advertisement
Guest User

Untitled

a guest
May 8th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.75 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4.   # The name must be equal to TcpDiscoveryKubernetesIpFinder.serviceName
  5.   name: ignite
  6.   annotations:
  7.     service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
  8.   # The name must be equal to TcpDiscoveryKubernetesIpFinder.namespaceName
  9.   namespace: ignite
  10. spec:
  11.   type: LoadBalancer
  12.   ports:
  13.     - name: rest
  14.       port: 8080
  15.       targetPort: 8080
  16.     - name: sql
  17.       port: 10800
  18.       targetPort: 10800
  19.     - name: thinclients
  20.       port: 10900
  21.       targetPort: 10900
  22.   # Optional - remove 'sessionAffinity' property if the Ignite cluster
  23.   # and applications deployed within Kubernetes
  24.   sessionAffinity: ClientIP  
  25.   selector:
  26.    # Must be equal to the label set for Ignite pods.
  27.     app: ignite
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement