/gridwalls3

Primary LanguageJavaScript

gridwalls3

A game.

Prerequisites

You need a Kubernetes cluster. Digital ocean is nice.

Cluster setup

Install helm:


Install Nginx Ingress and Certmanager

The following is based on https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes However, it's outdated, so I had to do some changes to make it work.

TL;DR:

(TODO: * Create a DNS A record at your domain provider: *.k8s.mydomain.com -> public IP of your nginx ingress)

  • Install CertManager:

    kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.14.1/cert-manager.yaml

    source: https://cert-manager.io/docs/installation/kubernetes/

  • Set up certificate issuers

    # kubectl apply -f staging_issuer.yaml
    kubectl apply -f prod_issuer.yaml
  • Run a test application to verify that everything works:

    cd test kubectl apply --namespace=do-test -f .
    curl https://echo1.yngvark.com

Future improvements

Wildnotes

DigitalOcean login:

doctl kubernetes cluster kubeconfig save use_your_cluster_name

TODO