Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
old removed some un-needed ENVs in prometheus directory Aug 2, 2018
prometheus corrected all files with new django image Aug 12, 2018
rds
wavefront added heapster Aug 23, 2018
README.md fixed some of the api yamls May 24, 2018
api-server-local-deployment.yaml made mods for scripts Aug 20, 2018
api-server-local-service.yaml made mods for scripts Aug 20, 2018
api-server-local-total.yaml made mods for scripts Aug 20, 2018
app-ingress.yaml made mods for scripts Aug 20, 2018
fitcycle-percona-dcnf.yaml made mods for scripts Aug 20, 2018
fitcycle-percona-deployment.yaml cleaned up repo May 6, 2018
fitcycle-percona-pv.yaml cleaned up repo May 6, 2018
fitcycle-percona-service.yaml cleaned up repo May 6, 2018
fitcycle-percona-total.yaml cleaned up repo May 6, 2018
fitcycle-server-deployment.yaml made mods for scripts Aug 20, 2018
fitcycle-server-service.yaml made mods for scripts Aug 20, 2018
fitcycle-server-total.yaml made mods for scripts Aug 20, 2018
gethost.sh made mods for scripts Aug 20, 2018
mobile-server-total.yaml
mysql-cnf-configmap.yaml made mods for scripts Aug 20, 2018
mysql-configmap.yaml cleanedup fitcycle app Aug 2, 2018
setHeapster.sh
setenv made mods for scripts Aug 20, 2018
setingress.sh made mods for scripts Aug 20, 2018
setup.sh added heapster Aug 23, 2018
teardown.sh added heapster Aug 23, 2018
tempheap.yaml added heapster Aug 23, 2018
tempingress.yaml added heapster Aug 23, 2018

README.md

container-fitcycle

Instructions on getting this application up in a cluster:

All instructions below are based in whatever your default namespace is. If you want to add to a specific namespace then add -n=NAMESPACE

The set up below is also done with NodePort.

Bring up the Database:

kubectl create secret generic mysql-pass --from-literal=password=YOUR_PASSWORD

kubectl create -f mysql-configmap.yaml

kubectl create -f fitcycle-percona-total.yaml

Bring up the API server

kubectl create -f api-server-local-total.yaml

Ensure the NODE PORTS are exposed in AWS

kubectl get services

NOTE the port numbers for the services

NAME              TYPE           CLUSTER-IP       EXTERNAL-IP        PORT(S)          AGE
fitcycle-mysql    ClusterIP      None             <none>             3306/TCP         20d
fitcycle-server   LoadBalancer   100.69.2.61      a43b2d31e1612...   8000:31553/TCP   7d
kubernetes        ClusterIP      100.64.0.1       <none>             443/TCP          80d
local-fitcycle    LoadBalancer   100.69.146.247   a6e50fff01608...   5000:31159/TCP   7d

Testing out the API

In a separate machine (local computer connected to the internet) type in the following:

curl -i http://35.167.11.105:31159/api/v1.0/signups

REPLACE THE IP ADDRESS AND THE PORT NUMBER WITH THE APPROPRIATE IP ADDRESS AND PORT FOR YOUR CLUSTER

Bring up application server

kubectl create -f fitcycle-server-total.yaml

View the application server

Open up the node port in AWS go to IP ADDRESS:NODEPORT on a web browser

Fitcycle connecting to RDS

kubectl create -f ./rds/api-server-rds.yaml

kubectl create -f ./rds/fitcycle-server-rds.yaml

Follow the steps under viewing app server and testing the API

You can’t perform that action at this time.