Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

niewiemmichal/travel-share-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

travel-share-deployment

This repository contains files related to deploying travel-share services to Kubernetes cluster running on Google Cloud Platform.

Requirements

To deploy travel-share services the latest version of below packages is required.

Creating required infrastructure

Go to the infrastructure directory and run below commands. Fill all required variables.

terraform init
terraform apply

Authorizing to Kubernetes cluster

To get access to created Kubernetes cluster run below commands.

gcloud init
gcloud auth application-default login
gcloud container clusters get-credentials <GCP_PROJECT_ID> --zone us-central1-a

Deploying cert-manager and Istio

Go to the kubernetes directory and run below commands.

kubectl apply -f namespace.yaml
helm install --namespace cert-manager cert-manager jetstack/cert-manager
kubectl apply -f cert-manager/namespace.yaml
kubectl apply -f istio/certificate.yaml
istioctl install -n istio-system -f istio-operator.yaml --revision 1-8
kubectl apply -f istio/gateway.yaml

Deploying travelshare services

Go to the kubernetes directory fill values-*.yaml files properly and create values-backend.secret.yaml file with below content.

sql:
  password: <DB_PASSWORD>
django:
  secretKey: <DJANGO_SECRET_KEY>

Then run below commands.

helm upgrade --install --namespace travel-share -f values-backend.yaml -f values-backend.secret.yaml travel-share ./travel-share
helm upgrade --install --namespace travel-share -f values-frontend.yaml travel-share-ui ./travel-share-ui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published