Skip to content

Commit

Permalink
Keep things simpler, remove GS VPN IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
fiunchinho committed Sep 28, 2023
1 parent 8c6f38d commit b1cc9a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add `controlPlane.allowList` to configure control plane load balancer ingress rules. It always adds GiantSwarm VPN IPs.
- Add `controlPlane.allowList` to configure control plane load balancer ingress rules.

### Changed

Expand Down
4 changes: 2 additions & 2 deletions helm/cluster-aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ Properties within the `.controlPlane` top-level object

| **Property** | **Description** | **More Details** |
| :----------- | :-------------- | :--------------- |
| `controlPlane.allowList` | **Load balancer allow list** - IPs that are allowed to connect to the control plane load balancer.|**Type:** `array`<br/>**Default:** `["0.0.0.0/0"]`|
| `controlPlane.allowList[*]` | **CIDR**|**Type:** `string`<br/>|
| `controlPlane.allowList` | **Load balancer allow list** - IPv4 address ranges that are allowed to connect to the control plane load balancer, in CIDR notation.|**Type:** `array`<br/>**Default:** `["0.0.0.0/0"]`|
| `controlPlane.allowList[*]` | **Address range**|**Type:** `string`<br/>|
| `controlPlane.apiMode` | **API mode** - Whether the Kubernetes API server load balancer should be reachable from the internet (public) or internal only (private).|**Type:** `string`<br/>**Default:** `"public"`|
| `controlPlane.containerdVolumeSizeGB` | **Containerd volume size (GB)**|**Type:** `integer`<br/>**Default:** `100`|
| `controlPlane.etcdVolumeSizeGB` | **Etcd volume size (GB)**|**Type:** `integer`<br/>**Default:** `100`|
Expand Down
6 changes: 2 additions & 4 deletions helm/cluster-aws/templates/_aws_cluster.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,15 @@ spec:
{{- end }}
controlPlaneLoadBalancer:
scheme: {{ if (eq .Values.controlPlane.apiMode "public") }}internet-facing{{ else }}internal{{ end }}
{{- if .Values.controlPlane.allowList }}
ingressRules:
- description: "Kubernetes API"
protocol: tcp
fromPort: 6443
toPort: 6443
cidrBlocks:
- 95.179.153.65/32
- 185.102.95.187/32
{{- if .Values.controlPlane.allowList }}
{{- toYaml .Values.controlPlane.allowList | nindent 6 }}
{{- end }}
{{- end }}
network:
cni:
cniIngressRules:
Expand Down

0 comments on commit b1cc9a5

Please sign in to comment.