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

Enhance and simplify NS1 reference deployment example #508

Merged
merged 1 commit into from
May 31, 2021
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
21 changes: 11 additions & 10 deletions docs/deploy_ns1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,29 @@ Here we provide an example of k8gb deployment in AWS context with NS1 as edgeDNS

Two EKS clusters in `eu-west-1` and `us-east-1`.

Terraform code for cluster reference setup can be found [here](https://github.com/AbsaOSS/k8gb/tree/master/docs/examples/route53)

The EKS setup is identical to [Route53 tutorial](../docs/deploy_route53.md)

## Deploy k8gb
Terraform code for cluster reference setup can be found [here](../docs/examples/route53)

Example `values.yaml` override configs can be found [here](https://github.com/AbsaOSS/k8gb/tree/master/docs/examples/ns1/)

You can use `helm` to deploy stable release from Helm repo
## Deploy k8gb

Use `helm` to deploy stable release from Helm repo

```sh
helm repo add k8gb https://www.k8gb.io
```

Alternatively, use make target to deploy right from the git repository
Example `values.yaml` configuration files can be found [here](../docs/examples/ns1/)

In `eu-west-1` cluster execute
```sh
make deploy-gslb-operator VALUES_YAML=./docs/examples/ns1/k8gb-cluster-ns1-eu-west-1.yaml

#switch kubectl context to us-east-1
helm -n k8gb upgrade -i k8gb k8gb/k8gb --create-namespace -f ./docs/examples/ns1/k8gb-cluster-ns1-eu-west-1.yaml
```

make deploy-gslb-operator VALUES_YAML=./docs/examples/ns1/k8gb-cluster-ns1-us-east-1.yaml
In `us-east-1` cluster execute
```sh
helm -n k8gb upgrade -i k8gb k8gb/k8gb --create-namespace -f ./docs/examples/ns1/k8gb-cluster-ns1-us-east-1.yaml
```

Create NS1 secret in each cluster
Expand Down
3 changes: 1 addition & 2 deletions docs/examples/ns1/k8gb-cluster-ns1-eu-west-1.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
k8gb:
dnsZone: "test.k8gb.io" # dnsZone controlled by gslb
edgeDNSZone: "k8gb.io" # main zone which would contain gslb zone to delegate
edgeDNSServer: "169.254.169.253" # to handle splitbrain situation with TXT timestamp
edgeDNSServer: "169.254.169.253" # external DNS server to be used for resolution
clusterGeoTag: "eu-west-1" # used for places where we need to distinguish between differnet Gslb instances
extGslbClustersGeoTags: "us-east-1" # comma-separated list of external gslb geo tags to pair with
exposeCoreDNS: true # Create Service type LoadBalancer to expose CoreDNS

ns1:
enabled: true
ignoreSSL: false
2 changes: 1 addition & 1 deletion docs/examples/ns1/k8gb-cluster-ns1-us-east-1.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
k8gb:
dnsZone: "test.k8gb.io" # dnsZone controlled by gslb
edgeDNSZone: "k8gb.io" # main zone which would contain gslb zone to delegate
edgeDNSServer: "169.254.169.253" # to handle splitbrain situation with TXT timestamp
edgeDNSServer: "169.254.169.253" # external DNS server to be used for resolution
clusterGeoTag: "us-east-1" # used for places where we need to distinguish between differnet Gslb instances
extGslbClustersGeoTags: "eu-west-1" # comma-separated list of external gslb geo tags to pair with
exposeCoreDNS: true # Create Service type LoadBalancer to expose CoreDNS
Expand Down