-
Notifications
You must be signed in to change notification settings - Fork 1.9k
OSDOCS4041: Support Windows Containers on GCP -- WMCO 7.0.0 #49719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * windows_containers/creating_windows_machinesets/creating-windows-machineset-gcp.adoc | ||
|
|
||
| [id="windows-machineset-gcp_{context}"] | ||
| = Sample YAML for a Windows MachineSet object on GCP | ||
|
|
||
| This sample YAML file defines a Windows `MachineSet` object running on Google Cloud Platform (GCP) that the Windows Machine Config Operator (WMCO) can use. | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| apiVersion: machine.openshift.io/v1beta1 | ||
| kind: MachineSet | ||
| metadata: | ||
| labels: | ||
| machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1> | ||
| name: <infrastructure_id>-windows-worker-<zone_suffix> <2> | ||
| namespace: openshift-machine-api | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1> | ||
| machine.openshift.io/cluster-api-machineset: <infrastructure_id>-windows-worker-<zone_suffix> <2> | ||
| template: | ||
| metadata: | ||
| labels: | ||
| machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1> | ||
| machine.openshift.io/cluster-api-machine-role: worker | ||
| machine.openshift.io/cluster-api-machine-type: worker | ||
| machine.openshift.io/cluster-api-machineset: <infrastructure_id>-windows-worker-<zone_suffix> <2> | ||
| machine.openshift.io/os-id: Windows <3> | ||
| spec: | ||
| metadata: | ||
| labels: | ||
| node-role.kubernetes.io/worker: "" <4> | ||
| providerSpec: | ||
| value: | ||
| apiVersion: machine.openshift.io/v1beta1 | ||
| canIPForward: false | ||
| credentialsSecret: | ||
| name: gcp-cloud-credentials | ||
| deletionProtection: false | ||
| disks: | ||
| - autoDelete: true | ||
| boot: true | ||
| image: <windows_server_image> <5> | ||
| sizeGb: 128 | ||
| type: pd-ssd | ||
| kind: GCPMachineProviderSpec | ||
| machineType: n1-standard-4 | ||
| networkInterfaces: | ||
| - network: <infrastructure_id>-network <1> | ||
| subnetwork: <infrastructure_id>-worker-subnet | ||
| projectID: <project_id> <6> | ||
| region: <region> <7> | ||
| serviceAccounts: | ||
| - email: <infrastructure_id>-w@<project_id>.iam.gserviceaccount.com | ||
| scopes: | ||
| - https://www.googleapis.com/auth/cloud-platform | ||
| tags: | ||
| - <infrastructure_id>-worker | ||
| userDataSecret: | ||
| name: windows-user-data <8> | ||
| zone: <zone> <9> | ||
| ---- | ||
| <1> Specify the infrastructure ID that is based on the cluster ID that you set when you provisioned the cluster. You can obtain the infrastructure ID by running the following command: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster | ||
| ---- | ||
| <2> Specify the infrastructure ID, worker label, and zone suffix (such as `a`). | ||
| <3> Configure the machine set as a Windows machine. | ||
| <4> Configure the Windows node as a compute machine. | ||
| <5> Specify the full path to an image of a supported version of Windows Server. | ||
| <6> Specify the GCP project that this cluster was created in. | ||
| <7> Specify the GCP region, such as `us-central1`. | ||
| <8> Created by the WMCO when it configures the first Windows machine. After that, the `windows-user-data` is available for all subsequent machine sets to consume. | ||
| <9> Specify the zone within the chosen region, such as `us-central1-a`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ws_containers/creating_windows_machinesets/creating-windows-machineset-gcp.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| :_content-type: ASSEMBLY | ||
| [id="creating-windows-machineset-gcp"] | ||
| = Creating a Windows `MachineSet` object on GCP | ||
| include::_attributes/common-attributes.adoc[] | ||
| :context: creating-windows-machineset-gcp | ||
|
|
||
| toc::[] | ||
|
|
||
| You can create a Windows `MachineSet` object to serve a specific purpose in your {product-title} cluster on Google Cloud Platform (GCP). For example, you might create infrastructure Windows machine sets and related machines so that you can move supporting Windows workloads to the new Windows machines. | ||
|
|
||
| [discrete] | ||
| == Prerequisites | ||
|
|
||
| * You installed the Windows Machine Config Operator (WMCO) using Operator Lifecycle Manager (OLM). | ||
| * You are using a supported Windows Server as the operating system image. | ||
|
|
||
| include::modules/machine-api-overview.adoc[leveloffset=+1] | ||
| include::modules/windows-machineset-gcp.adoc[leveloffset=+1] | ||
| include::modules/machineset-creating.adoc[leveloffset=+1] | ||
|
|
||
| [role="_additional-resources"] | ||
| [id="creating-windows-machineset-gcp-additional"] | ||
| == Additional resources | ||
|
|
||
| * For more information on managing machine sets, see xref:../../machine_management/index.adoc#overview-of-machine-management[Overview of machine management]. | ||
|
mburke5678 marked this conversation as resolved.
Outdated
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.