linux安装红帽openshift,Redhat Openshift 单机版安装指南 CRC4.6

Redhat Openshift 单机版安装指南 CRC4.6

Red Hat CodeReady Containers(CRC) 是一个最小的 OpenShift 4 本地集群环境,可以安装到笔记本电脑,

无须专用服务器,这点比OKD4.6要简单得多.

安装总共分3步:

第一步:下载安装文件 提供3种平台的安装文件,(Windows, Linux, Mac)

第二步:crc setup

第三步:crc start

CRC 4.6 安装的硬件条件:

• 4 核CPUs (vCPUs)

• 9.664 GB 可用内存

• 35 GB 磁盘空间

CRC 4.6 安装的软件条件:

Windows

Windows 10  Update(1709)或者更新版本,但是不包括 Windows 10 家庭版.

macOS

• macOS 10.12 Sierra或者更新版

Linux

•CRC支持 Red Hat Enterprise Linux/CentOS 7.5 或者更新版

• Ubuntu 18.04 LTS 和 Debian 10 没有官方支持

我安装的环境是这样的:Centos 7.9 + E3-1220 + 16GB内存 + 500GB硬盘

9ac0d25ed47a799c853e47ec51a49fc2.png

podman 工具可用于替换docker, 有点是不用常驻内存了.  以下是常见错误, 修改配置文件就可以了.

[xinyong@localhost containers]$ podman info

cannot clone: Invalid argument

user namespaces are not enabled in /proc/sys/user/max_user_namespaces

Error: could not get runtime: cannot re-exec process

vi /etc/containers/storage.conf

# Temporary storage location

runroot = "/home/xinyong/podstorage"

#/var/run/containers/storage"

# Primary Read/Write location of container storage

graphroot = "/home/xinyong/podstorage"

[root@localhost containers]# podman info

host:

BuildahVersion: 1.11.5

CgroupVersion: v1

Conmon:

package: conmon-2.0.8-1.el7.x86_64

path: /usr/bin/conmon

version: 'conmon version 2.0.8, commit: f85c8b1ce77b73bcd48b2d802396321217008762'

Distribution:

distribution: '"centos"'

version: "7"

MemFree: 200237056

MemTotal: 16825749504

OCIRuntime:

name: runc

package: runc-1.0.0-67.rc10.el7_8.x86_64

path: /usr/bin/runc

version: 'runc version spec: 1.0.1-dev'

SwapFree: 8398041088

SwapTotal: 8455712768

arch: amd64

cpus: 4

eventlogger: journald

hostname: localhost.localdomain

kernel: 3.10.0-1160.11.1.el7.x86_64

os: linux

rootless: false

uptime: 8h 32m 54.63s (Approximately 0.33 days)

registries:

blocked: null

insecure: null

search:

- registry.access.redhat.com

- registry.redhat.io

- docker.io

store:

ConfigFile: /etc/containers/storage.conf

ContainerStore:

number: 0

GraphDriverName: overlay

GraphOptions: {}

GraphRoot: /home/xinyong/podstorage

GraphStatus:

Backing Filesystem: xfs

Native Overlay Diff: "true"

Supports d_type: "true"

Using metacopy: "false"

ImageStore:

number: 0

RunRoot: /home/xinyong/podstorage

VolumePath: /home/xinyong/podstorage/volumes

Log in to the registry as that user with its token:

$ sudo podman login -u kubeadmin -p $(oc whoami -t) default-route-openshift-image-

registry.apps-crc.testing --tls-verify=false

ODO OpenShift Do (odo) 是Redhat的工具,安装地址如下:

#curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o /usr/local/bin/odo

#chmod +x /usr/local/bin/odo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值