Files
fleet-examples/multi-cluster/windows-helm/README.md
Nick Gerace 3162ee1212 Make Windows multi-cluster
Make Windows a multi-cluster example. Allow test to use fleet binaries
from any path.
2021-02-18 16:05:51 -05:00

48 lines
1.5 KiB
Markdown

# Windows Helm Example
This example will deploy the [Windows application example](https://kubernetes.io/docs/setup/production-environment/windows/user-guide-windows-containers/) packaged as a Helm chart.
This must be deployed in a multi-cluster configuration.
## Preparing Your Downstream Cluster(s)
Clusters (`clusters.fleet.cattle.io`) must have the `windows.version` label in order for the example to be deployed.
You can determine the value for the `windows.version` label key based on the release version of your Windows node(s).
Description | Example
--- | ---
For Windows Server SAC nodes, the value will be the SAC release number prepended with "win". | 2004 SAC would result in `windows.version: win2004`
For Windows Server LTSC nodes, the value will be the SAC release number that the LTSC is based on. | 2019 LTSC would result in `windows.version: win1809`
## Creating the GitRepo
Create the following `GitRepo` in your local cluster to get started.
```yaml
kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
name: helm
namespace: fleet-default
spec:
repo: https://github.com/rancher/fleet-examples
paths:
- multi-cluster/windows-helm
targets:
- name: win2004
clusterSelector:
matchLabels:
windows.version: win2004
- name: win1909
clusterSelector:
matchLabels:
windows.version: win1909
- name: win1903
clusterSelector:
matchLabels:
windows.version: win1903
- name: win1809
clusterSelector:
matchLabels:
windows.version: win1809
```