Red Hatã§ã½ãªã¥ã¼ã·ã§ã³ã¢ã¼ããã¯ãããã¦ããç°ä¸å¸æ©(@tnk4on)ã§ãã
Apple Siliconæè¼Macï¼ä»¥ä¸ãARM Macï¼ã¸ã®OpenShiftã®ã¤ã³ã¹ãã¼ã«ãããã«ç°¡åã«ãªãã¾ããï¼ååã®è¨äºããçæéã§ã®å 容æ´æ°ã§ãããåä½ç¢ºèªãã§ããã®ã§ä¸çæéã§æ°ããã¤ã³ã¹ãã¼ã«æé ããç´¹ä»ãã¾ãï¼
ï¼ãã¤ãã®ãç´æãæ¬è¨äºã®å 容ã¯æ¤è¨¼ãç®çã¨ãã¦ãããæ¬çªç°å¢ã§ã®ä½¿ç¨ãå ¬å¼ãªãµãã¼ããä¿è¨¼ãããã®ã§ã¯ããã¾ãããï¼
[ååè¨äº] æ¬è¨äºã§ã度ã åç §ãã¾ãã®ã§åããã¦ç¢ºèªãã¦ãã ããã rheb.hatenablog.com
ï¼2023/5/10ã追è¨ï¼ æ¯æ´ä»ãã¤ã³ã¹ãã¼ã©ã¼ã®è¨äºãå ¬éãã¾ããï¼ rheb.hatenablog.com
-ç®æ¬¡-
- ã¨ã¼ã¸ã§ã³ããã¼ã¹ã®ã¤ã³ã¹ãã¼ã«
- SNO on ARM Macï¼ã¨ã¼ã¸ã§ã³ããã¼ã¹ï¼ã®æ§ææ¦è¦
- ã¤ã³ã¹ãã¼ã«æ¹æ³
- Gitãªãã¸ããªã®ã¯ãã¼ã³
- ã¤ã³ã¹ãã¼ã©ã¼ã¨OpenShift CLIã®å ¥æ
- RHCOS ISOã®å ¥æ
- DNSãµã¼ãã¼ã®å®è¡
- Macãã¹ãã®è¨å®å¤æ´
- RHCOS ISOã®ãã¹ãèµ·åã¨ããã¤ã¹åã®ç¢ºèª
- install-config.yamlã®æ´æ°
- agent-config.yamlã®æ´æ°
- ã¨ã¼ã¸ã§ã³ãISOä½æç¨ã³ã³ããã¤ã¡ã¼ã¸ã®ãã«ã
- ã¨ã¼ã¸ã§ã³ãISOã®ä½æ
- ã¨ã¼ã¸ã§ã³ãISOã®èµ·å
- ï¼åèï¼ã¤ã³ã¹ãã¼ã«ç¶æ³ã®ã¢ãã¿ãªã³ã°
- ç°å¢ã®ãªã»ãã
- ã¾ã¨ã
ã¨ã¼ã¸ã§ã³ããã¼ã¹ã®ã¤ã³ã¹ãã¼ã«
ã¨ã¼ã¸ã§ã³ããã¼ã¹ï¼Agent-basedï¼ã®ã¤ã³ã¹ãã¼ã«ã¯ãOpenShift Container Platform 4.12 ã§GAã«ãªã£ãæ°ããã¤ã³ã¹ãã¼ã«æ¹æ³ã§ããæ¯æ´ä»ãã¤ã³ã¹ãã¼ã©ã¼ï¼Assisted Installerï¼ã®ä½¿ããããããªã³ãã¬ã®ã¤ã³ã¹ãã¼ã«ã«æ´»ç¨ãããã¨ãã§ããã¤ã³ã¹ãã¼ã«æ¹æ³ã§ããæ¯æ´ä»ãã¤ã³ã¹ãã¼ã©ã¼ã®ãããªå¯¾è©±å¼ã®GUIã¯ããã¾ããããCLIã§ã·ã³ãã«ã«å®è¡ãã§ããã¾ãéæ¥ç¶ç°å¢ã¸ã®å°å
¥ãå¯è½ãªæè»æ§ãå
¼ãåãã¦ãã¾ããinstall-config.yaml
ãã¡ã¤ã«ã¨agent-config.yaml
ã使ã£ã¦èµ·åç¨ã®ã¨ã¼ã¸ã§ã³ãISOãä½æãããã®ISOã§èµ·åãããã¨ã§OpenShiftã¯ã©ã¹ã¿ã¼ãèªåã§ä½æããã¾ãã
ä»åã®è¨äºã§ã¯ã¨ã¼ã¸ã§ã³ããã¼ã¹ã®ã¤ã³ã¹ãã¼ã«èªä½ã¯æ·±ãæãä¸ãã¾ããããä¸è¨ã®å
¬å¼ããã°ã§ç´¹ä»ããã¦ãã¾ãã®ã§åèã«ãã¦ãã ããã
- OpenShift Container Platform 4.12 ãªãªã¼ã¹ãã¼ã
- Meet The New Agent-Based OpenShift Installer
- Introducing a Game-Changing New Way to Deploy OpenShift Clusters in Disconnected Environments
SNO on ARM Macï¼ã¨ã¼ã¸ã§ã³ããã¼ã¹ï¼ã®æ§ææ¦è¦
ã¨ã¼ã¸ã§ã³ããã¼ã¹ã®ã¤ã³ã¹ãã¼ã«ã®å ´åã§ãARM Macã¸ã®ã¤ã³ã¹ãã¼ã«ã®æ§æèªä½ã¯ã»ã¼å¤ããã¾ãããcoreos-installer
ã®ä»£ããã«openshift-install
ãã³ã³ããã§å®è¡ããç¨ã«å¤æ´ã«ãªã£ããããã§ãã
æ§æå³
æ§æã®ç¹å¾´ãåææ¡ä»¶ããã©ã¡ã¼ã¿ã¼ä¸è¦§
æ§æã®ç¹å¾´ãåææ¡ä»¶ããã©ã¡ã¼ã¿ã¼ä¸è¦§ã¯ååã®è¨äºãåç §ãã¦ãã ããã
ã¤ã³ã¹ãã¼ã«æ¹æ³
åç §ããã¤ã³ã¹ãã¼ã«ããã¥ã¡ã³ãã¯ä¸è¨ããã¼ã¹ã¨ãã¾ãããä»åãARM Macç¨ã«æ§ã ãªã«ã¹ã¿ãã¤ãºãå ãã¦ãã¾ãã
ååè¨äºã¨éè¤ããé¨åã¯å¤ãã§ãããagent-config.yaml
ã®ä¿®æ£ãopenshift-install
ç¨ã®ã³ã³ããã®ãã«ãã¯ä»åæ°ãã追å ãããæé ã§ãã
Gitãªãã¸ããªã®ã¯ãã¼ã³
ã¤ã³ã¹ãã¼ã«ã«å¿ è¦ãªãã¡ã¤ã«é¡ã®ãã³ãã¬ã¼ããç¨æãã¦ãã¾ããä¸è¨URLã®ãªãã¸ããªãã¯ãã¼ã³ãã¦ãå©ç¨ãã ããã
GitHub - tnk4on/sno-on-arm-mac: Install Single Node OpenShift on Apple Silicon-based Mac (ARM Mac)
git clone https://github.com/tnk4on/sno-on-arm-mac.git cd sno-on-arm-mac
- agent-basedãã£ã¬ã¯ããªé ä¸ã®ãã¡ã¤ã«ã使ç¨ãã¾ã
ã¤ã³ã¹ãã¼ã©ã¼ã¨OpenShift CLIã®å ¥æ
ã¤ã³ã¹ãã¼ã«ã«å¿
è¦ãª openshift-install
ã¨ã¯ã©ã¤ã¢ã³ãã® oc
ãå
¥æãã¦å®è¡ãã¹ã«é
ç½®ãã¾ãã
ä»åã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã§ã¯ã³ã³ããå
ã§
openshift-install
ãå®è¡ããã®ã§Macã«å°å
¥ãããã®ã¯ç´æ¥ã¤ã³ã¹ãã¼ã«ã«é¢ä¿ãã¾ããããã¤ã³ã¹ãã¼ã«ä¸ã®ãã°ç¢ºèªçã«ä½¿ç¨ããã®ã§å°å
¥ãã¦ããã¾ãããã
export OCP_VERSION=4.13.0-rc.2 export ARCH=aarch64 mkdir src cd src curl -LO https://mirror.openshift.com/pub/openshift-v4/$ARCH/clients/ocp/$OCP_VERSION/openshift-install-mac.tar.gz curl -LO https://mirror.openshift.com/pub/openshift-v4/$ARCH/clients/ocp/$OCP_VERSION/openshift-client-mac.tar.gz tar zxf openshift-install-mac.tar.gz tar zxf openshift-client-mac.tar.gz sudo cp openshift-install oc /usr/local/bin/ cd ..
OCP_VERSION
: ã4.13.0-rc.2ã以éãæå®ãã¾ã- ï¼æ³¨æï¼4.13.0-rc.0ã§ã¯ã¤ã³ã¹ãã¼ã«ãå®äºãã¾ãã
ARCH
: ARM Macã«å¯¾å¿ãããaarch64ããæå®ãã¾ã- ãã¦ã³ãã¼ãããã¢ã¼ã«ã¤ãã¯
src
ãã£ã¬ã¯ããªã«ä¸æä¿åãã¾ã - å®è¡ãã¤ããªã®é ç½®å ã¯PATHç°å¢å¤æ°ã§ããã°ã©ãã§ãå¯è½ã§ã
RHCOS ISOã®å ¥æ
ä»åã¯ã¤ã³ã¹ãã¼ã«ã«ã¯ä½¿ç¨ãã¾ããããagent-config.yaml
ã«è¨è¼ããã¹ãã¬ã¼ã¸ããã¤ã¹åã¨NICåã®ç¢ºèªã«ä½¿ç¨ãã¾ãã
mkdir iso export ISO_URL=$(openshift-install coreos print-stream-json | grep location | grep $ARCH | grep iso | cut -d\" -f4) curl -L $ISO_URL -o iso/rhcos-live.iso
- ä¸åº¦ããã¤ã¹åã®ç¢ºèªãå®äºããã°åé¤ãã¦ãã¾ã£ã¦åé¡ããã¾ãã
DNSãµã¼ãã¼ã®å®è¡
ååã®è¨äºãåç § - DNSãµã¼ãã¼ã®å®è¡
Macãã¹ãã®è¨å®å¤æ´
ååã®è¨äºãåç § - Macãã¹ãã®è¨å®å¤æ´
RHCOS ISOã®ãã¹ãèµ·åã¨ããã¤ã¹åã®ç¢ºèª
ååã®è¨äºãåç § - RHCOS ISOã®ãã¹ãèµ·åã¨ããã¤ã¹åã®ç¢ºèª
install-config.yamlã®æ´æ°
ãå©ç¨ã®ç°å¢ã«åããã¦install-config.yaml
ã®å
容ãä¿®æ£ãã¾ããååè¨äºã¨ã®éãã¯ã¤ã³ã¹ãã¼ã«å
ãã£ã¹ã¯ã®æå®ãç¡ãç¹ã§ãã*1
agent-based/install-config.yamlã®ãµã³ãã«ãå±é
apiVersion: v1 baseDomain: home.lab compute: - name: worker replicas: 0 controlPlane: name: master replicas: 1 metadata: name: sno networking: clusterNetworks: - cidr: 10.128.0.0/14 hostPrefix: 23 machineNetwork: - cidr: 192.168.1.0/24 networkType: OVNKubernetes serviceNetwork: - 172.30.0.0/16 platform: none: {} pullSecret: '{"auths":...}' sshKey: 'ssh-ed25519 AAAA...'
1. ãã«ã·ã¼ã¯ã¬ãã
ååã®è¨äºãåç § - 1. ãã«ã·ã¼ã¯ã¬ãã
2. SSHãã¼
ååã®è¨äºãåç § - SSHãã¼
agent-config.yamlã®æ´æ°
ä»åã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã®ãã¤ã³ãã¨ãªãã»ã¯ã·ã§ã³ã§ãã使ç¨ç°å¢ã«åããã¦å 容ãä¿®æ£ãã¾ãã
agent-based/agent-config.yamlã®ãµã³ãã«ãå±é
apiVersion: v1alpha1 kind: AgentConfig metadata: name: sno rendezvousIP: 192.168.1.40 hosts: - hostname: m1-ocp interfaces: - name: enp0s1 macAddress: 6a:75:4d:0c:7e:a5 rootDeviceHints: deviceName: /dev/vda networkConfig: interfaces: - name: enp0s1 type: ethernet state: up mac-address: 6a:75:4d:0c:7e:a5 ipv4: enabled: true address: - ip: 192.168.1.40 prefix-length: 24 dhcp: false dns-resolver: config: server: - 192.168.1.150 routes: config: - destination: 0.0.0.0/0 next-hop-address: 192.168.1.1 next-hop-interface: enp0s1 table-id: 254
1. ã©ã³ããã¼IP
rendezvousIP:
ï¼ã·ã³ã°ã«ãã¼ãæ§æãªã®ã§OpenShiftãã¼ãã¨åãIPã¢ãã¬ã¹ãè¨å®ãã¾ã
2. ãããã¯ã¼ã¯è¨å®
hostname:
ï¼OpenShiftãã¼ãã®ãã¹ãåãè¨å®ãã¾ãmacAddress:
,mac-address:
ï¼NICã®MACã¢ãã¬ã¹ãè¨è¼ãã¾ããRHCOSã®ãã¹ãèµ·åæãä»®æ³ç°å¢ã¢ããªã§ç¢ºèªãã¦ãã ããã2ç®æããã¾ãã- NICåï¼ç¢ºèªããNICåãè¨è¼ãã¾ãã3ç®æããã¾ãã
hosts: interfaces: - name: enp0s1
networkConfig: interfaces: - name: enp0s1
next-hop-interface: enp0s1
- DNSãµã¼ãã¼ï¼ã³ã³ããå®è¡ããDNSãµã¼ãã¼ã使ç¨ããããARM Macãã¹ãã®IPã¢ãã¬ã¹ãæå®ãã¾ã
dns-resolver: config: server: - 192.168.1.150
next-hop-address:
ï¼ããã©ã«ãã²ã¼ãã¦ã§ã¤ã®IPã¢ãã¬ã¹ãè¨è¼ãã¾ã
3. ã«ã¼ãããã¤ã¹ãã³ã
確èªããã¹ãã¬ã¼ã¸ããã¤ã¹åãè¨è¼ãã¾ãã
rootDeviceHints: deviceName: /dev/vda
- ã«ã¼ãããã¤ã¹ãã³ãã¯è¨è¼ããªãã¦ãã¤ã³ã¹ãã¼ã«ãå¯è½ã§ããããã£ã¹ã¯ã®æ¤åºã®ããã»ã¹ã«æéããããããè¨è¼ãã¦ããã¨æéç縮ã«ãªãã¾ã
- ï¼æ³¨æï¼ã¹ãã¬ã¼ã¸ã®å®¹éã¯å¿ ã120GB以ä¸ã«ãã¦ãã ããã120GBæªæºã ã¨ãã£ã¹ã¯ãæ¤åºããã¦ãã¤ã³ã¹ãã¼ã«ãéå§ããã¾ããã
ã¨ã¼ã¸ã§ã³ãISOä½æç¨ã³ã³ããã¤ã¡ã¼ã¸ã®ãã«ã
ã¨ã¼ã¸ã§ã³ãISOã®ä½æã¯openshift-install
ã使ç¨ãã¾ããä»åã¯agent-config.yaml
ã«éçIPã¢ãã¬ã¹ã®è¨å®ãå ãã¦ããããã®ãããã¯ã¼ã¯ã®è¨å®ãè¡ãããã«NMState
ãå¿
è¦ã§ããRHELãªã©ã®Linuxãµã¼ãã¼ã§ããã°NMState
ã¯ç°¡åã«ã¤ã³ã¹ãã¼ã«ã§ãã¾ããã調ã¹ãã¨ããMacç¨ã¯ããã¾ãããããã§openshift-install
ã¨NMState
ãå
¥ã£ãLinuxãã¼ã¹ã®ã³ã³ããã¤ã¡ã¼ã¸ãä½æãããã®ä¸ã§ã¨ã¼ã¸ã§ã³ãISOã®ä½æãè¡ãããã«ãã¾ãã
Containerfile
ã³ã³ããã¤ã¡ã¼ã¸ã®ãã«ãã«ä½¿ç¨ããContainerfileã¯ä¸è¨ã®å 容ã«ãªãã¾ãã
agent-based/Containerfileã®å
容ãå±é
# Preparation Build FROM quay.io/centos/centos:stream9-minimal as prep # ARG ARG VERSION # ENV ENV VERSION=${VERSION} ENV ARCH=aarch64 # Download binary RUN microdnf install tar gzip -y RUN curl -LO https://mirror.openshift.com/pub/openshift-v4/${ARCH}/clients/ocp/${VERSION}/openshift-install-linux.tar.gz RUN curl -LO https://mirror.openshift.com/pub/openshift-v4/${ARCH}/clients/ocp/${VERSION}/openshift-client-linux.tar.gz RUN tar xzf openshift-install-linux.tar.gz RUN tar xzf openshift-client-linux.tar.gz # Build image FROM quay.io/centos/centos:stream9-minimal as build RUN microdnf update -y \ && microdnf install nmstate -y \ && microdnf clean all COPY --from=prep openshift-install /usr/local/bin COPY --from=prep oc /usr/local/bin ENTRYPOINT ["/usr/local/bin/openshift-install"]
- ãã¼ã¹ã¤ã¡ã¼ã¸ã«CentOS 9 Stream minimalã使ç¨ãã¾ã*2
- ãã¼ã«ã®ãã¦ã³ãã¼ãã¨å®è¡ç¨ã®ã¹ãã¼ã¸ãåãããã«ãã¹ãã¼ã¸ãã«ããè¡ãã¾ã
openshift-install
ã®å®è¡ã®éã«oc
ãå¿ è¦ã¨ãªãã®ã§oc
ãå°å ¥ãã¾ã- ãã«ãå¼æ°ã使ç¨ãã¦OpenShiftã®ãã¼ã¸ã§ã³ãæå®ãã¾ã
- ENTRYPOINTã«
openshift-install
ã®å®è¡ãæå®ãã¾ã
ã³ã³ããã®ãã«ã
ãã«ãå¼æ°ã«OpenShiftã®ãã¼ã¸ã§ã³ãæå®ãã¦ãã«ããå®è¡ãã¾ã
export OCP_VERSION=4.13.0-rc.2 podman build -f agent-based/Containerfile -t openshift-install --build-arg VERSION=${OCP_VERSION} podman run -it --rm openshift-install version
- ãã¼ã¸ã§ã³ã表示ããããã³ã³ããã®ãã«ãã¯æåã§ã
- ã¿ã°åã¯
openshift-install
ã«ãã¦ã¾ãããä»»æã§å¤æ´å¯è½ã§ã
ã¨ã¼ã¸ã§ã³ãISOã®ä½æ
ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªããã³ã¤ã¡ã¼ã¸ããã¼ã«é¡ãæ ¼ç´ããããã£ãã·ã¥ãã£ã¬ã¯ããªãä½æãã¾ããinstall-config.yaml
ã¨agent-config.yaml
ãã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªã«ã³ãã¼ãããã«ãããopenshift-install
ã³ã³ããã¤ã¡ã¼ã¸ã使ç¨ãã¦ã¨ã¼ã¸ã§ã³ãISOã®ä½æãå®è¡ãã¾ãã
mkdir -p ocp image_cache files_cache cp agent-based/*.yaml ocp podman run --privileged --rm \ -v $PWD:/data \ -v ./image_cache:/root/.cache/agent/image_cache \ -v ./files_cache:/root/.cache/agent/files_cache \ -w /data openshift-install:latest \ --dir ocp agent create image
- ååã¯å ã«ãªãISOï¼image_cacheé ä¸ã«ä¿åãããï¼ã®ãã¦ã³ãã¼ãããéå§ããã®ã§æéããããã¾ãã
- 2åç®ä»¥éã®å®è¡æã¯ãã£ãã·ã¥ãåå©ç¨ãã¾ãããã£ãã·ã¥ãæ¤è¨¼ããã¤ã³ã¹ãã¼ã©ã¼ã®ãã¼ã¸ã§ã³ãæ´æ°ããã¦ããã°å度ãã¦ã³ãã¼ããè¡ããã¾ãã
- ï¼æ³¨æï¼ISOãä½æããã¨ä½¿ç¨ãã
install-config.yaml
ã¨agent-config.yaml
ã¯å¤±ãããã®ã§ãæ¯åã³ãã¼ãã¦å ãã¡ã¤ã«ãæ®ãããã«ãã¾ããã
ã¨ã¼ã¸ã§ã³ãISOã®ä½æå¾ã®ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªã¨ãã£ãã·ã¥ãã£ã¬ã¯ããªã®æ§æã¯ä¸è¨ã®ããã«ãªãã¾ã
. âââ files_cache â âââ agent-tui â âââ libnmstate.so.1.3.3 âââ image_cache â âââ coreos-aarch64.iso âââ ocp âââ .openshift_install.log âââ .openshift_install_state.json âââ agent.aarch64.iso âââ auth â âââ kubeadmin-password â âââ kubeconfig âââ rendezvousIP
ocp/.openshift_install.log
ã«ã¨ã¼ã¸ã§ã³ãISOä½ææã®ãã°ãä½æããã¾ãããã¾ããããªãæã¯ãã°ã®å 容ããã§ãã¯ãã¦ã¿ã¦ãã ããã
ã¨ã¼ã¸ã§ã³ãISOã®èµ·å
ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªé
ä¸ã«ä½æãããagent.aarch64.iso
ã使ç¨ãã¦ä»®æ³ãã·ã³ãèµ·åãã¾ããISOèµ·åå¾ã¯èªåã§ã¯ã©ã¹ã¿ã¼ã®ã¤ã³ã¹ãã¼ã«ãéå§ããã¾ãã
èµ·åå¾ãã°ããããã¨ä¸è¨ã®ãããªç»é¢ã表示ããã¾ãããããã¯ã¼ã¯ã®æ¥ç¶ç¢ºèªã«ãã¹ããã¨ããã«è¿½å ã§è¨å®å¤æ´ãããã©ããã®é¸æãã§ãã¾ããäºåã«agent-config.yaml
ã§è¨å®æ¸ã¿ãªã®ã§å¤æ´ããå¿
è¦ã¯ããã¾ããããã®ã¾ã¾æ¾ç½®ããã¨èªåã§ã¤ã³ã¹ãã¼ã«ãç¶ç¶ããã¾ãã
ï¼åèï¼NetworkManager TUI
ã¨ã¼ã¸ã§ã³ããã¼ã¹ã¤ã³ã¹ãã¼ã«ã®ç¹å¾´ãã¨ã¼ã¸ã§ã³ãISOèµ·åæã«åºã¦ããNetworkManager TUIã§ãããã¼ã«èªä½ã¯RHELã§ãã馴æã¿ã®nmtui
ãã®ãã®ã§ããè¨å®ç»é¢ãéãã¦ã¿ãã¨agent-config.yaml
ã§è¨å®ããå
容ãèªåã§å
¥åããã¦ããã®ã確èªã§ãã¾ãã
ã¤ã³ã¹ãã¼ã«ä¸ã®èªååèµ·å
ã¤ã³ã¹ãã¼ã«ã®èªåå®è¡ä¸ãä¸è¨ã®ã¿ã¤ãã³ã°ã§åèµ·åã2åè¡ããã¾ãã
- 1åç®ï¼ISOèµ·åâãã£ã¹ã¯ã¸æ¸ãè¾¼ã¿å®äºå¾
- 2åç®ï¼Bootstrapéå§âBootstrapå®äºå¾
ã¤ã³ã¹ãã¼ã«å®äºã®ç¢ºèª
ä¸è¨ã®ã³ãã³ããå®è¡ããã¯ã©ã¹ã¿ã¼ã®ã¤ã³ã¹ãã¼ã«ãå®äºãããã¨ã確èªãã¾ãã
export KUBECONFIG=ocp/auth/kubeconfig openshift-install --dir=ocp wait-for install-complete
ã¤ã³ã¹ãã¼ã«å®äºå¾ã®ãã°åºåã§kubeadmin
ã®ãã¹ã¯ã¼ãã確èªã§ãã¾ãã
ãçç¥ã INFO Install complete! INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/Users/*****/***/ocp-on-arm-mac/ocp/auth/kubeconfig' INFO Access the OpenShift web-console here: https://console-openshift-console.apps.sno.home.lab INFO Login to the console with user: "kubeadmin", and password: "BJpWp-8dGqa-XNGoW-vzGfV"
- åãããã°ã«è¡¨ç¤ºããã¦ããWebã³ã³ã½ã¼ã«ã®URLã«ã¢ã¯ã»ã¹ãã¦OpenShiftã使ç¨éå§ãã¾ã
ï¼åèï¼ã¤ã³ã¹ãã¼ã«ç¶æ³ã®ã¢ãã¿ãªã³ã°
OpenShiftã®ã¤ã³ã¹ãã¼ã«å®è¡ä¸ãã¿ã¼ããã«ã¦ã£ã³ãã¦ãè¤æ°éãä¸è¨ã®ã³ãã³ããå©ç¨ãã¦ãã°ã®ã¢ãã¿ãªã³ã°ãã§ãã¾ãã
ååã®è¨äºãåç § - ï¼åèï¼ã¤ã³ã¹ãã¼ã«ç¶æ³ã®ã¢ãã¿ãªã³ã°
ã¨ã¼ã¸ã§ã³ããã¼ã¹ã®ã¤ã³ã¹ãã¼ã«ç¨ã«ä¸è¨ã®ã¢ãã¿ãªã³ã°ã³ãã³ãã使ãã¾ãã
export KUBECONFIG=ocp/auth/kubeconfig openshift-install --dir=ocp agent wait-for bootstrap-complete
wait-for bootstrap-complete
ã¯ISOèµ·åããBootstrapå®äºã¾ã§
ã¤ã³ã¹ãã¼ã«ãã°ã®ãµã³ãã«ãå±é
INFO Waiting for cluster install to initialize. Sleeping for 30 seconds ãä¸ç¥ã INFO Waiting for cluster install to initialize. Sleeping for 30 seconds INFO Cluster is not ready for install. Check validations WARNING Cluster validation: The cluster has hosts that are not ready to install. WARNING Host m1-ocp validation: Host couldn't synchronize with any NTP server WARNING Host m1-ocp: updated status from discovering to insufficient (Host cannot be installed due to following failing validation(s): Host couldn't synchronize with any NTP server) INFO Host m1-ocp: updated status from insufficient to known (Host is ready to be installed) INFO Cluster is ready for install INFO Cluster validation: All hosts in the cluster are ready to install. INFO Preparing cluster for installation INFO Host m1-ocp: updated status from known to preparing-for-installation (Host finished successfully to prepare for installation) INFO Host m1-ocp: New image status quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:250b5a39dd30e13afcdcefdfa99586811b438c3e6dc9df350f9a4132188d4fe6. result: success. time: 7.04 seconds; size: 438.75 Megabytes; download rate: 65.31 MBps WARNING Host's disk /dev/disk/by-path/pci-0000:00:05.0 is slower than the supported speed, and may cause degraded cluster performance (fdatasync duration: 21 ms) INFO Host m1-ocp: updated status from preparing-for-installation to preparing-successful (Host finished successfully to prepare for installation) INFO Cluster installation in progress INFO Host m1-ocp: updated status from preparing-successful to installing (Installation is in progress) INFO Host: m1-ocp, reached installation stage Installing: bootstrap INFO Host: m1-ocp, reached installation stage Waiting for bootkube INFO Bootstrap Kube API Initialized INFO Host: m1-ocp, reached installation stage Writing image to disk INFO Host: m1-ocp, reached installation stage Writing image to disk: 11% INFO Host: m1-ocp, reached installation stage Writing image to disk: 24% INFO Host: m1-ocp, reached installation stage Writing image to disk: 36% INFO Host: m1-ocp, reached installation stage Writing image to disk: 49% INFO Host: m1-ocp, reached installation stage Writing image to disk: 61% INFO Host: m1-ocp, reached installation stage Writing image to disk: 66% INFO Host: m1-ocp, reached installation stage Writing image to disk: 77% INFO Host: m1-ocp, reached installation stage Writing image to disk: 88% INFO Host: m1-ocp, reached installation stage Writing image to disk: 94% INFO Host: m1-ocp, reached installation stage Writing image to disk: 100% INFO Bootstrap configMap status is complete INFO cluster bootstrap is complete
ç°å¢ã®ãªã»ãã
ã¤ã³ã¹ãã¼ã«ã«åé¡ããã£ãå ´åã¯ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªãåé¤ãã¦ã¨ã¼ã¸ã§ã³ãISOã®ä½æããããç´ãã¾ããæ¯åãã£ãã·ã¥æ¸ã¿ã®ISOããã¼ã«é¡ã®ãã§ãã¯ã¯è¡ãããã®ã§ããã£ãã·ã¥ãã£ã¬ã¯ããªã¯æ®ãã¦ããã¦åé¡ããã¾ããã
ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªã®åé¤
rm -rf ocp
ã¨ã¼ã¸ã§ã³ãISOã®åä½æ
mkdir -p ocp cp agent-based/*.yaml ocp podman run --privileged --rm \ -v $PWD:/data \ -v ./image_cache:/root/.cache/agent/image_cache \ -v ./files_cache:/root/.cache/agent/files_cache \ -w /data openshift-install:latest \ --dir ocp agent create image
ã¾ã¨ã
ååè¨äºã®æå¾ã«ãã©ãã¨ç´¹ä»ããã¨ã¼ã¸ã§ã³ããã¼ã¹ã®ã¤ã³ã¹ãã¼ã«ãæ©ãã使ããããã«ãªãã¾ãããã¨ã¼ã¸ã§ã³ãISOä½æç¨ã®ã³ã³ããã¤ã¡ã¼ã¸ããäºåã«ç¨æãã¦ããã°ããã«ã¤ã³ã¹ãã¼ã«ãéå§ã§ãã¾ããååè¨äºã®UPIããã¼ã¹ã¨ããæåã¤ã³ã¹ãã¼ã«ãããªãæé ãç°¡ç¥åãã¾ããããä»å¾ã¯ãã®ã¨ã¼ã¸ã§ã³ããã¼ã¹ã®ã¿ã§ãååã«ãªãããã§ãã ååãä»åã®è¨äºãæ´»ç¨ããã¨Red Hatå ¬å¼ã®ARM Macã§åä½ããOpenShift Localã®ãªãªã¼ã¹å¾ ã¤ã¾ã§ããªãããã«ãææã¡ã®M1ãM2 Macã§OpenShiftãåããã¾ãããããARM Macã§ã®OpenShiftä½é¨ãä»ãã試ãã¦ã¿ã¾ãããï¼