Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit 2e9d72f

Browse files
authored
Merge branch 'master' into maintainers
2 parents 686e99e + 12c63da commit 2e9d72f

12 files changed

Lines changed: 69 additions & 30 deletions

File tree

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,8 @@ In addition, Proxy and WebApp complete the core microservices
3333

3434
To deploy the game locally, follow the instructions via docker-compose in GameOn repository [here](https://github.com/gameontext/gameon#local-room-development).
3535

36-
To follow the steps here, create a Kubernetes cluster with [IBM Bluemix Container Service](https://github.com/IBM/container-journey-template) to deploy in cloud. The code here is regularly tested against [Kubernetes Cluster from Bluemix Container Service](https://console.ng.bluemix.net/docs/containers/cs_ov.html#cs_ov) using Travis.
36+
To follow the steps here, create a Kubernetes cluster with either [Minikube](https://kubernetes.io/docs/getting-started-guides/minikube) for local testing, with [IBM Cloud Private](https://github.com/IBM/deploy-ibm-cloud-private/blob/master/README.md), or with [IBM Bluemix Container Service](https://github.com/IBM/container-journey-template/blob/master/README.md) to deploy in cloud. The code here is regularly tested against [Kubernetes Cluster from Bluemix Container Service](https://console.ng.bluemix.net/docs/containers/cs_ov.html#cs_ov) using Travis.
3737

38-
## Deploy to Kubernetes Cluster on Bluemix
39-
If you want to deploy GameOn! directly to Bluemix, click on 'Deploy to Bluemix' button below to create a Bluemix DevOps service toolchain and pipeline for deploying the sample, else jump to [Steps](#steps)
40-
41-
> You will need to create your Kubernetes cluster first and make sure it is fully deployed in your Bluemix account.
42-
43-
[![Create Toolchain](https://github.com/IBM/container-journey-template/blob/master/images/button.png)](https://console.ng.bluemix.net/devops/setup/deploy/?repository=https://github.com/IBM/GameOn-Java-Microservices-on-Kubernetes)
44-
45-
Please follow the [Toolchain instructions](https://github.com/IBM/container-journey-template/blob/master/Toolchain_Instructions_new.md) to complete your toolchain and pipeline.
4638

4739
## Steps
4840
1. [Modify the Core services yaml files](#1-modify-the-core-services-yaml-files)
@@ -271,6 +263,22 @@ To register the deployed rooms in the cluster, you will need to use the UI of yo
271263
* `kubectl delete pv local-volume-1`
272264
* `kubectl delete -f gameon-configmap.yaml`
273265

266+
# Privacy Notice
267+
268+
Sample Kubernetes Yaml file that includes this package may be configured to track deployments to [IBM Cloud](https://www.bluemix.net/) and other Kubernetes platforms. The following information is sent to a [Deployment Tracker](https://github.com/IBM/metrics-collector-service) service on each deployment:
269+
270+
* Kubernetes Cluster Provider(`IBM Cloud,Minikube,etc`)
271+
* Kubernetes Machine ID
272+
* Kubernetes Cluster ID (Only from IBM Cloud's cluster)
273+
* Kubernetes Customer ID (Only from IBM Cloud's cluster)
274+
* Environment variables in this Kubernetes Job.
275+
276+
This data is collected from the Kubernetes Job in the sample application's yaml file. This data is used by IBM to track metrics around deployments of sample applications to IBM Cloud to measure the usefulness of our examples so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.
277+
278+
## Disabling Deployment Tracking
279+
280+
Please comment out/remove the Metric Kubernetes Job portion at the end of the 'gameon-configmap.yaml' file.
281+
274282
## References
275283

276284
* [GameOn](https://gameontext.org) - The original game on app. The journey is based on [deploying GameOn using Docker](https://book.gameontext.org/walkthroughs/local-docker.html)

containers/gameon-proxy/haproxy-dev.cfg

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ frontend logstash-lumberjack
3434
default_backend logstash-lumberjack
3535

3636
frontend frontend-ssl
37-
bind *:443 ssl crt /keystore/proxy.pem
37+
bind *:443 ssl crt /etc/ssl/proxy.pem
3838
mode http
3939
option httplog
4040

@@ -94,7 +94,7 @@ backend room
9494
option httplog
9595
option httpchk HEAD / HTTP/1.1\r\nHost:localhost
9696
balance roundrobin
97-
server room1 PLACEHOLDER_DOCKERHOST:30980 check
97+
server room1 room:9080 check
9898

9999
backend roomjs
100100
mode http
@@ -107,33 +107,33 @@ backend map
107107
option httplog
108108
option httpchk GET /map/v1/health HTTP/1.1\r\nHost:localhost
109109
balance roundrobin
110-
server map1 PLACEHOLDER_DOCKERHOST:30947 ssl check check-ssl verify none
110+
server map1 map:9443 ssl check check-ssl verify none
111111

112112
backend mediator
113113
mode http
114114
option httplog
115115
balance roundrobin
116-
server mediator1 PLACEHOLDER_DOCKERHOST:30946 ssl check check-ssl verify none
116+
server mediator1 mediator:9443 ssl check check-ssl verify none
117117

118118
backend auth
119119
mode http
120120
option httplog
121121
option httpchk GET /auth/health HTTP/1.1\r\nHost:localhost
122122
balance roundrobin
123-
server auth1 PLACEHOLDER_DOCKERHOST:30949 ssl check check-ssl verify none
123+
server auth1 auth:9443 ssl check check-ssl verify none
124124

125125
backend player
126126
mode http
127127
option httplog
128128
balance roundrobin
129-
server player1 PLACEHOLDER_DOCKERHOST:30943 ssl check check-ssl verify none
129+
server player1 player:9443 ssl check check-ssl verify none
130130

131131
backend static-content
132132
mode http
133133
option httpchk HEAD / HTTP/1.1\r\nHost:localhost
134134
option httplog
135135
balance roundrobin
136-
server webapp1 PLACEHOLDER_DOCKERHOST:30880 check inter 1m
136+
server webapp1 webapp:8080 check inter 1m
137137

138138
backend logstash-lumberjack
139139
mode tcp

containers/gameon-proxy/startup.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,23 @@ if [ "$ETCDCTL_ENDPOINT" != "" ]; then
4646
export A8_CONTROLLER_POLL=$(etcdctl get /amalgam8/controllerPoll)
4747
JWT=$(etcdctl get /amalgam8/jwt)
4848

49-
sudo service rsyslog start
49+
sudo service rsyslog start
5050

5151
echo Starting haproxy...
52-
if [ -z "$A8_REGISTRY_URL" ]; then
52+
if [ -z "$A8_REGISTRY_URL" ]; then
5353
#no a8, just run haproxy.
5454
haproxy -f $PROXY_CONFIG
5555
else
5656
#a8, configure security, and run via sidecar.
57-
if [ ! -z "$JWT" ]; then
57+
if [ ! -z "$JWT" ]; then
5858
export A8_REGISTRY_TOKEN=$JWT
5959
export A8_CONTROLLER_TOKEN=$JWT
60-
fi
60+
fi
6161
exec a8sidecar --proxy haproxy -f $PROXY_CONFIG
62-
fi
62+
fi
6363
echo HAProxy shut down
6464
else
6565
echo HAProxy will log to STDOUT--this is dev environment.
6666
sed -i s/PLACEHOLDER_PASSWORD/$ADMIN_PASSWORD/g /etc/haproxy/haproxy-dev.cfg
67-
sed -i s/PLACEHOLDER_DOCKERHOST/$PROXY_DOCKER_HOST/g /etc/haproxy/haproxy-dev.cfg
6867
exec a8sidecar --proxy haproxy -f /etc/haproxy/haproxy-dev.cfg
6968
fi

core/auth.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ spec:
3737
tier: auth
3838
spec:
3939
containers:
40-
- image: gameontext/gameon-auth
40+
- image: anthonyamanse/gameon-auth:latest
41+
imagePullPolicy: Always
4142
name: auth
4243
env:
4344
- name: service_map

core/map.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ spec:
3737
tier: map
3838
spec:
3939
containers:
40-
- image: gameontext/gameon-map
40+
- image: anthonyamanse/gameon-map:latest
41+
imagePullPolicy: Always
4142
name: map
4243
env:
4344
- name: service_map

core/mediator.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ spec:
3737
tier: mediator
3838
spec:
3939
containers:
40-
- image: gameontext/gameon-mediator
40+
- image: anthonyamanse/gameon-mediator:latest
41+
imagePullPolicy: Always
4142
name: mediator
4243
env:
4344
- name: service_map

core/player.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ spec:
4242
tier: player
4343
spec:
4444
containers:
45-
- image: gameontext/gameon-player
45+
- image: anthonyamanse/gameon-player:latest
46+
imagePullPolicy: Always
4647
name: player
4748
env:
4849
- name: service_map

core/proxy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ spec:
4242
tier: proxy
4343
spec:
4444
containers:
45-
- image: anthonyamanse/gameon-proxy
45+
- image: anthonyamanse/gameon-proxy:0.1
46+
imagePullPolicy: Always
4647
name: proxy
4748
env:
4849
- name: service_map

core/room.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ spec:
3737
tier: room
3838
spec:
3939
containers:
40-
- image: gameontext/gameon-room
40+
- image: anthonyamanse/gameon-room:latest
41+
imagePullPolicy: Always
4142
name: room
4243
env:
4344
- name: service_map

core/webapp.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ spec:
3232
tier: webapp
3333
spec:
3434
containers:
35-
- image: gameontext/gameon-webapp
35+
- image: anthonyamanse/gameon-webapp:latest
36+
imagePullPolicy: Always
3637
name: webapp
3738
env:
3839
- name: service_map

0 commit comments

Comments
 (0)