Guest User

Untitled

a guest
May 8th, 2019
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data