Created
April 3, 2018 12:51
-
-
Save SaifRehman/e950fcf7d195d31cdde04769c75c4011 to your computer and use it in GitHub Desktop.
service-deployment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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