{"id":18192017,"url":"https://github.com/codekow/demo-ocp-windows","last_synced_at":"2026-04-30T14:37:24.251Z","repository":{"id":131119647,"uuid":"531297673","full_name":"codekow/demo-ocp-windows","owner":"codekow","description":"Run windows containers on OCP","archived":false,"fork":false,"pushed_at":"2022-09-01T18:42:59.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T18:49:38.783Z","etag":null,"topics":["containers","openshift","server2022","windows"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codekow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-31T23:51:15.000Z","updated_at":"2022-09-01T01:33:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee2a6725-2d63-4048-85d7-aa314214ae06","html_url":"https://github.com/codekow/demo-ocp-windows","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekow","download_url":"https://codeload.github.com/codekow/demo-ocp-windows/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247687264,"owners_count":20979427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","openshift","server2022","windows"],"created_at":"2024-11-03T06:42:01.261Z","updated_at":"2026-04-30T14:37:19.231Z","avatar_url":"https://github.com/codekow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenShift 4.10+ (Windows) Install\n\nThis repository helps automate the install of OpenShift 4.10+\nwith Kubernetes OVN for use with Windows containers\n\nNote: Running these scripts on a Linux workstation with internet access is assumed\n\n## QuickStart\n```\n# pull this repo\ngit clone https://github.com/codekow/demo-ocp-windows.git\ncd demo-ocp-windows\n\n# setup vmware roles (optional)\n. hacks/vsphere_roles.sh\nvsphere_create_roles\n\n# easy install button :)\nhacks/install_ocp_win.sh\n\n# run openshift-install\nopenshift-install create cluster --dir generated/ocp\n```\n\n## VMware Notes\n\nAdd vSphere folder path to `install-config.yml` at the following level in the yaml\n```\nplatform:\n  vsphere:\n    \n    # example folder path\n    # folder: /${{ datacenter }}/vm/${{ folder path}}\n    folder: /Central/vm/Sandbox/ocp4.tigerlab.io\n\n    vcenter: 10.1.2.3\n    ...\n```\n\nAssumption: Two vCenter Accounts\n- Admin Account\n- Installer Account (w/ roles assigned)\n\n### Admin Account\n\n`hacks/vsphere_roles.sh` is available to help automate the creation of vCenter roles with a vCenter administrator account.\n\n### Installer Account\n\nAssign the following roles to the vCenter account being used to install OpenShift at various levels in vCenter listed below.\n\n### Precreated virtual machine folder in vSphere vCenter\n\nRole Name | Propagate | Entity\n--- | --- | ---\nopenshift-vcenter-level | False | vCenter\nReadOnly | False | Datacenter\nopenshift-cluster-level | True | Cluster\nopenshift-datastore-level | False | Datastore\nReadOnly | False | Switch\nopenshift-portgroup-level | False | Port Group\nReadOnly | True | Virtual Machine folder (Top Level)\nopenshift-folder-level | True | Virtual Machine folder\n\nIn a cascading (nested) folder organization you will need  \"`Read-only`\" permissions \nwith \"`Propagate to children`\" from the top folder level.\n\nExample Service Account: `OCPInstaller`\n\n![Folder Tree Example](docs/folder-permissions.png)\n\n## Golden Image / Machine Set - Windows\n\n- Golden Image `unattend.xml`: [example-unattend.xml](example-unattend.xml)\n- OCP MachineSet: [win-worker-machineset.yml](win-worker-machineset.yml)\n```\nkind: MachineSet\nmetadata:\n  name: ocp4-win-worker\n  namespace: openshift-machine-api\n  labels:\n    machine.openshift.io/cluster-api-cluster: ocp4-win\nspec:\n  replicas: 0\n  selector:\n    matchLabels:\n      machine.openshift.io/cluster-api-cluster: ocp4-win\n      machine.openshift.io/cluster-api-machineset: ocp4-win-worker\n  template:\n    metadata:\n      labels:\n        machine.openshift.io/cluster-api-cluster: ocp4-win\n        machine.openshift.io/cluster-api-machine-role: worker\n        machine.openshift.io/cluster-api-machine-type: worker\n        machine.openshift.io/cluster-api-machineset: ocp4-win-worker\n        machine.openshift.io/os-id: Windows\n    spec:\n      metadata:\n        labels:\n          node-role.kubernetes.io/worker: ''\n      providerSpec:\n        value:\n          userDataSecret:\n            name: windows-user-data\n          template: win2022\n```\n\n## Sample Apps - Windows\n\n- Basic Web App: [example-win-web.yml](example-win-web.yml)\n- Win Daemon Set: [example-win-daemonset.yml](example-win-daemonset.yml)\n\n## Links\n\nOpenShift Docs\n- [vCenter Account Priviledges](https://docs.openshift.com/container-platform/4.10/installing/installing_vsphere/installing-vsphere-installer-provisioned.html#installation-vsphere-installer-infra-requirements_installing-vsphere-installer-provisioned)\n- [OpenShift 4.10 - OVN Hybrid Networking](https://docs.openshift.com/container-platform/4.10/networking/ovn_kubernetes_network_provider/configuring-hybrid-networking.html)\n- [OpenShift 4.10 - Windows MachineSet](https://docs.openshift.com/container-platform/4.10/windows_containers/creating_windows_machinesets/creating-windows-machineset-vsphere.html)\n\n\n\nWindows Machine Config Operator (WMCO)\n- [WMCO 4.10](https://github.com/openshift/windows-machine-config-operator/tree/community-4.10)\n- [WMCO 4.10 - OVN Hybrid Networking](https://github.com/openshift/windows-machine-config-operator/blob/community-4.10/docs/setup-hybrid-OVNKubernetes-cluster.md)\n- [WMCO 4.10 - vSphere Windows Golden Image](https://github.com/openshift/windows-machine-config-operator/blob/community-4.10/docs/vsphere-golden-image.md)\n\nWindows Images\n- [Windows 2022 ISO](https://www.microsoft.com/en-us/evalcenter/download-windows-server-2022)\n- [Base Images - Windows](https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-base-images)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fdemo-ocp-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekow%2Fdemo-ocp-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fdemo-ocp-windows/lists"}