Skip to content

xinetd is deprecated #1852

@mkowalski

Description

@mkowalski

$subject and the closest replacement seems to be systemd-socket and socat. Something along those lines

[root@metal-u15 ~]# cat /etc/systemd/system/openshift-api.socket
[Unit]
Description=OpenShift API Target Socket

[Socket]
# Binds to the specific IPv4 Host IP
ListenStream=0.0.0.0:6443
Accept=yes
# Replicates only_from = 0.0.0.0/0
FreeBind=yes

[Install]
WantedBy=sockets.target

together with

[root@metal-u15 ~]# cat /etc/systemd/system/openshift-api@.service
[Unit]
Description=OpenShift API Proxy Service Instance
After=network.target

[Service]
# 'StandardInput=socket' connects the incoming stream to socat
# Socat then connects that stream to the IPv6 address
ExecStart=-/usr/bin/socat - TCP6:[fd2e:6f44:5dd8:c956::5]:6443
StandardInput=socket
StandardOutput=socket
User=root
# per_source = UNLIMITED is the systemd default,
# but you can explicitly set tasks limits if needed
TasksMax=infinity

[Install]
WantedBy=multi-user.target

gives the expected behaviour. Similar unit needs to be written for 443 and 80 so that ingress VIP is also handled, similarly to https://github.com/openshift-metal3/dev-scripts/blob/master/openshift_xinetd_example.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions