Skip to content

Instantly share code, notes, and snippets.

@imesh
Created March 26, 2018 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imesh/fd69132673cbab026dab3415983def8c to your computer and use it in GitHub Desktop.
Save imesh/fd69132673cbab026dab3415983def8c to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: wso2apim-load-balancer
labels:
app: wso2apim
pattern: wso2apim-pattern-1
spec:
ports:
-
name: 'servlet-http'
protocol: TCP
port: 80
targetPort: 9763
-
name: 'servlet-https'
protocol: TCP
port: 443
targetPort: 9443
selector:
app: wso2apim
pattern: wso2apim-pattern-1
sessionAffinity: ClientIP
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment