Add firewall configuration

This commit is contained in:
Gerald Pinder
2025-05-11 15:00:48 -04:00
parent 6980214f02
commit 8724f2e016
3 changed files with 8 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>RKE API</short>
<description>Open port 6443 for Kubernetes API Server.</description>
<port protocol="tcp" port="6443"/>
</service>

View File

@@ -7,8 +7,8 @@ Type=oneshot
ExecStart=/usr/libexec/rke2/create_rke_user.sh
# Disable and mask the service after successful execution
ExecStartPost=-/bin/systemctl disable --now create_rke_user.service
ExecStartPost=-/bin/systemctl mask --now create_rke_user.service
ExecStartPost=-/bin/systemctl disable create_rke_user.service
ExecStartPost=-/bin/systemctl mask create_rke_user.service
[Install]
WantedBy=multi-user.target

View File

@@ -12,4 +12,3 @@ echo "Adding 'rke' to docker group"
usermod -aG docker rke
echo "Done"
exit 0