Skip to content

Hello world on GKE with multi-domain HTTPS

License

Notifications You must be signed in to change notification settings

int128/hello-gke-https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello GKE with HTTPS

Hello world on GKE with HTTPS ingress by kube-lego.

Prerequisite

  • gcloud and kubectl are configured for GKE
  • Valid email address
  • Wildcard domain (e.g. *.sandbox.example.com)

How to create

Fix an email address and domain name in YAMLs.

sed -i -e 's/EMAIL_ADDRESS/you@example.com/g' lego/configmap.yaml
sed -i -e 's/DOMAIN_NAME/sandbox.example.com/g' hello/ingress.yaml

Create a cluster.

kubectl version
./create-cluster.sh

Associate your wildcard domain and the reserved IP address.

Deploy pods and ingress.

kubectl apply -f lego
kubectl apply -f hello

See log of kube-lego.

kubectl logs -f --tail=100 --namespace kube-lego "$(kubectl get pod --namespace kube-lego -l app=kube-lego -o name)"

Open following URLs.

How to cleanup

./delete-cluster.sh

About

Hello world on GKE with multi-domain HTTPS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages