Skip to content

Instantly share code, notes, and snippets.

@jinnabaalu
Created February 22, 2019 04:50
Show Gist options
  • Save jinnabaalu/607e134c15cf6f3a66bc4e74074c33ab to your computer and use it in GitHub Desktop.
Save jinnabaalu/607e134c15cf6f3a66bc4e74074c33ab to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1
metadata:
name: zoo1
spec:
type: LoadBalancer
ports:
- name: port-2181
port: 2181
protocol: TCP
- name: port-2888
port: 2888
protocol: TCP
- name: port-3888
port: 3888
protocol: TCP
selector:
app: zookeeper1
---
kind: Service
apiVersion: v1
metadata:
name: zoo2
spec:
type: LoadBalancer
ports:
- name: port-2181
port: 2181
protocol: TCP
- name: port-2888
port: 2888
protocol: TCP
- name: port-3888
port: 3888
protocol: TCP
selector:
app: zookeeper2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment