/aurix

Example web page running on Kubernetes that uses persistent volume. Works with MVPStudio.

Primary LanguageGoMIT LicenseMIT

Kubernetes Tutorial

This tutorial will demonostrate how to run a simple Go server that reads and writes to a Postgres database. The application will run on the MVP Studio Kubernetes cluster and take advantage of the Kubernetes secrets service.

Prerequisites


Kubectl commands

  • create secret with
    kubectl create secret generic pgsecrets --from-literal=username=postgres --from-literal=password=password -n hello-world
    
  • more info on secrets is in the Kubernetes docs
  • deploy with
    kubectl apply -f kube/
    
  • shut down app with
    kubectl delete -f kube/