Skip to content

Commit

Permalink
consul
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Nov 2, 2017
1 parent ca12921 commit 97f386b
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 65 deletions.
13 changes: 7 additions & 6 deletions docker/shared/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@
},
"dependencies": {
"chairo": "3.0.0",
"github": "9.2.0",
"handlebars": "4.0.6",
"hapi": "16.1.0",
"inert": "4.1.0",
"lru-cache": "4.0.2",
"seneca": "3.4.2",
"seneca-balance-client": "0.6.1",
"seneca-consul-registry": "^0.1.0",
"seneca-entity": "2.0.2",
"seneca-jsonfile-store": "1.0.1",
"seneca-mesh": "0.11.0",
"seneca-redis-transport": "0.3.0",
"seneca-repl": "1.1.2",
"seneca-mesh": "0.11.0",
"seneca-balance-client": "0.6.1",
"seneca-statsd": "0.1.0",
"seneca-zipkin-tracer": "0.2.0",
"trie-prefix-tree": "1.3.0",
"vision": "4.1.1",
"wreck": "10.0.0",
"github": "9.2.0",
"seneca-zipkin-tracer": "0.2.0",
"seneca-statsd": "0.1.0"
"wreck": "10.0.0"
},
"devDependencies": {
"fuge": "^2.0.2",
Expand Down
5 changes: 5 additions & 0 deletions notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ docker service create --name nodezoo_web --network nodezoo_nodezoo --publish 800

# kubernetes

minikube start

minikube ssh


13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@
},
"dependencies": {
"chairo": "3.0.0",
"github": "9.2.0",
"handlebars": "4.0.6",
"hapi": "16.1.0",
"inert": "4.1.0",
"lru-cache": "4.0.2",
"seneca": "3.4.2",
"seneca-balance-client": "0.6.1",
"seneca-consul-registry": "^0.1.0",
"seneca-entity": "2.0.2",
"seneca-jsonfile-store": "1.0.1",
"seneca-mesh": "0.11.0",
"seneca-redis-transport": "0.3.0",
"seneca-repl": "1.1.2",
"seneca-mesh": "0.11.0",
"seneca-balance-client": "0.6.1",
"seneca-statsd": "0.1.0",
"seneca-zipkin-tracer": "0.2.0",
"trie-prefix-tree": "1.3.0",
"vision": "4.1.1",
"wreck": "10.0.0",
"github": "9.2.0",
"seneca-zipkin-tracer": "0.2.0",
"seneca-statsd": "0.1.0"
"wreck": "10.0.0"
},
"devDependencies": {
"fuge": "^2.0.2",
Expand Down
142 changes: 89 additions & 53 deletions prod/nodezoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ spec:
type: NodePort
---

kind: Service
apiVersion: v1
metadata:
name: consul
spec:
ports:
- name: consul
port: 8500
targetPort: 8500
selector:
srv: consul
type: NodePort
---

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
Expand All @@ -54,6 +68,7 @@ spec:
containers:
- name: repl
image: nodezoo-repl-prod:1

---

apiVersion: extensions/v1beta1
Expand Down Expand Up @@ -89,30 +104,27 @@ spec:
containers:
- name: search
image: nodezoo-search-prod:1
env:
- name: BASES
value: "172.17.0.6:39000"
---


apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: suggest
spec:
replicas: 1
template:
metadata:
labels:
srv: suggest
spec:
containers:
- name: suggest
image: nodezoo-suggest-prod:1
env:
- name: BASES
value: "172.17.0.6:39000"
---
# apiVersion: extensions/v1beta1
# kind: Deployment
# metadata:
# name: suggest
# spec:
# replicas: 1
# template:
# metadata:
# labels:
# srv: suggest
# spec:
# containers:
# - name: suggest
# image: nodezoo-suggest-prod:1
# env:
# - name: BASES
# value: "172.17.0.6:39000"
# ---


apiVersion: extensions/v1beta1
Expand Down Expand Up @@ -153,60 +165,84 @@ spec:
value: "172.17.0.6:39000"
---

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: github
spec:
replicas: 1
template:
metadata:
labels:
srv: github
spec:
containers:
- name: github
image: nodezoo-github-prod:1
env:
- name: BASES
value: "172.17.0.6:39000"
---
# apiVersion: extensions/v1beta1
# kind: Deployment
# metadata:
# name: github
# spec:
# replicas: 1
# template:
# metadata:
# labels:
# srv: github
# spec:
# containers:
# - name: github
# image: nodezoo-github-prod:1
# env:
# - name: BASES
# value: "172.17.0.6:39000"
# ---

# apiVersion: extensions/v1beta1
# kind: Deployment
# metadata:
# name: validate
# spec:
# replicas: 1
# template:
# metadata:
# labels:
# srv: validate
# spec:
# containers:
# - name: validate
# image: nodezoo-validate-prod:1
# env:
# - name: BASES
# value: "172.17.0.6:39000"
# ---


apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: validate
name: elastic
spec:
replicas: 1
template:
metadata:
labels:
srv: validate
srv: elastic
spec:
containers:
- name: validate
image: nodezoo-validate-prod:1
- name: elastic
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
env:
- name: BASES
value: "172.17.0.6:39000"
---
- name: "xpack.security.enabled"
value: "false"
initContainers:
- name: init-sysctl
image: busybox
imagePullPolicy: IfNotPresent
command: ["sysctl", "-qw", "vm.max_map_count=262144"]
securityContext:
privileged: true

---

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: elastic
name: consul
spec:
replicas: 1
template:
metadata:
labels:
srv: elastic
srv: consul
spec:
containers:
- name: elastic
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
env:
- name: "XPACK_SECURITY_ENABLED"
value: "false"
- name: consul
image: consul

0 comments on commit 97f386b

Please sign in to comment.