Start with Kubernetes

The example uses microk8s, and other Kubernetes are also feasible.

Stop firewall

systemctl stop firewalld
systemctl disable firewalld

Install Snap

sudo yum install -y epel-release
sudo yum install -y snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

Install Microk8s

sudo snap install microk8s --classic --channel=1.27/stable
microk8s status --wait-ready

#Exit and relogin to the terminal again
#The user used in the example is called tangram
sudo usermod -a -G microk8s tangram
sudo chown -f -R tangram ~/.kube

Enable Addons

#Relogin the terminal again
microk8s enable helm3 dns ingress

Install Tangram Helm Charts

microk8s helm3 install test tangram/

Config Hosts

The local environment needs to have the hosts file configured to point to the Ingress domain.

# tangram
x.x.x.x backend.tangramapps.com
x.x.x.x demo.tangramapps.com

In a cloud-based environment, you can configure the Ingress to use a private domain and perform DNS resolution.

Last updated