Add firewall configuration
This commit is contained in:
6
files/rke_setup/etc/firewalld/services/rke.xml
Normal file
6
files/rke_setup/etc/firewalld/services/rke.xml
Normal 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>
|
||||
@@ -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
|
||||
|
||||
@@ -12,4 +12,3 @@ echo "Adding 'rke' to docker group"
|
||||
usermod -aG docker rke
|
||||
|
||||
echo "Done"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user