project: Start K3s

Tags kubernetes fluxcd
Hard Prerequisites
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content.
  • K8S: Manual App Deployment – Project Overview
  • Soft Prerequisites
  • K8S: Setup postgresql backend
  • Start K3s

    This time around we are starting the K3s cluster without Traefik and using the PostgreSQL that is running locally, in production likely your postgres database will be outside of the cluster and maintained separately

    sudo curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --disable=traefik --datastore-endpoint=postgres://k3s:yourpassword@localhost:5432/kubernetes" sh -
    
    # and then remember to give permission to your kubeconfig file for access
    sudo chmod 644 /etc/rancher/k3s/k3s.yaml
    

    RAW CONTENT URL