okd搭建中文化

安装单机版openshift的步骤。

作为open shift的上游开源项目open shift origin已经改名为okd。

单机安装的官方文档如下:

单机安装的前置条件

单机安装的详细步骤

安装的硬件条件如下:

Profile vCPU Memory Storage
Minimum 8 vCPUs 16 GB of RAM 120 GB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
OKD_VERSION=4.15.0-0.okd-2024-03-10-010116

ARCH=x86_64

curl -L https://github.com/okd-project/okd/releases/download/$OKD_VERSION/openshift-client-linux-$OKD_VERSION.tar.gz -o oc.tar.gz

tar zxf oc.tar.gz

chmod +x oc

curl -L https://github.com/okd-project/okd/releases/download/$OKD_VERSION/openshift-install-linux-$OKD_VERSION.tar.gz -o openshift-install-linux.tar.gz

tar zxvf openshift-install-linux.tar.gz

chmod +x openshift-install

ISO_URL=$(./openshift-install coreos print-stream-json | grep location | grep $ARCH | grep iso | cut -d\" -f4)

curl -L $ISO_URL -o fcos-live.iso
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
apiVersion: v1
baseDomain: test
compute:
- name: worker
replicas: 0
controlPlane:
name: master
replicas: 1
metadata:
name: okd
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
machineNetwork:
- cidr: 10.1.0.0/16
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16
platform:
none: {}
bootstrapInPlace:
installationDisk: /dev/disk/by-id/scsi-360022480f30363921dcfea7cbb92ae20
pullSecret:
sshKey: |

okd搭建中文化
https://steammilk.com/2024/10/09/2024-all/okd/
作者
蒸奶泡
发布于
2024年10月9日
更新于
2025年1月8日
许可协议