improve README.md
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
78e745507a
commit
2a251779e6
1 changed files with 18 additions and 7 deletions
25
README.md
25
README.md
|
@ -6,25 +6,36 @@ add them to the cart, and purchase them.
|
||||||
|
|
||||||
### Setup on GKE
|
### Setup on GKE
|
||||||
|
|
||||||
0. Make sure you have a Google Kubernetes Engine cluster and enabled Google
|
1. Install:
|
||||||
Container Registry (GCR) on your GCP project:
|
|
||||||
|
- [gcloud](https://cloud.google.com/sdk/) + sign in to your account/project.
|
||||||
|
- kubectl (can be installed via `gcloud components install kubectl`)
|
||||||
|
- Docker (on Mac/Windows, install Docker for Desktop CE)
|
||||||
|
- [Skaffold](https://github.com/GoogleContainerTools/skaffold/#installation)
|
||||||
|
|
||||||
|
1. Create a Google Kubernetes Engine cluster and make sure `kubectl` is pointing
|
||||||
|
to the cluster.
|
||||||
|
|
||||||
|
1. Enable Google Container Registry (GCR) on your GCP project:
|
||||||
|
|
||||||
gcloud services enable containerregistry.googleapis.com
|
gcloud services enable containerregistry.googleapis.com
|
||||||
|
|
||||||
|
1. Configure docker to authenticate to GCR:
|
||||||
|
|
||||||
|
gcloud auth configure-docker -q
|
||||||
|
|
||||||
1. Edit `skaffold.yaml`, prepend your GCR registry host (`gcr.io/YOUR_PROJECT/`)
|
1. Edit `skaffold.yaml`, prepend your GCR registry host (`gcr.io/YOUR_PROJECT/`)
|
||||||
to all `imageName:` fields.
|
to all `imageName:` fields.
|
||||||
|
|
||||||
2. Edit the Deployment manifests at `kubernetes-manifests` directory and update
|
1. Edit the Deployment manifests at `kubernetes-manifests` directory and update
|
||||||
the `image` fields to match the changes you made in the previous step.
|
the `image` fields to match the changes you made in the previous step.
|
||||||
|
|
||||||
3. Install [Skaffold] and `skaffold run`. This builds the container
|
1. Run `skaffold run`. This builds the container
|
||||||
images, pushes them to GFR, and deploys the application to Kubernetes.
|
images, pushes them to GFR, and deploys the application to Kubernetes.
|
||||||
|
|
||||||
4. Find the IP address of your application:
|
1. Find the IP address of your application:
|
||||||
|
|
||||||
kubectl get service frontend-external
|
kubectl get service frontend-external
|
||||||
|
|
||||||
then visit the application on your browser to confirm
|
then visit the application on your browser to confirm
|
||||||
installation.
|
installation.
|
||||||
|
|
||||||
[Skaffold]: https://github.com/GoogleContainerTools/skaffold/#installation
|
|
||||||
|
|
Loading…
Reference in a new issue