Openshift 4.2 설치

레퍼런스. https://docs.openshift.com/container-platform/4.2/installing/installing_vsphere/installing-vsphere.html?extIdCarryOver=true&sc_cid=701f2000001OH74AAG#cluster-entitlements_installing-vsphere

https://blog.openshift.com/openshift-4-2-vsphere-install-quickstart/

  1. Openshift vSphere install
    • Openshift는 여러 platform에 설치가 가능하다. 그 중 vSphere 에 설치하는 과정을 확인해보자 (아직 설치 완료 안됨)
  2. 사전 환경설정 (레퍼링크 참조)
    • Configure DHCP.
    • Provision the required load balancers.
    • Configure the ports for your machines.
    • Configure DNS.
    • Ensure network connectivity.
  • 참조.
    • 4.2에서는 Openshift Cluster 들은 core-os 로 구성된다.
    • vSphere 설치과정중에선 실제 Cluster(core-os)에 접속하여 작업을 하지는 않는다.
    • 리눅스 워크스테이션 등 설치과정을 진행하는 서버에서 아래의 3, 4, 6, 8 작업을 한다.
  1. Web server 구성 (아무 서버든 상관 없다. 설치를 진행하는 workstation, server 에 구성해도 된다.)
    • RHEL 인 경우 httpd 등 기본적인 web server 를 구성해야 한다
    • ign 파일의 길이가 너무 커 http로 값을 넘겨야 한다.
  2. Client Tool 설치 (해당 설치를 진행하는 workstation, server 에 설치하면된다)
    • https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/?extIdCarryOver=true&sc_cid=701f2000001OH74AAG
  3. vSphere 에 core os OVF 다운로드 및 배포

  4. ssh key gen 진행

  5. vSphere 에서 ovf 파일 설정

  6. install conf 진행
    1. 설치폴더 생성 - mkdir ~/install - cd install
    2. install-config.yaml 생성 ```bash apiVersion: v1 baseDomain: [dns base domain 입력] example.com compute:
      • hyperthreading: Enabled name: worker replicas: 0 controlPlane: hyperthreading: Enabled name: master replicas: 3 metadata: name: ${CLUSTERID} networking: clusterNetworks:
        • cidr: 10.254.0.0/16 hostPrefix: 24 networkType: OpenShiftSDN serviceNetwork:
        • 172.30.0.0/16 platform: vsphere: vcenter: test.example.com username: vcuser password: vcpass datacenter: datacenter defaultDatastore: datastore pullSecret: ‘https://cloud.redhat.com/openshift/install/pull-secret 에서 copy’ sshKey: ‘ssk_key’
      3. Ignition Files 생성
        - openshift-install create manifests
        - cluster-scheduler-02-config.yml 파일의 mastersSchedulable false 로 변경 
        - openshift-install create ignition-configs
      4. append-bootstarp 생성

{ “ignition”: { “config”: { “append”: [ { “source”: “http://webserverIP:port/ignition/bootstrap.ign”, “verification”: {} } ] }, “timeouts”: {}, “version”: “2.1.0” }, “networkd”: {}, “passwd”: {}, “storage”: {}, “systemd”: {} }

      5. bootstrap.ign 파일 웹 서버 컨텐츠로 이동 
        - cp bootstarp.ign /var/www/html/ingition/
      6. vm 값 입력을 위한 ign 파일 base64 인코딩
      
```bash
for i in append-bootstrap master worker
do
base64 -w0 < $i.ign > $i.64
done
  1. vSphere 에서 bootstarp 및 기타 vm 배포
    • vm option 에서 guestinfo.ignition.config.data에 각 vm에 맞는 base 파일의 값을 입력한다.
    • guestinfo.ignition.config.data.encoding base64 입력
  2. bootstarp 과정 진행 (workstation 에서 )
    • openshift-install wait-for bootstrap-complete –log-level debug

2021

Openshift Gitlab Helm 설치

1 minute read

Openshift Gitlab Install Openshift Gitlab Helm Install Helm Repo Add 레퍼런스는 여기 확인 https://docs.gitlab.com/cha...

리눅스 CR/LF 변환 파이썬 & 끝에 라인개행 들어간 파일 제거

less than 1 minute read

##개요 리눅스의 라인개행은 윈도우의 라인개행과 다르다. 고객의 요청으로 많은 건수의 파일을 이동할 일이 있었는데, 파일 리스트를 윈도우에서 작성해서 넘어오는 바람에 원치않은 라인개행 문자가 파일 끝에 들어가게 되어 해결방법을 남긴다. 파일 리스트 라인개...

Back to Top ↑

2020

Back to Top ↑

2019

Linux(RHEL) raw-device 생성

less than 1 minute read

raw-device OS의 캐싱없이 DB나 다른 시스템에서 직접 캐싱을 사용하려고 할 때 쓰인다.

SSH PasswordLess 로그인

less than 1 minute read

SSH Passwordless 로그인을 위해선 SSH 공개키 배포가 필요하다. 테스트 OS RHEL7 서버 구성 sshServer - sshClient sshServer -> sshClinet로 ssh 비밀번호 없어 접속 ...

Openshift 4.2 설치

1 minute read

레퍼런스. https://docs.openshift.com/container-platform/4.2/installing/installing_vsphere/installing-vsphere.html?extIdCarryOver=true&sc_cid=701f2000001OH74A...

Parted 사용법

less than 1 minute read

Parted 명령어 2TB 이상부터는 Fdisk 파티션 분할이 어렵다. Parted를 사용하자

Back to Top ↑