Git Product home page Git Product logo

openshift-windows's Introduction

OpenShift environment with Windows and Linux nodes

This current is tested on VMware, with two machines, one running OpenShift 3.11 on RHEL 7.5, and one running OpenShift with Windows. An OpenShift entitlement is required.

The Windows Node is Windows Server Core 2019/Windows Datacenter Edition 2019. The Windows node requires it to be enabled for Ansible. bin/winansible.ps1 set's up the windows node for ansible.

Azure

The openshift-windows repository code for 3.11 now supports Microsoft Azure Cloud. A full ARM template is now included and has been tested.

How to Use:

Repos for Openshift Windows:

Supported

https://github.com/openshift/openshift-windows

Upstream:

https://github.com/glennswest/openshift-windows

Requirements:

  1. Linux node with host name set, and static ip, and a proper search domain
  2. Windows node with a hostname set, and dhcp that returns same ip all the time, matching hostname. (Windows 2019 Datacenter Edition)
  3. The windows node must have the correct host name, make sure you rename it.

Overview:

  1. Install two nodes, one with RHEL 7.5 and one with Windows 1803.
  2. Setup DNS for both nodes, and search domain so the hosts can be found by both there short name, and there fully qualified name.
  3. Make sure the windows node can use DHCP to find its IP address.
  4. Make sure the Mac address is unique for the windows node in the first 5 bytes.
  5. Login to root, and install git
  6. git clone repo
  7. cd repo (Either hybrid or opepnshift-windows)
  8. Run allinone.sh

Important Note: The Windows Node must run on a physical box, or a environment that supports nested virt, with passthru configured on the VM.

./allinone.sh LinuxHostName WindowsHostName InternalDomain OpenShiftPublicURL AppPublicURL UserName Password rhnusername rhnpassword

Arguments Examples:

Linux Host Name - node01 or openshift or linuxnode Windows Host Name: winnode01 or windows Internal Domain: ncc9.com Openshift Public URL: openshift.ncc9.com App Public URL: example: app.openshift.ncc9.com Username: example: openshift Password: SuperSecret rhnusername: A Red Hat Network Username - For OpenShift and RHEL Subscription rhnpassword: A Red Hat Network Password

  1. cd ..
  2. Prepare Windows Machine A. RDP To windows console (Or use vmware console) B. From Command Prompt: (To Enable Ansible) be sure to specify the version of OpenShift to be installed. The command below assumes 3.11 specify a different version if required i. type: powershell
    ii. type: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 iii. Invoke-WebRequest -Uri https://raw.githubusercontent.com/openshift/openshift-windows/master/3.11/bin/winansible.ps1 -OutFile "winansible.ps1" -UseDefaultCredentials iv. .\winansible.ps1 v. Rename-Computer -NewName "winnode01" -Restart -Force vi. Disconnect from windows.
  3. copy the group_vars/windows.example to group_vars/windows
  4. Add a user name and password to group_vars/windows
  5. ansible-playbook windows.yml

Known Issues/ Changes:

1.Azure testing is current in process. Azure will require a further update to fucntion.
2. The 3.11 branch requires 2 additional arguments, rhnusername and rhnpassword 3. Nested Virt is no longer required

openshift-windows's People

Contributors

glennswest avatar rsc7 avatar cooktheryan avatar glroland avatar ionutbalutoiu avatar dobbymoodge avatar scollier avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.