Table of Contents
Deploying for Production
Civo
We use Civo for our production kubernetes hosting. We do this because their pricing is/was the most competitive at the time of development. As the project scales up, our host is subject to change.
Preliminary Setup
- Please follow these instructions to setup a civo environment locally: Setup Civo Environment
- After your Civo Kubernetes environment is setup, we can secure our kubernetes services with SSL with this process: SSL Setup
Deploying Ingress
By default, Civo uses Traefik as the proxy into our cluster. Our Ingress serves as the main entrypoint to our application.
Deploying Staging Ingress
We use a staging ingress that uses staging based TLS keys. These keys are, for all intents and purposes, useless outside of testing.
You can deploy the ingress using the following:
- Confirm you are in the build directory:
cd build
- You can deploy using EITHER the make command OR kubectl
- make command:
make k_deploy_ingress_staging
- kubectl:
kubectl apply -f k8s/ingress-traefik-staging.yml
Deploying Production Ingress
You can deploy the ingress using the following:
- Confirm you are in the build directory:
cd build
- You can deploy using EITHER the make command OR kubectl
- make command:
make k_deploy_ingress_prod
- kubectl:
kubectl apply -f k8s/ingress-traefik-prod.yml
Confirm your ingress is up and running:
kubectl get ing ## Confirm you see 3 entries # 1. cultivate-finance-base-ingress # 2. cultivate-finance-ingress-www # 3. cultivate-finance-ingress-base-dns
Deploying the Web Application
You can find the guide for deploying our web application to our kubernetes cluster here: Building and Running the Webapp in Kubernetes production
Deploying the Wiki
You can find the guide for deploying our Wiki documentation to our kubernetes cluster here: Building and Running the Wiki in Kubernetes production