Skip to content

Instantly share code, notes, and snippets.

@SaifRehman
Created April 3, 2018 12:51
Show Gist options
  • Save SaifRehman/e950fcf7d195d31cdde04769c75c4011 to your computer and use it in GitHub Desktop.
Save SaifRehman/e950fcf7d195d31cdde04769c75c4011 to your computer and use it in GitHub Desktop.
service-deployment.yml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: tendermintnodeone # give any name
spec:
replicas: 1
template:
metadata:
name: tendermintnodeone
labels:
run: tendermint1
spec:
containers:
- name: saif1cluster
image: "registry.<region-short-term>.bluemix.net/<namespace>/node1" # your registery name
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: my-service-tendermint-11 # give a service name
labels:
run: tendermint1
spec:
type: NodePort
selector:
run: tendermint1
ports:
- protocol: TCP
name: tendermint1
port: 30090 # it shall be 8545 and no other port !!!!!
nodePort: 30090 # Give a port to access the application publically
- protocol: TCP
name: port
port: 30092 # it shall be 8545 and no other port !!!!!
nodePort: 30092 # Give a port to access the application publically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment