This documentation provides details for how to extend the Beer App interface and API.
These instructions to setup a k8s environment are via the gcloud SDK CLI. You can also setup via the GCP console. The k8s environment is only for development and testing using Skaffold
Set your CLUSTER_NAME environment variable
export CLUSTER_NAME=skaffold
Create a GKE cluster via gcloud CLI and verify the instances are created:
gcloud container clusters create $CLUSTER_NAME --cluster-version=1.10
gcloud compute instances list
To authenticate to Container Registry, use gcloud as a Docker credential helper. To do so, run the following command: Enable
gcloud auth configure-docker
Create the application with Skaffold
Beer API development
skaffold dev
Beer API Development with all service dependencies
skaffold dev -p test
Create the application with Skaffold
Beer APP Frontend development
skaffold -f skaffold-frontend.yaml dev
Deploy the application with Skaffold.
export a TAG environment variable and run the skaffold run -t <TAG>
command.
The TAG may vary between beer-api and beer-app-frontend development/deployment
export TAG=dev
Beer API deployment
skaffold run -t $TAG
Beer APP Frontend deployment
skaffold -f skaffold-frontend.yaml run -t $TAG
- automated builds