Deploy on Google Compute Engine
This guide outlines the process of deploying Permify, on Google Compute Engine. The steps include setting up Google Cloud SDK and kubectl, managing containers using Google Kubernetes Engine (GKE), deploying Permify, and implementing Permify in a distributed configuration with Serf. By following these steps, you can efficiently deploy Permify on Google’s scalable and secure infrastructure.
Google Cloud SDK Install
-
At the command line, run the following command:
-
When prompted, choose a location on your file system (usually your Home directory) to create the
google-cloud-sdk
subdirectory under. -
If you want to send anonymous usage statistics to help improve gcloud CLI, answer
Y
when prompted. -
To add gcloud CLI command-line tools to your
PATH
and enable command completion, answerY
when prompted -
Restart your shell:
-
To initialize the Google Cloud CLI environment, run
gcloud init
Install kubectl
-
Install the
kubectl
component: -
Verify that
kubectl
is installed: -
Install Authn Plug-in
Check the
gke-gcloud-auth-plugin
binary version:
Create Containers with GKE
-
Login & Initialize Google Cloud CLI
-
Follow configuration instructions
-
Create Container Cluster
-
Authenticate the cluster
Deploy Permify
-
Apply deployment config
-
Deployment.yaml
-
-
Apply service manfiest
-
Service Manifest
-
Deploying Permify in a Distributed Configuration
If you aim to deploy Permify in a distributed configuration, you will need to create a Serf deployment. The Serf deployment can be dockerized to our Container Registry under the name permify/serf:v1.0, which is provided by Hashicorp.
Please note: It is crucial to ensure that both Serf and Permify deployments reside within the same namespace for proper operation.
-
Serf Service Create:
-
Serf Deployment&Service yaml
-
-
Apply Deployment Manifest
-
Deployment.yaml
-
-
Apply Service Manifest
-
Service.yaml
-
Need any help ?
Our team is happy to help you to deploy Permify, schedule a call with an Permify engineer.