diff --git a/docker/shared/app/package.json b/docker/shared/app/package.json index 0713167..4cfffbd 100644 --- a/docker/shared/app/package.json +++ b/docker/shared/app/package.json @@ -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", diff --git a/notes.txt b/notes.txt index 1975064..6b74441 100644 --- a/notes.txt +++ b/notes.txt @@ -51,3 +51,8 @@ docker service create --name nodezoo_web --network nodezoo_nodezoo --publish 800 # kubernetes +minikube start + +minikube ssh + + diff --git a/package.json b/package.json index 0713167..4cfffbd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/prod/nodezoo.yml b/prod/nodezoo.yml index 26a036a..1c88fec 100644 --- a/prod/nodezoo.yml +++ b/prod/nodezoo.yml @@ -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: @@ -54,6 +68,7 @@ spec: containers: - name: repl image: nodezoo-repl-prod:1 + --- apiVersion: extensions/v1beta1 @@ -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 @@ -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