sudo snap install --channel=1.18/stable --classic microk8s
sudo snap install --classic helmSingle host deployment
| This deployment is only for learning and testing purposes, and is not supported as a production implementation. The purpose of microk8s is to conceal some Kubernetes setup details for ease of use (e.g. storage and networking), details that will be necessary considerations for a full-fledged application deployment in a Kubernetes cluster. You shouldn’t consider microk8s to be entirely representative of what an SD Elements Kubernetes deployment will require. | 
The following instructions will help you set up a standalone Kubernetes cluster with Microk8s to deploy SD Elements on an Ubuntu based system that supports snaps.
Requirements
Minimal specifcations to support a single-node Kubernetes cluster and SD Elements
Software
- 
Ubuntu 18.04 LTS or newer - 
snapdpackage installed
 
- 
Hardware
- 
8 vCPU/cores 
- 
16 GB RAM 
- 
100 GB disk 
Install Kubernetes (Microk8s v1.18.2 or later)
- 
Install snaps 
- 
Add current user to microk8sgroupsudo usermod -a -G microk8s "${USER}" && su - "${USER}"
- 
Enable required microk8saddonsmicrok8s.enable dns dashboard storage ingress
- 
Configure kubemicrok8s.kubectl config view --raw > "${HOME}/.kube/config"
- 
Ensure correct permissions on kubeconfig file and directorychown "${USER}" "${HOME}/.kube" chown "${USER}" "${HOME}/.kube/config" chmod 750 "${HOME}/.kube" chmod 640 "${HOME}/.kube/config"
Configure and deploy SD Elements
- 
See Deploy SD Elements using Helm for guidance on deploying, accessing, upgrading and undeploying SD Elements 
- 
See Advanced Helm configuration for guidance on configuring SD Elements 
Common tasks
See the Common Tasks page for detailed information on tasks that you may need to perform to manage SD Elements.
| Remember to use the microk8s.kubectlcommand when you need to runkubectlin a single-host Microk8s deployment. | 
