OpenShift

readhat kubernetes.

Deploy

pre-install:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
> check "sysctl net.ipv4.ip_forward" is set to 1

/etc/containers/registries.conf
[registries.insecure]
registries = ['172.30.0.0/16']

/etc/docker/daemon.json
{
    "insecure-registries": [
        "172.30.0.0/16"
    ]
}

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

docker network inspect -f "{{range .IPAM.Config }}{{ .Subnet }}{{end}}" bridge

# firewall-cmd --permanent --new-zone dockerc
# firewall-cmd --permanent --zone dockerc --add-source 172.17.0.0/16
# firewall-cmd --permanent --zone dockerc --add-port 8443/tcp
# firewall-cmd --permanent --zone dockerc --add-port 53/udp
# firewall-cmd --permanent --zone dockerc --add-port 8053/udp
# firewall-cmd --reload

install:

1
2
3
4
5
> download binary and put in $PATH
# oc cluster up --public-hostname='your.domain.com' --base-dir=/opt/oc

# firewall-cmd --zone=public --add-port=8443/tcp --permanent
# firewall-cmd --reload

test:

1
> https://your.domain.com:8443