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.
kubectl create secret generic mysql-pass --from-literal=password=YOUR_PASSWORD
kubectl create -f mysql-configmap.yaml
kubectl create -f fitcycle-percona-total.yaml
kubectl create -f api-server-local-total.yaml
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
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
kubectl create -f fitcycle-server-total.yaml
Open up the node port in AWS go to IP ADDRESS:NODEPORT on a web browser
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