Kubernetes

circle-info

This guide assumes you have some experience with Kubernetes already, if not feel free to begin with Cloud Run, App Engine Flexible or Standalone guide

circle-info

Make sure you have Google Cloud SDKarrow-up-right installed

Create a Service Account

gcloud iam service-accounts create ushaflow-core-ee

Grant dialogflow.reader and dialogflow.client roles to the Service Account

gcloud projects add-iam-policy-binding <your-project-id> --member serviceAccount:ushaflow-core-ee@<your-project-id>.iam.gserviceaccount.com --role roles/dialogflow.reader
gcloud projects add-iam-policy-binding <your-project-id> --member serviceAccount:ushaflow-core-ee@<your-project-id>.iam.gserviceaccount.com --role roles/dialogflow.client

Generate Service Account key

gcloud iam service-accounts keys create service_account.json --iam-account ushaflow-core-ee@<your-project-id>.iam.gserviceaccount.com

Using kubectl create a Secret ressource, containing the service account key

kubectl create secret generic ushaflow-core-ee --from-file=service_account.json

Create a ConfigMap containing desired configuration options

apiVersion: v1
kind: ConfigMap
metadata:
  name: ushaflow-core-ee
data:
  TOKEN: <your license key>
  GOOGLE_APPLICATION_CREDENTIALS: /app/service_account.json

Create a Deployment contaning the container

Expose the Deployment using a Service

Expose the Service using Ingress

Last updated