Skip to content
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

Rancher Fleet support #1255

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Internal k8gb architecture and its components are described [here](/docs/compone
* [Ingress annotations](/docs/ingress_annotations.md)
* [Integration with Admiralty](/docs/admiralty.md)
* [Integration with Liqo](/docs/liqo.md)
* [Integration with Rancher Fleet](/docs/rancher.md)

## Adopters

Expand Down
3 changes: 3 additions & 0 deletions chart/k8gb/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"fleet": {
"type": "object"
},
"imagePullSecrets": {
"type": [
"array",
Expand Down
33 changes: 33 additions & 0 deletions docs/rancher.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great. Can we link this manual in the main README, probably extending https://www.k8gb.io/#installation-and-configuration-tutorials ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ytsarev , fixed, thx.

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
```
Loading