Create a cluster on GKE:
gcloud container clusters create backend --num-nodes=2 --machine-type n1-standard-4
Get credentials:
gcloud container clusters get-credentials backend
Build the docker image:
Create a cluster on GKE:
gcloud container clusters create backend --num-nodes=2 --machine-type n1-standard-4
Get credentials:
gcloud container clusters get-credentials backend
Build the docker image:
This is a quick recipe for deploying cert-manager and nginx-ingress on GKE to obtain SSL certificates from Lets Encrypt. Whilst this recipe is designed for Google Cloud Platform, it can easily be adapted for other cloud platforms.
We'll begin with a Kubernetes cluster, and we'll obtain authentication credentials.
gcloud container clusters get-credentials my-test-app
kubectl config current-context
kubectl get nodes
# Instructions | |
# 1. Update your /etc/hosts file... | |
# > 127.0.0.1 gitea drone | |
# 2. Run gitea + gitea-db and generate the oauth application | |
# > docker-compose -p gitea-drone up gitea gitea-db | |
# - Navigate to http://gitea:3000 to finish the installation and register a user | |
# - Create a oauth application as described here: https://docs.drone.io/installation/providers/gitea/ | |
# - Set the Redirect uri to http://drone:8000/login | |
# 3. Update the docker-compose file with the client_id and client_secret | |
# 4. Fire up all of the services |