You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-50Lines changed: 15 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,13 +74,13 @@ To stop:
74
74
docker stop fns-api
75
75
```
76
76
77
-
## Docs: GCloud Deployment Configuration
77
+
## GCloud Deployment Configuration
78
78
79
-
For detailed step-by-step instructions on configuring Google Cloud (GCloud) aspects such as Kubernetes Cluster creation, Artifact Registry, Service Account creation, and IAM policy binding, please refer to the following video tutorial:
79
+
As a prerequisite is mandatory to apply the following steps to the GCloud project for the docker image build and upload to artifacts, and also service account creation and IAM policy binding:
80
80
81
81
[GCloud Configuration Video Tutorial](https://www.youtube.com/watch?v=KQUKDiBz3IA)
82
82
83
-
This video will guide you through the necessary configurations in the Google Cloud Console to prepare your project forKubernetes deployments using GitHub Actions.
83
+
This video will guide you through the necessary configurations in the Google Cloud Console to prepare your project forCloud Run deployments using GitHub Actions.
84
84
85
85
**Key Reminders from the Video &for Successful Deployment:**
86
86
@@ -89,7 +89,7 @@ This video will guide you through the necessary configurations in the Google Clo
89
89
90
90
**Post-Configuration Steps (using `gcloud` and `cloud-run`):**
91
91
92
-
1. Activate necesary apis:
92
+
1. Activate necessary apis:
93
93
94
94
*`gcloud services enable run.googleapis.com`
95
95
@@ -102,61 +102,26 @@ This video will guide you through the necessary configurations in the Google Clo
102
102
* Select the authetification preferences.
103
103
* Create.
104
104
105
-
106
-
* Choose a cluster name (e.g., `flex-net-sim-cluster`). **Remember this name.**
107
-
* Select a region for your cluster (e.g., `us-central1`).
108
-
* For the purpose of this guide, you can use the default settings for node pools, networking, and other configurations, or adjust them based on your specific needs.
109
-
* Click **Create** to create the cluster. It will take a few minutes for the cluster to be provisioned.
110
-
111
-
2. **Set IAM Policy Binding (using `gcloud`):**
112
-
113
-
Replace `<YOUR-GOOGLE-PROJECT-ID>` and `<SERVICE_ACCOUNT_EMAIL>` with your actual Google Cloud Project ID and the Service Account Email you noted down.
105
+
3. Update access of service accounts to cloud run resources:
Replace `<CLUSTER-NAME>` and `<YOUR-GOOGLE-PROJECT-ID>` with your Kubernetes Cluster Name and Google Cloud Project ID. Ensure the region is set to `us-central1`.
gcloud iam service-accounts add-iam-policy-binding "<YOUR_PROJECT_NUMBER>-compute@developer.gserviceaccount.com" --member="serviceAccount:<SERVICE_ACCOUNT_EMAIL>" --role="roles/iam.serviceAccountActor"
115
+
```
126
116
127
-
The command will fetch the cluster credentials and configure `kubectl` to use them. You should see output similar to:
117
+
4. **Test the Deployed API (using `curl`):**
128
118
129
-
```
130
-
Fetching cluster endpoint and auth data.
131
-
kubeconfig entry generated for<CLUSTER-NAME>.
132
-
```
133
-
134
-
4. **Verify `kubectl` Configuration and Service Deployment (using `kubectl`):**
135
-
136
-
After the command is successful, verify your `kubectl` configuration and check for the `fns-api-service`:
119
+
Use the `curl`command with the `ENDPOINT-URL` you obtained from the previous steps to test your deployed API. Replace `YOUR-ENDPOINT-URL` with the actual `ENDPOINT-URL`.
137
120
138
121
```bash
139
-
kubectl get service fns-api-service
140
-
```
141
-
142
-
If the service is correctly deployed (after your GitHub Actions workflow runs), it should display information about your service, including the `EXTERNAL-IP`.
143
-
144
-
You should see output similar to this (the `EXTERNAL-IP` will likely be different):
Use the `curl`command with the `EXTERNAL-IP` you obtained from the previous step to test your deployed API. Replace `<YOUR-EXTERNAL-IP>` with the actual `EXTERNAL-IP`.
**Remember**: These GCloud configurations, along with the repository's `gke-cd.yml` GitHub Actions workflow and correctly configured GitHub secrets, are essential for successful automated deployment of your FlexNetSim-API application to Google Cloud Kubernetes Engine.
Remember that depending on the authetification preferences you might need to authetificate to send request to the Endpoint just created.
162
126
127
+
**Remember**: These GCloud configurations, along with the repository's `gke-cd.yml` GitHub Actions workflow and correctly configured GitHub secrets, are essential for successful automated deployment of your FlexNetSim-API application to Google Cloud Run.
0 commit comments