Install Entando 6 on Oracle Cloud Infrastructure IAAS using k3s

Installing Entando on the Oracle IAAS could be a little bit tricky.
In fact you need to configure carefully iptables, allowing k3s to function properly.

These are the steps I’ve followed:
1. create one VM.Standard.E2.1 with ubuntu 20.4, it is not in the free tier but it’s really cheap.
(It seems iptables version 1.6.1 shipped with ubuntu 18.04 has some DNAT issues https://github.com/robbertkl/docker-ipv6nat/issues/47)

2. remove these two rules from iptables:
sudo iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited
sudo iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited

3. Then you need to configure iptables to accepting outside connections (port 80 and port 443):
sudo iptables -I INPUT 5 -i ens3 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -I INPUT 5 -i ens3 -p tcp --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT

4. Don’t forget to persist the iptables configuration!
sudo iptables-save > rules.v4
sudo cp rules.v4 /etc/iptables/rules.v4

5. Allow the outside connections reach the new machine using a proper security list for the subnet

That’s it, now you can install entando platform using k3s https://dev.entando.org/v6.2/docs/getting-started/#run-kubernetes

1 Like