This repository contains Kubernetes resources for deploying a Pocketbase service using the Kustomize tool.
- Access to a Kubernetes cluster
- Domain name pointing to the cluster
The repository contains the following resources:
base
directory: This directory contains the base resources for the Pocketbase service, including a Deployment, a Service, an Ingress, a Namespace, and a PersistentVolumeClaim.overlays
directory: This directory contains overlays for the Pocketbase service. No overlays are provided by default, but you can create your own overlays to customize the service.
To deploy the Pocketbase service, follow these steps:
-
Install Kustomize: https://kubectl.docs.kubernetes.io/installation/kustomize/
-
Clone this repository
git clone <repo-url>
-
Navigate to the overlays directory for your desired environment
cd overlays/production
-
Customize the resources in the overlay directory as needed by editing the corresponding
kustomization.yaml
file. -
Deploy the resources using Kustomize
kustomize build . | kubectl apply -f - #OR kubectl apply -k .
-
Verify that the resources were deployed successfully
kubectl get all -n pocketbase
Contributions to the Pocketbase Kubernetes Deployment repository are welcome.