Skip to content

Commit

Permalink
Enhance and simplify NS1 reference deployment example (#508)
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Tsarev <yury.tsarev@absa.africa>
  • Loading branch information
ytsarev authored May 31, 2021
1 parent 932fad9 commit 8354606
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
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

0 comments on commit 8354606

Please sign in to comment.