-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rancher fleet installs applications from the existing Helm Chart. During installation it injects at least properties into `global.fleet`. Because k8gb schema is too strict, `helm install` does not work because fleet injects its properties We solved this by deleting the schema and rebuilding Chart. This PR whitelists the fleet object in globals, so k8gb can be installed directly. Signed-off-by: Michal Kuritka <[email protected]>
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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,33 @@ | ||
# Integration with Rancher Fleet | ||
|
||
The K8gb has been modified to be easily deployed using [Rancher Fleet](https://fleet.rancher.io/). All you need to supply is a | ||
[fleet.yaml](https://fleet.rancher.io/ref-fleet-yaml) file and possibly expose the labels on your cluster. | ||
|
||
## Deploy k8gb to Target clusters | ||
The following shows the rancher application that will be installed on the target cluster. The values `k8gb-dnsZone`, | ||
`k8gb-clusterGeoTag`, `k8gb-extGslbClustersGeoTags` will be taken from the labels that are set on the cluster. | ||
|
||
```yaml | ||
# fleet.yaml | ||
defaultNamespace: k8gb | ||
kustomize: | ||
dir: overlays/kustomization | ||
labels: | ||
bundle: k8gb | ||
helm: | ||
repo: https://www.k8gb.io | ||
chart: k8gb | ||
version: v0.11.4 | ||
releaseName: k8gb | ||
values: | ||
k8gb: | ||
dnsZone: global.fleet.clusterLabels.k8gb-dnsZone | ||
edgeDNSZone: "cloud.example.com" | ||
edgeDNSServers: | ||
- "1.2.3.4" | ||
- "5.6.7.8" | ||
clusterGeoTag: global.fleet.clusterLabels.k8gb-clusterGeoTag | ||
extGslbClustersGeoTags: global.fleet.clusterLabels.k8gb-extGslbClustersGeoTags | ||
log: | ||
format: simple | ||
``` |